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?
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.
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!