Announcement

Collapse
No announcement yet.

Weapon selection scripting: Grenade Prime

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    Last edited by Iceberg; 05-26-2006, 04:22 AM.
    USAR

  • #2
    Re: Weapon selection scripting: Grenade Prime

    Wow, primed grenades in CS seems awefully powerful.

    Comment


    • #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.

      Comment

      Connect

      Collapse

      TeamSpeak 3 Server

      Collapse

      Advertisement

      Collapse

      Twitter Feed

      Collapse

      Working...
      X