Forum
Class-specific configs
Created 9th November 2011 @ 13:28
Add A Reply Pages: 1
Does anybody know how to auto-load a certain config when you change to that class, and then un-load it again once you change to a different class?
I currently have my class join .cfg set to the keypad, as well as the “exec; class.cfg” command for each class.
For instance: bind “KP_HOME” “+joinclass; join_class medic; exec medic.cfg”
However, the medic config still carries over to all other classes. Does anybody have any advice on this? Thanks.
Any aliases and binds you set in any class specific config will be remembered until you quit the game. The only thing you can do to clean them is make a separate config file where you do exactly that, and then executing that config file in each class config.
An example:
binds.cfg
bind MOUSE1 "+attack"
bind MOUSE2 "+attack2"
medic.cfg
exec binds
bind MOUSE2 "+attack2; say_team UBERED!!"
soldier.cfg
exec binds
bind MOUSE2 "slot3; say_team MELEE TIME :D"
Last edited by Spike Himself,
Quoted from mock
Does anybody know how to auto-load a certain config when you change to that class, and then un-load it again once you change to a different class?
I currently have my class join .cfg set to the keypad, as well as the “exec; class.cfg” command for each class.
For instance: bind “KP_HOME” “+joinclass; join_class medic; exec medic.cfg”
However, the medic config still carries over to all other classes. Does anybody have any advice on this? Thanks.
re-exec the config you want of all other classes than medic.
Quoted from Spike Himself
Any aliases and binds you set in any class specific config will be remembered until you quit the game. The only thing you can do to clean them is make a separate config file where you do exactly that, and then executing that config file in each class config.
An example:
binds.cfg
bind MOUSE1 "+attack"
bind MOUSE2 "+attack2"medic.cfg
exec binds
bind MOUSE2 "+attack2; say_team UBERED!!"soldier.cfg
exec binds
bind MOUSE2 "slot3; say_team MELEE TIME :D"
Thanks for the quick reply.
Add A Reply Pages: 1