![]() |


|
|||||||
| Counter-Strike - Tactics Discussion Tactics and Map discussion for Counter-Strike Source |
![]() |
|
|
Thread Tools |
|
|
#1 (permalink) |
![]() ![]() Join Date: Dec 2004
Location: Illinois
Age: 25
Posts: 1,928
|
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. 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"
__________________
It only takes 2 bites [insert parasite] to get to the center of a meatpop. TGNS Admin | NS Forum Moderator Digz | NS Play Tester Natural Selection | TGNS Primer | Communication Awareness! Army Info: Deployment or Bust - June 2009 Last edited by Iceberg; 05-26-2006 at 05:22 AM. |
|
|
|
|
|
#3 (permalink) |
|
Join Date: Mar 2004
Location: Minneapolis, MN
Age: 20
Posts: 869
|
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 |
|
|
|
| Sponsored links | |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| It's OUT! | Magnum50 | America's Army - General Discussion | 19 | 09-17-2006 09:52 PM |
| The Assault kit | Thierry | Battlefield 2 - Tactics and Missions Discussion | 19 | 05-24-2006 09:09 PM |
| Dystopia Newbie Guide: Weapons of Dystopia | Zephyr | Dystopia - Tactics and Map Discussions | 0 | 03-29-2006 11:07 PM |
| Tactical Gamer hosts Natural Selection Tournament | Wyzcrak | Tactical Gamer News Items | 6 | 06-07-2005 12:20 PM |

