Do not throw grenade
What is the best way for a player not throw a grenade (SmokeGrenade)?
|
Re: Do not throw grenade
Ham_Weapon_PrimaryAttack
with offset scripting. |
Re: Do not throw grenade
Code:
RegisterHam(Ham_Item_Deploy, "weapon_knife", "FwdDeploySmokeNade", 1); |
Re: Do not throw grenade
You register it for knives( where's smokes? ), the cvar fails big time, you never use client variable and you should return in the func. Also player can actually throw a smoke, the forward is post, so...
|
Re: Do not throw grenade
Quote:
|
Re: Do not throw grenade
PHP Code:
|
Re: Do not throw grenade
In this situation, there is not a better way. Using Orpheu you can hook CSmokeGrenade::Deploy() but you still would need to use the offset to block properly.
|
Re: Do not throw grenade
Quote:
you're in love with Orpheu :P I like Jon's example. |
Re: Do not throw grenade
Jon, would be better to register the forward POST.
|
Re: Do not throw grenade
Indeed, if I remember as pre offset won't be applied.
Quote:
|
| All times are GMT -4. The time now is 17:44. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.