Go Back   Tactical Gamer > Tactical > Counter-Strike Source > Counter-Strike - Tactics Discussion


Counter-Strike - Tactics Discussion Tactics and Map discussion for Counter-Strike Source

Reply
 
Thread Tools
Old 05-26-2006, 04:57 AM   #1 (permalink)

 
Iceberg's Avatar
 
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"
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.
__________________
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.
Iceberg is offline   Reply With Quote
Old 05-30-2006, 02:55 PM   #2 (permalink)
 
Apex's Avatar
 
Join Date: Apr 2006
Posts: 102
Re: Weapon selection scripting: Grenade Prime

Wow, primed grenades in CS seems awefully powerful.
Apex is offline   Reply With Quote
Sponsored links
Old 06-03-2006, 02:01 AM   #3 (permalink)
 
HairyNevus's Avatar
 
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
HairyNevus is offline   Reply With Quote
Sponsored links
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

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


All times are GMT -4. The time now is 04:17 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
©2004-2008 - Tactical Gamer - All Rights Reserved