View Single Post
Old 12-27-2008, 03:27 AM   #162
Nite]M[are
Scripting Trainee
 
Nite]M[are's Avatar
 
Join Date: Dec 2008
Location: Sitting with mah Sentry
Class/Position: Defensive Engineer
Gametype: OvD (Defense Preferred)
Affiliations: None yet
Posts Rated Helpful 0 Times
Send a message via Skype™ to Nite]M[are
Quote:
Originally Posted by Dr.Satan
Sorry I hadn't posted this yet, but I was out of town for a few days...here is one I currently use for sabotaging...but I can whip one out for you if you have a specific request...

Code:
//     --------
//---- Sabotage ----
//     --------

alias sab_1 "sentrysabotage"
alias sab_2 "dispensersabotage"

alias sabsg "sab_1; wait; default; wait; speak vox/female/s.g."
alias sabdis "sab_2; wait; default; wait; speak vox/female/dispenser"
alias sabboth "sab_1; wait; sab_2; wait; default; wait; speak vox/female/both"

alias sabmenu "bind 1 sabsg; wait; echo 1) Sabotage SG; wait; bind 2 
sabdis; wait; echo 2) Sabotage Dispenser; wait; bind 3 sabboth; wait; echo 
3) Sabotage Both; wait; bind 0 default; wait; echo 0) Defaults"

bind ctrl "sabmenu"
How it works:

When you hit ctrl it will rebind keys 1, 2, and 3 as follows:

1 = Sabotage SG and rebind keys (back to defaults)
2 = Sabotage Disp. and rebind
3 = Sabotage All / Both and rebind
0 = Rebind to default (fail safe it you accidently hit the wrong key)

You will also want to put this in your autoexec.cfg

Code:
//     -------
//---- Default ----
//     -------
alias d_1 "wait;bind 1 slot1"
alias d_2 "wait;bind 2 slot2"
alias d_3 "wait;bind 3 slot3"
alias d_4 "wait;bind 4 slot4"
alias d_5 "wait;bind 5 slot5"
alias d_6 "wait;bind 6 slot6"
alias default "wait;d_1;wait;d_2;wait;d_3;wait;d_4;wait;d_5;wait;d_6"
Currently this is the closest we can get to the old way of things...and there is the problem that it won't show up on screen what your binds are.

I have it set now to echo them in consol so if you get confused you can hit your console and it will be shown in there (time consuming, but you generally memorize them fairly quickly)

I remember somewhere someone suggesting a messageme mode or say_me mode where you could send yourself chat messages to compensate for the loss of echo and such, but until DrEvil gets a bit and codes it in we're all pretty much SOL.

~hope it helps
SUPER BUMP -- New scripting student, I need this thread to live :O

I have had trouble scripting with custom plusses and negatives. An example I have is this:

Code:
alias +engy	"bind mouse1 aimsentry;bind mouse2 detdispenser;bind mouse3 detsentry"
alias -engy	"bind mouse1 +attack;bind mouse2 +attack2;bind mouse3 say ^7I built that, ^6%i^7!"

bind c +engy
Sometimes it works, sometimes it doesnt, almost seems random. When it does work, I can get detdispenser to work, but not mouse3. Mouse3 /always/ gives me trouble -- is it some sort of special key?

Anyways, I need help with that engy script (I modified someone else's script, found original on here). Mostly, however, I see what you put, Dr. Satan, and I have an idea -- I dont want to have to push 0 every time I want to reset. COULD this work, and please help elaborate / improve / fix??

Code:
alias sab_1 "sentrysabotage"
alias sab_2 "dispensersabotage"

alias sabsg "sab_1; wait; default; wait; speak vox/female/s.g."
alias sabdis "sab_2; wait; default; wait; speak vox/female/dispenser"
alias sabboth "sab_1; wait; sab_2; wait; default; wait; speak vox/female/both"

alias +sabmenu "bind 1 sabsg; wait; echo 1) Sabotage SG; wait; bind 2 
sabdis; wait; echo 2) Sabotage Dispenser; wait; bind 3 sabboth; wait; echo 
3) Sabotage Both"
alias -sabmenu "default"

bind ctrl "+sabmenu"
Please, I /really/ dont want this thread to die, and any help would be appreciated. Just started toying around with scripting two days ago, and I need a lot of help still. This thread has helped me design my own semi-scripts, for which I am glad. Thanks!
Nite]M[are is offline   Reply With Quote