Buy Scripts for CS:Source

Started by TeaLeaf, August 19, 2004, 02:08:10 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TeaLeaf

Have a good read of this thread on the Steam forum as it sets out some of the changes you need to make to your current buy scripts. to make them work in CS:S :rolleyes:

TL.
TL.
Wisdom doesn\'t necessarily come with age. Sometimes age just shows up all by itself.  (Tom Wilson)
Talent wins games, but teamwork and intelligence wins championships. (Michael Jordan)

Dr Sadako

#1
This is my setup atm. Entered into the config.cfg located:

\Steam\SteamApps\user@user.com\counter-strike source beta\cstrike\cfg\

Quotebind "F1" "buy scout; buy primammo"
bind "F2" "buy awp; buy primammo"
bind "F3" "buy vest"
bind "F4" "buy vesthelm"
bind "F5" "buy m4a1; buy ak47; buy primammo"
bind "F6" "buy flashbang"
bind "F7" "buy hegrenade"
bind "F8" "buy smokegrenade"
bind "F9" "buy defuser"
bind "F10" "buy p90; buy primammo"
bind "F11" "buy mac10; buy tmp; buy primammo"
bind "F12" "buy deagle; buy secammo"
bind "KP_HOME" "buy mp5; buy primammo"
bind "KP_UPARROW" "buy aug; buy sg552; buy primammo"
bind "KP_PGUP" "buy galil; buy famas; buy primammo"
bind "KP_LEFTARROW" "buy sg550; buy g3sg1; buy primammo"
-=[dMw]=-Dr "Doc" Sadako

"Gravitation is not responsible for people falling in love." Albert Einstein

OldBloke

I've found out that you can have a file called userconfig.cfg in your cfg folder and this will automatically be run when you join a server. It does not need to be referred to in the config.cfg file.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

Norm

I just stole Sadako's,there's a hidden "git "hack in there somewhere. ;)

OldBloke

Below is a copy of my userconfig.cfg with my cheap 'n' cheerful buyscript with added netcode stuff, quick pistol and quick knife.

Although I've stated elsewhere that this file is run when you join a server, I'm not sure that this happens everytime <_<

So. Add the following line to the bottom of your config.cfg:

Quoteexec userconfig.cfg

Here's the userconfig.cfg file. Add it to your cfg folder. You'll notice that, as an oldtimer  :learn: , I'm still using the 'arrow' keys for movement so if you're a 'WASD' jockey you will need to edit the keys used for quick knife/pistol.

Quote//netcode stuff

rate 15000
cl_updaterate 101
cl_cmdrate 101

fps_max 100


// Aliases

alias w1 "wait"
alias w2 "w1; w1; w1"
alias w3 "w2; w2; w2"
alias w4 "w3; w3; w3"
alias w5 "w4; w4; w4"

alias clm "w3; slot10; w3; slot10"
alias ezReload "buy defuser; buy hegrenade; buy vesthelm; buy vest; buy flashbang; buy smokegrenade; buy flashbang; clm"

//weapon binds

bind "F1" "ezReload "
bind "F2" "buy deagle; buy secammo; ezReload; use weapon_deagle"
bind "F3" "buy galil; buy famas; buy primammo; ezReload; use_weapon galil; use weapon_famas"
bind "F4" "buy m4a1; buy ak47; buy primammo; ezReload; use weapon_m4a1; use weapon_ak47"
bind "F5" "snapshot"
bind "F6" "buy aug; buy sg552; buy primammo; ezReload;use weapon_aug; use weapon_sg552"
bind "F7" "buy sg550; buy g3sg1; buy primammo; ezReload; use weapon_sg550; use weapon_g3sg1"
bind "F8" "buy mp5; buy primammo; ezReload; use weapon_mp5"

//Quick! Where's me pistol?

bind "KP_END" "hud_fastswitch 1; slot2; hud_fastswitch 0"

//Arghhh! No ammo. Where's me knife?

bind "KP_DOWNARROW" "use weapon_knife"

Interestingly, the binds declared in the userconfig.cfg will automatically migrate to the config.cfg - assuming it's not been made read-only.
"War without end. Well, what was history if not that? And how would having the stars change anything?" - James S. A. Corey

