Bug with hegrenade exploding
Hello.
That plugin sets targets punch angle and ignites him if attacker uses knife. But have bug: when someone throwing a grenade and changing to a knife, the plugin works like player attacks with knife. How to solve this bug ? PHP Code:
|
Re: Bug with hegrenade exploding
Need full function code, is this running during player_hurt event or OnTakeDamage sdkhook?
|
Re: Bug with hegrenade exploding
Sdkhook ontakedamage
|
Re: Bug with hegrenade exploding
Well you can check if the damage type is dmg_blast before checking the weapon and that should work I believe.
Code:
if(damagetype == DMG_BLAST) return Plugin_Continue; |
Re: Bug with hegrenade exploding
Quote:
|
All times are GMT -4. The time now is 07:29. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.