Fortress Forever

Fortress Forever (https://forums.fortress-forever.com/index.php)
-   Tips and Tutorials (https://forums.fortress-forever.com/forumdisplay.php?f=37)
-   -   [Offer] I make your script request! (https://forums.fortress-forever.com/showthread.php?t=11568)

Dr.Satan 11-20-2007 02:43 PM

Make sure you have set:
cl_autoreload 0

Code:

PUT IN ENGY.CFG
Special Instructions:
Change w, s, a, d to your desired movement keys.
Script:
alias +f "+forward; +reload"
alias -f "-forward; +reload; -reload"
alias +b "+back; +reload"
alias -b "-back; +reload; -reload"
alias +l "+moveleft; +reload"
alias -l "-moveleft; +reload; -reload"
alias +r "+moveright; +reload"
alias -r "-moveright; +reload; -reload"
bind w "+f"
bind s "+b"
bind a "+l"
bind d "+r"

No problem!

EquilibriuM 11-20-2007 02:58 PM

Thx for all your help brother, and i have decided for all your great work to share my cookies with you, but you gotta get your own milk :D

Dr.Satan 11-20-2007 03:48 PM

Hooray I love cookies! And no problem...if you want any more let me know I'll be happy to try for ya!

I also have some already made scripts for like engy and spy if ya want em!

EquilibriuM 11-20-2007 07:38 PM

i dont spy play much but let me see the NG script might consider giving it a go.

Dr.Satan 11-20-2007 08:11 PM

Code:

echo ENGINEER CFG LOADED

exec cleanup.cfg
echo Cleanup Config Loaded
wait
exec userconfig.cfg
echo User Config Loaded

//---------------
//---- Alias ----
//---------------

alias sg_loc "say_team Sg going up at %sl"
alias sg_help "say_team My Sg (%sv / %sl) is in trouble {%sh H}{%sa A}"
alias sg_det "say_team Detonating my Sg at %sl; wait; detsentry"
alias dis_loc "say_team Disp. going up at %dl"
alias dis_help "say_team My Disp. at %dl needs supplies {%dh H}{%da A}"
alias dis_det "say_team Detonating my Dispenser at %dl; wait; detdispencer"

//---------------------
//---- Binds Alias ----
//---------------------

alias b_1 "bind KP_END sg_loc"
alias b_2 "bind KP_DOWNARROW sg_help"
alias b_3 "bind KP_PGDN sg_det"
alias b_4 "bind KP_LEFTARROW dis_loc"
alias b_5 "bind KP_5 dis_help"
alias b_6 "bind KP_RIGHTARROW dis_det"
alias binds "b_1; wait; b_2; wait; b_3; wait; b_4; wait; b_5; wait; b_6"

//----------------
//---- O Engy ----
//----------------

alias oengy "say_team Going O Engy!!; wait; wait; sg_loc1; wait; wait; dis_loc1; wait; binds"
alias sg_loc1 "say_team My Sg is %sv at %sl with {%sh H}{%sa A}"
alias dis_loc1 "say_team My Dispenser is at %dl with {%dh H}{%da A}"
bind KP_ENTER "oengy"

//Quick Weapon - put in engineer.cfg
alias quick1 "slot1; wait; alias quickweapon quick2"
alias quick2 "slot2; wait; alias quickweapon quick3"
alias quick3 "slot3; wait; alias quickweapon quick1"
alias quickweapon quick1
bind f "quickweapon"

bind mouse4 "detdismantledispenser; dispenser"
bind mouse3 "detdismantlesentry; sentrygun"
bind g "aimsentry"

bind ALT "+duck"
bind "MWHEELUP"        "invprev"
bind "MWHEELDOWN" "invnext"


eva01 11-24-2007 09:54 PM

how do i clear out binds from previous class cfgs? it seems like using the same buttons carry over. i don't know where i got this from but on the top of all my configs i have
resetbinds
resetnumpad
not sure if that does anything.
it's weird, i have the same button bound for a lot of classes, and they all work ok, except my spy:
bind “UPARROW” “sentrysabotage”
bind “DOWNARROW” “dispensersabotage”
bind “MOUSE4” “cloak”
bind “q” “scloak”

4est 11-24-2007 10:13 PM

Quote:

Originally Posted by eva01
how do i clear out binds from previous class cfgs? it seems like using the same buttons carry over. i don't know where i got this from but on the top of all my configs i have
resetbinds
resetnumpad
not sure if that does anything.
it's weird, i have the same button bound for a lot of classes, and they all work ok, except my spy:
bind “UPARROW” “sentrysabotage”
bind “DOWNARROW” “dispensersabotage”
bind “MOUSE4” “cloak”
bind “q” “scloak”


If you are feeling froggy (no offense to the French) you can create a binds.txt file. It should include EVERY SINGLE BIND.

Start each config with this at the top

unbindall
exec binds.cfg


Example from TFC
Code:

// binds.cfg

// This sets up all your binds that are not class specific (in your <class>.cfg files)

bind "kp_end" "exec onetap.cfg" // executes the one tap grenade cfg
bind "kp_minus" "vent1"                        // toggles between the Ingame and the Ventrilo voice/text comm aliases
bind "capslock" "+vtxt1"                  // ingame voice comm button
bind ALT "changeclass"                        // to change to a different class
bind TAB "+showscores"                        // shows scores
bind ` "toggleconsole"                        // brings down the console
bind INS "snapshot"                                // take screen shot               
bind "ESCAPE" "cancelselect"

bind 1 slot1
bind 2 slot2
bind 3 slot3
bind 4 slot4
bind 5 slot5
bind 6 "dismantle 2;dismantle 1;dismantle 4;dismantle 5;say_team -ENGY=[%h, %a]=- Dismantling"  //univ NG dismantle - thx Dough
bind 8 "kill"                                // kills you
bind 0 "say H:%h A:%a"                // dispalys Health & Armor stats to mm1

bind , +det5PACK                        // sets a 5 second det pack
bind . +det20PACK                        // sets a 20 second det pack
bind / +det50PACK                        // sets a 50 second det pack
bind b "special"                        // special ability
bind e "+use"                                // use - duh!


bind "f" "throwgren; primeone"        // primary grenade throw/prime - double tap nades
bind "g" "throwgren; primetwo"        // secondary grenade throw/prime - double tap nades
bind "m" ""                                                // ONLY bound in classdefault.cfg to to announce setting a detpack or to announce spy disguise
bind "i" "flaginfo"                        // gives flag information
bind "c" "dropitems;say_team THROWING FLAG [H:%h A:%a];speak flag"                        // Throws flag and speaks, "FLAG"
bind "r" "+reload"                          // reload
bind "t" "impulse 201"                        // sprays
bind "y" "messagemode"                        // say, mm1 - message mode 1
//bind "u" "messagemode2"                // mm2, team say. In each <classname>.cfg it's bound to the commcfg files specific to each class
bind "x" "discard"                                                                                                                                // to throw packs
bind "z" "saveme;say_team Ow! God Damnit I broke a nail.. MEDIC!! [H:%h A:%a]"        // call for medic
       
bind CTRL "+duck"                                // to duck
bind SPACE "+jump"                                // jump
bind SHIFT "+commandmenu"                // the main command menu
bind ENTER "+attack"                        // selected weapon attack

// movement keys

bind a "+moveleft"
bind d "+moveright"
bind s "+back"
bind w "+forward"

// mouse button binds

bind "mouse1" "+attack"                                        // selected weapon attack
bind "mwheelup" "slot2;wait;slot3"            // selects shotty (scout, demoman, pyro), super shotty (medic, spy, solja, engineer and HW) or sniper's AR
bind "mwheeldown" "slot4;wait;slot5"        // selects highest slot weapon for all classes except Engineer

//bind "mouse2" "#swipe"                      // melee + quick weapon alias.  Each class uses 1 of 4 aliases.  Demo and sniper cfgs bind mouse3.

//bind "mouse3" "ds"                            // dets sentry          -in engineer.cfg
//bind "mouse4" "dpez"                                        // Det dispenser alias  -in engineer.cfg

//bind "mouse3" "silent"                                // silent feign and drops packs -in spy.cfg
//bind "mouse4" "ffeign"                                // feign and throw flag/packs        -in spy.cfg

//bind "mouse2" "detpipe; wait; tf_weapon_pl"          // det pipes and instantly switch to greens
//bind "mouse4" "w00t"                                                        // Toggles between ability to shoot straight down and not shoot straight down.
//bind "mwheeldown" "slot4"                                                // selects blues

//bind "mouse2" "special"                                                // Zoom                        -in sniper.cfg
//bind "mouse4" "tf_weapon_sniperrifle"                // Sniper rifle        -in sniper.cfg

// communication binds

bind F3 "say_team %i I'm right behind you ...Nice ass! [H:%h A:%a]"
bind F4 "say_team w00t..Enemy SG down! Get that flag / key! [H:%h A:%a]"

bind F5 "say_team Affirmative / YES / You da man [H:%h A:%a]"
bind F6 "say_team Negative / NO / Bite me [H:%h A:%a]"
bind F7 "say_team Where is our flag / key? [H:%h A:%a]"
bind F8 "say_team Where is the Enemy flag / key? [H:%h A:%a]"

bind F9 "say_team Cover Me - Out of position / Resupply! [H:%h A:%a]"
bind F10 "say_team Unf. Im capping that Mofo! [H:%h A:%a]"
bind F11 "say_team Need help with our flag! [H:%h A:%a]"
bind F12 "say_team Need help getting the enemy flag! [H:%h A:%a]"

Then if a class needed some specific binds, you'd set them in the <classname>.cfg
TFC example (all I have access to at work)
Code:

// demoman.cfg

unbindall                                // unbinds all keys
exec binds.cfg                        // executes binds.cfg - sets all binds

say_team [DEMOMAN] Spam.cfg Loaded!

// Reference binds.cfg and classdefault.cfg for other binds and aliases

bind "u" "exec commcfg/demoman2.cfg"                          // say_team comm gives player class, health and armour

bind "mouse2" "detpipe; wait; tf_weapon_pl"          // det pipes and instantly switch to greens

bind "mouse3" "+14swipe"                                      // melee + quick weapon

bind "mwheeldown" "slot4"                                                // selects blues


Dr.Satan 11-24-2007 10:24 PM

You could also set up a cleanup.cfg for the keys that are changed between classes:

Open a new notepad document
Paste the keys you currently use for different classes and preface them with unbind
Then name this new notepad doc. cleanup.cfg
Code:

echo Clean Up Config Loaded

unbind mwheelup
unbind mwheeldown
unbind alt
unbind mouse2
unbind mouse3
unbind mouse4
unbind f
unbind g
unbind shift
unbind ctrl

Then put this line in each class.cfg

Code:

exec cleanup.cfg

Zatoichi 11-25-2007 12:48 AM

this is my engie build script for sentry gun..for some reason it wont tell the location of the sentry when i build it..only when it dets. can anyone give me a hand?


alias buildsent "sentrygun; wait; say_team building sentry at %sl; bind mouse3 detsent"
alias detsent "detdismantlesentry; wait; say_team sentry blown at %sl; bind mouse3 buildsent"
bind "mouse3" "buildsent"

Dr.Satan 11-25-2007 12:55 AM

idk why it isn't working for you, but try this and see if it helps:

Code:

alias buildsent "sentrygun; wait; loc1; bind mouse3 detsent"
alias detsent "detdismantlesentry; wait; loc2; bind mouse3 buildsent"
alias loc1 "say_team building sentry at %sl"
alias loc2 "say_team sentry blown at %sl"
bind "mouse3" "buildsent"


Zatoichi 11-25-2007 02:27 PM

thx for the help, but still a no go. maybe it needs more waits till the gun is actually built before it announces its location??

eva01 11-25-2007 07:42 PM

thx guys, i'll give it a try.

Dr.Satan 11-25-2007 09:59 PM

It shouldn't need wait's but idk give it a try.

DarK_TaO 11-26-2007 02:13 PM

Hey guys I'm back! School is over yay ^^


Quote:

Originally Posted by Zatoichi
this is my engie build script for sentry gun..for some reason it wont tell the location of the sentry when i build it..only when it dets. can anyone give me a hand?


alias buildsent "sentrygun; wait; say_team building sentry at %sl; bind mouse3 detsent"
alias detsent "detdismantlesentry; wait; say_team sentry blown at %sl; bind mouse3 buildsent"
bind "mouse3" "buildsent"

It's not telling you the sentry location, because it's not built yet, you should make a SG status bind:

Ex:
Code:

alias sgstats "say_team Sentry gun built at {%sl}"

bind "" "sgstats"

You could use waits, but the problem is that using to many of them will freeze you for X ammount of seconds, until waits finish. (I've experienced that with demoman)

So best option for me, is that bind.

Hope I could help ^^

Dr.Satan 11-26-2007 02:20 PM

He lives! Welcome back man!

Zatoichi 11-26-2007 09:34 PM

thx for confirming my suspicions. i only have a 3 button mouse so this is what i came up with..and i think it works well for me.

alias buildsent "sentrygun;wait; bind mouse3 announce"
alias announce "say_team ^2sentry built at %sl; wait; bind mouse3 detsent"
alias detsent "detdismantlesentry; wait; say_team ^2sentry blown at %sl; bind mouse3 buildsent"
bind "mouse3" "buildsent"

press once to build, then again to announce location, then again to det it. it announces in red to hopefully make it more visable.

DarK_TaO 11-26-2007 10:15 PM

Quote:

Originally Posted by Zatoichi
thx for confirming my suspicions. i only have a 3 button mouse so this is what i came up with..and i think it works well for me.

alias buildsent "sentrygun;wait; bind mouse3 announce"
alias announce "say_team ^2sentry built at %sl; wait; bind mouse3 detsent"
alias detsent "detdismantlesentry; wait; say_team ^2sentry blown at %sl; bind mouse3 buildsent"
bind "mouse3" "buildsent"

press once to build, then again to announce location, then again to det it. it announces in red to hopefully make it more visable.

Watch it, always remember to click after building, or when you want to detonate it, and you forgot to click again, you will send a team msg instead of blowing the SG up. Just a reminder ^^

Zatoichi 11-26-2007 10:18 PM

hehe rgr that, i made a server and for about an hour just ran around building sentrys..but ill probably forget by the next time i play lol.

Dr.Satan 11-27-2007 05:19 AM

in situations like that i generally just make a menu script...it's much easier and only takes up one page...I'll post an example when I get a chance to later.

pF 11-28-2007 12:02 AM

I'd be interested in menu scripting.. the radial selection thing for spies and engies is a nice idea, but i prefer the simple [1. - n.] menues of old!


All times are GMT. The time now is 04:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.