How to block grenade throw
How to block grenade throw? Grenade must stay on hands, not to be removed.
|
Re: How to block grenade throw
I try with Ham_Item_Deploy, but if I have more than one grenade it's does not work.
PHP Code:
|
Re: How to block grenade throw
In which context do you want to block it ?
|
Re: How to block grenade throw
Blocking the next throw grenades if the previous shots in less than 15 seconds.
PHP Code:
|
Re: How to block grenade throw
set m_flNextPrimaryAttack on grenade entity then.
Gonna be a little animation starting to play due to client prediction. PHP Code:
|
Re: How to block grenade throw
Plugin not work if I have two or more grenades.
Watch the video http://www.youtube.com/watch?v=HnImA...ature=youtu.be |
Re: How to block grenade throw
Try this :
Reference is https://raw.github.com/Arkshine/CSSD..._hegrenade.cpp Interesting code is in function void CHEGrenade::WeaponIdle() grenade_throw forward is sent during execution of CGrenade::ShootTimed2 PHP Code:
|
Re: How to block grenade throw
Thank You, work, but with errors.
It's work if I throw first grenade, change active weapon, then set weapon to grenade again. But if I'm not change active weapon, try to throw second grenade at once - grenade will not be thrown, never. May be block throw with CurWeapon? PHP Code:
|
Re: How to block grenade throw
Try this :)
PHP Code:
|
Re: How to block grenade throw
Work =)
Lilltle question, how can do to show left time whenever click on +attack, now I see time when change weapon to grenade. And how to remove dot on message after number? Now I see "Please, wait 2. seconds" |
| All times are GMT -4. The time now is 10:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.