SCRIPTING: Client-Side Variables

I would like to know if there is any possible way to...

By iShot 3 years ago

I would like to know if there is any possible way to make client-side variables, so I have the possibility of editing scripts really easily... like you can have vars in PHP like $test_var or something, but then ingame?

Thanks in advance

6 posts 357 views

Replies

    • P2: Drudge
      Points: 1,016
    • C1: Member
    • A5: Veteran
      Account Age: 4 years

    I dont think so

    Getting bored with FPSB
    • P3: Peasant
      Points: 8,018
    • E2: Guide
      EF: 28
    • C2: Ripe Member
    • A5: Veteran
      Account Age: 4 years
    Fibbs

    You could use aliases, but then you can only use existing cvars, For example, alias aliasname "+attack;wait;-attack;+jump;+duck;wait;wait;wait;wait;wait;-jump;-duck" bind key aliasname After pressing the key you bound it to you would then fire once then jump and duck. Yes that's pretty random but it's just an example. The waits tell it to wait a frame, so if jumping takes 100 frames you'd put 100 waits. Putting 100 waits in one line gets it a bit long though, so you'd put: alias w5 "wait;wait;wait;wait;wait" alias w10 "w5;w5" alias w20 "w10;w10" alias w100 "w20;w20;w20;w20;w20" It's pretty straight forward. ; tells console to go to a new line, or new command which lets you make strings of commands. You can name aliases whatever you want as long as it's not an existing cvar like quit or something.

    • P1: Beggar
      Points: 873
    • E1: Helper
      EF: 8
    • C1: Member
    • A5: Veteran
      Account Age: 4 years
    Posted by Fibbs You could use aliases, but then you can only use existing cvars, For example, alias aliasname "+attack;wait;-attack;+jump;+duck;wait;wait;wait;wait;wait;-jump;-duck" bind key aliasname After pressing the key you bound it to you would then fire once then jump and duck. Yes that's pretty random but it's just an example. The waits tell it to wait a frame, so if jumping takes 100 frames you'd put 100 waits. Putting 100 waits in one line gets it a bit long though, so you'd put: alias w5 "wait;wait;wait;wait;wait" alias w10 "w5;w5" alias w20 "w10;w10" alias w100 "w20;w20;w20;w20;w20" It's pretty straight forward. ; tells console to go to a new line, or new command which lets you make strings of commands. You can name aliases whatever you want as long as it's not an existing cvar like quit or something.

    That is indeed very good information but it's not what I asked for... Thanks anyway!

    Revenge Scripter
    • P4: Worker
      Points: 37,669
    • E1: Helper
      EF: 12
    • C1: Member
    • A5: Veteran
      Account Age: 5 years

    I wish.

    <3 <3 <3
    • P3: Peasant
      Points: 8,018
    • E2: Guide
      EF: 28
    • C2: Ripe Member
    • A5: Veteran
      Account Age: 4 years
    Fibbs

    Sadly not then. Would be nice. D:

    • P1: Beggar
      Points: 873
    • E1: Helper
      EF: 8
    • C1: Member
    • A5: Veteran
      Account Age: 4 years

    Why do valve need to make things so hard? Danged!

    Revenge Scripter