@@ -65,6 +65,7 @@ public plugin_init() {
6565 CW_SetMember (this, CW_Member_iSlot, 3 );
6666 CW_SetMember (this, CW_Member_iPosition, 0 );
6767 CW_SetMemberString (this, CW_Member_szIcon, " handgrenade" );
68+ CW_SetMember (this, Weapon_BaseThrowable_Member_bThrowOnHolster, true );
6869 CW_SetMemberString (this, WEAPON_BASE_MEMBER (szBounceSound), g_rgszBounceSounds[random (g_iBounceSoundsNum)]);
6970}
7071
@@ -76,16 +77,11 @@ public plugin_init() {
7677
7778@Weapon_Holster (const this) {
7879 static pPlayer; pPlayer = get_ent_data_entity (this, " CBasePlayerItem" , " m_pPlayer" );
79- static Float: flStartThrow; flStartThrow = CW_GetMember (this, BASEGRENADE_MEMBER (flStartThrow));
80-
81- if (! is_user_connected (pPlayer)) return ;
8280
83- if (flStartThrow ) {
84- CW_CallMethod (this, BASEGRENADE_METHOD (Throw) );
81+ if (is_user_connected (pPlayer) ) {
82+ emit_sound (pPlayer, CHAN_WEAPON, " common/null.wav " , VOL_NORM, ATTN_NORM, 0 , PITCH_NORM );
8583 }
8684
87- emit_sound (pPlayer, CHAN_WEAPON, " common/null.wav" , VOL_NORM, ATTN_NORM, 0 , PITCH_NORM);
88-
8985 CW_CallBaseMethod ();
9086}
9187
0 commit comments