12-06-2008, 08:00 AM | #1 |
I want to work here
Join Date: Mar 2007
Posts Rated Helpful 1 Times
|
Help with a cleanup script
I know ive asked in a previous thread, but it wasnt specifically about this. I have made changes to my spy cfg and plan on making some to others, but now when i try to use my special key (which ive changed to "a") i cant use it when i play other classes. I guess i need to rebind in a cleaner script?
I incorporated the f key script to change classes and added a couple one stroke keys to sabotage, etc. thanks for any help. Vamp p.s. I know this isnt script related, but ive noticed on some servers that when i spray a wall with my custom spray, its not any of mine. like e0 server does that. any ideas? thanks again |
|
12-06-2008, 10:49 AM | #2 |
Community Member
Server Owner
Beta Tester Forum Moderator Join Date: Mar 2007
Location: Hawthorne, California
Class/Position: Soldier/Spy/Scout Gametype: AvD Affiliations: :e0:Eternal Order Leader Posts Rated Helpful 12 Times
|
Yeah the spray not being yours is a HL2 bug, happens in hl2dm as well
__________________
|
|
12-07-2008, 04:21 AM | #3 | |
Whitest Kid You Know
Beta Tester
Join Date: Mar 2007
Posts Rated Helpful 6 Times
|
Quote:
__________________
Oh, man... More armor for the win, yeah? |
|
|
12-07-2008, 07:36 PM | #4 |
I want to work here
Join Date: Mar 2007
Posts Rated Helpful 1 Times
|
ok, what about a cleanup script? ya know, something to set my settings back to the way they were before a new script is executed?
|
|
12-07-2008, 09:41 PM | #5 |
Keep On Keepin' On
|
Not sure what you want.
I'll give you an example of my CleanUp.cfg, not the whole thing. First. Any button I use for a different command with a different class I placed in my CleanUp.cfg Since I use mousewheel up and down for my 2 most used weapons. I change them in all of my class configs. Example. Spy.cfg Code:
bind mwheelup "slot1" bind mwheeldown "slot3" Code:
bind mwheelup "slot5" bind mwheeldown "slot3" Example. CleanUp.cfg Code:
echo CleanUp CFG Loaded //outputs to console that the cleanup config was loaded unbind mwheelup unbind mwheeldown Example of what a cfg should look like after you have finished making the cleanup.cfg Code:
echo Soldier Config Loaded //outputs to console to show classname config was loaded exec cleanup.cfg //executes the cleanup config bind mwheelup "slot5" bind mwheeldown "slot3" Or you can follow Dr.Satan's tutorial |
|
12-10-2008, 02:08 PM | #6 |
I want to work here
Join Date: Mar 2007
Posts Rated Helpful 1 Times
|
sweet thanks!
|
|
12-27-2008, 05:38 AM | #7 |
Scripting Trainee
|
All you have to do is unbind / (re)bind every key altered in any <classname>.cfg, am I right? My cleanup:
Code:
echo ===================== echo ====== Cleanup ====== echo ===================== -attack -attack2 unbind mouse1 unbind mouse2 unbind mouse3 bind mouse1 +attack bind mouse2 +attack2 unbind C unbind uparrow unbind downarrow unbind leftarrow unbind rightarrow unbind alt unbind kp_end unbind kp_downarrow unbind kp_pgdn unbind kp_leftarrow unbind kp_5 unbind kp_rightarrow unbind kp_home unbind kp_uparrow unbind kp_pgup unbind 0 unbind 1 unbind 2 unbind 3 unbind 4 unbind 5 unbind 6 unbind 7 unbind 8 unbind 9 bind 0 slot0 bind 1 slot1 bind 2 slot2 bind 3 slot3 bind 4 slot4 bind 5 slot5 bind 6 slot6 bind 7 slot7 bind 8 slot8 bind 9 slot9 |
|
12-27-2008, 07:03 AM | #8 |
Keep On Keepin' On
|
I use a cleanup.cfg only to unbind keys I use for different things. My cleanup doesn't bind anything, it only unbinds. Looks like you have the right idea.
|
|
12-27-2008, 03:07 PM | #9 | |
Scripting Trainee
|
Quote:
//Edit: Also, I have -attack and such there to cleanup any buggy scripts, and I rebind my mouse because thats the default, but i change it in a couple other class scripts.. |
|
|
12-27-2008, 07:04 PM | #10 |
Keep On Keepin' On
|
I used to have -attack, -jump etc. in my cleanup but Jester brought up a good point that it only executes if you spawn, so if a +command did get stuck, the classname.cfg wouldn't execute, as well as the cleanup.cfg, so it really doesn't help.
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|