JonnyAppleSeed

Just thought i would pop what im using down ....before i loose it again  :D

seeems to work as an old fashiond autoexec.cfg fine

/////// Gun Buy Scripts ////////

bind "F5" "buy deagle; buy secammo"
bind "F6" "buy mp5navy; buy primammo"
bind "F7" "buy galil; buy famas; buy primammo"
bind "F8" "buy m4a1; buy ak47; buy primammo"
bind "F9" "buy aug; buy sg552; buy primammo"
bind "F10" "buy scout; buy primammo"
bind "F11" "buy awp; buy primammo"
bind "F12" "buy m3; buy primammo"
////////Equipment Buy Script////////
bind "F1" "buy vest; buy defuser; buy smokegrenade; buy hegrenade; buy flashbang; buy primammo; buy secammo; buy flashbang"

//netcode stuff

rate 15000
cl_updaterate 101
cl_cmdrate 101
cl_smooth 0
fps_max 100


// Aliases

alias w1 "wait"
alias w2 "w1; w1; w1"
alias w3 "w2; w2; w2"
alias w4 "w3; w3; w3"
alias w5 "w4; w4; w4"

//Quick! Where's me pistol?

bind "KP_LEFTARROW" "hud_fastswitch 1; slot2; hud_fastswitch 0"

//Arghhh! No ammo. Where's me knife?

bind "KP_END" "use weapon_knife"
//Quick! Where's me Gun?

///I Need my BIG gun
bind "KP_HOME" "hud_fastswitch 1; slot1; hud_fastswitch 0"

////walk toggle//////
alias walk_t "walk_on"
alias walk_on "alias walk_t walk_off; +speed; developer 1
alias walk_off "alias walk_t walk_on; -speed; developer 1
bind "KP_INS" "walk_t"
It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shakes, the shakes become a warning. It is by caffeine alone I set my mind in motion


JonnyAppleSeed

PS some quick keys to bring up HE/Flash/Smoke would be nice if anyone has them :P
It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shakes, the shakes become a warning. It is by caffeine alone I set my mind in motion


Anonymous

In CS:Source you just need the "use" command:

bind "YOUR_KEY_HERE" "use weapon_smokegrenade"
bind "YOUR_KEY_HERE" "use weapon_flashbang"
bind "YOUR_KEY_HERE" "use weapon_hegrenade"

Anonymous

Oh and to get your rifle out quickly just bind a key to "go_slot1" or for pistol bind a key to "go_slot2". It's that simple :)

Doorman

I have the mousewheel bound forward go_slot 1 backward to go_slot2 . Thought I'd just add that.  8)  Now you know why I'm so good.










     

JonnyAppleSeed

It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed, the hands acquire shakes, the shakes become a warning. It is by caffeine alone I set my mind in motion


Gh0st Face Killah

I have found a site with a very nice buyscript utility on for those that can't make their own. Goto www.burstmodus.com and its on there.
-=[dMw]=-Gh0st Face Killah
Ex Ingorantia Ad Spientiam, E Luce Ad Tenebras

Gh0stys mixes

D. A. M. N.
Naked Mothers Against Dyslexia

DuVeL

GFK, are you using it yourself? I'm going to try it out now. Any tips or pointers?
Survivor of LAN V, VI, VIII, IX, X, XII, XIV, XVI, XVIII, XX, XXIV, XXX, XXXII, XXXIV and XXXVI so far...
[QUOTE]Lionheart; Grolsch to DuVeL is like spinache to Popeye [/QUOTE]
[QUOTE]Cheesepuff...A cyborg is sent from the future on a deadly mission. He has to kill Ninja_Freak, a young Man whose life will have a great significance in years to come.Ninja has only one protector - DuVeL - also sent from the future. The Terminator uses his exceptional intelligence and strength to find Ninja_Freak & attempt to terminate him.
[/QUOTE]

Gh0st Face Killah

I am using it and its very easy to install and configure. Thats when I get a chance to do any gaming at all which is not very often these days.
-=[dMw]=-Gh0st Face Killah
Ex Ingorantia Ad Spientiam, E Luce Ad Tenebras

Gh0stys mixes

D. A. M. N.
Naked Mothers Against Dyslexia

Gone_Away