-
05-26-2006, 04:57 AM #1
Weapon selection scripting: Grenade Prime
You can directly select a weapon in source by calling its impulse name.
bind "whatever" "use weapon_knife"
weapon_knife
weapon_deagle
weapon_usp
weapon_glock
weapon_p228
weapon_elite
weapon_fiveseven
weapon_ak47
weapon_aug
weapon_g3sg1
weapon_m249
weapon_m4a1
weapon_m3
weapon_mac10
weapon_mp5navy
weapon_p90
weapon_scout
weapon_sg552
weapon_sg550
weapon_ump45
weapon_tmp
weapon_xm1014
weapon_awp
weapon_galil
weapon_famas
weapon_hegrenade
weapon_flashbang
weapon_smokegrenade
weapon_c4
Playing around with it, I created this script that brings out a grenade primed, waiting for you to hit your mouse1 to throw it. If you need to recall it, simply hit the bound key again and it resets to your last used weapon.
If anyone is interested, I can take this script further to cycle through each grenade. In its current state its very simple and has its drawbacks.Code://Primes a grenade and warns the team of throwing //Change "j" to whatever alias "warn" "say_team Im throwing a Grenade! Take cover!" alias "grenade" "use weapon_hegrenade" alias "prime" "warn;grenade;+attack;bind j oops;bind mouse1 fireg" alias "fireg" "-attack;wait;bind mouse1 +attack; bind j prime" alias "oops" "lastinv;-attack;bind mouse1 +attack; bind j prime" bind "j" "prime"
Last edited by Iceberg; 05-26-2006 at 05:22 AM.
-
05-30-2006, 02:55 PM #2
Re: Weapon selection scripting: Grenade Prime
Wow, primed grenades in CS seems awefully powerful.
-
06-03-2006, 02:01 AM #3
Re: Weapon selection scripting: Grenade Prime
Wow I've been looking for the "auto weap select" binds forever. It seems so obvious, thanks! Now I might actually use grenades.
"Adios...blimp" -Assy McGee
"All of the body parts they will never find, except all the peices that I saved." -Dickie Moist
"Mmmmm, Duraflame." -Mountain Man
"I don't like Sci-Fi, I love LOVE LOVE it!" - Gordon Crisp
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)




Reply With Quote

Bookmarks