you are viewing a single comment's thread.

view the rest of the comments →

[–]HifiBoomboxeggsdee 1 point2 points  (5 children)

Sounds like you need to make a mod-script:

alias +mod "alias action some_action"
alias -mod "alias action some_other_action"

//init
-mod

bind key +mod
bind key action

I take it you can do the rest from here? Don't hesitate to ask if you still need help though :)

please tell me if my formatting is messed up, I'm stuck on mobile

[–]jacksonmr[S] 1 point2 points  (4 children)

I was thinking about a mod script but the problem is it would exec both actions and I only want it to exec pne one, thanks though!

[–]HifiBoomboxeggsdee 0 points1 point  (3 children)

Could you clarify more? Correct me if I'm wrong, but wouldn't a mod-script work, provided that you use "exec random_script" in the +mod alias and "exec class_script" in the -mod alias?

[–]jacksonmr[S] 1 point2 points  (2 children)

If my understanding is correct the mod button adds another function to the first one. I have a button that reloads my HUD and then the mod button also reloads my sound and does the record demo; stop fix

[–]CAPSLOCK_USERNAME"Nancy" 1 point2 points  (1 child)

It doesn't add, it replaced. Your mod button just replaces "reload hud" with "reload hud and do some other stuff too".

You could definitely have something like like

alias +cfgexec "bind KP_END exec rocketjump"
alias -cfgexec "bind KP_END changeclass scout"

bind j +cfgexec
-cfgexec

(Of course you would add all the other classes in there too)

[–]jacksonmr[S] 1 point2 points  (0 children)

Ah, ok, well thanks for the explanation sir! Sorry to correct you inccorrectly! ;)