May 19, 2009, 02:04 PM
I do suggest that you trim out that reused code. for example your default weapon behavoirs code, just make a new file Default.cfg and put it in there. Then any class config you want to run the code in Default.cfg for you put the line
exec Default.cfg
that way you can tweak or whatever you'd like the Default behavior code in a single file instead of copy paste it to 3-4 different files.
I do that with my autofire script and I also have a reset script since I bind my pistol fire to mouse 2 on scout and engie. My autofire also remaps secondary to kp_home. I then have logitech setpoint mapping kp_home to a different mouse button since rotating buildings is still a must have. (I just put exec autoFire.cfg in both scout and engiee script) Then reset.cfg rebinds mouse2 to secondary attack gets called in all other classes by exec reset.cfg
exec Default.cfg
that way you can tweak or whatever you'd like the Default behavior code in a single file instead of copy paste it to 3-4 different files.
I do that with my autofire script and I also have a reset script since I bind my pistol fire to mouse 2 on scout and engie. My autofire also remaps secondary to kp_home. I then have logitech setpoint mapping kp_home to a different mouse button since rotating buildings is still a must have. (I just put exec autoFire.cfg in both scout and engiee script) Then reset.cfg rebinds mouse2 to secondary attack gets called in all other classes by exec reset.cfg