Protect player from he grenade
How to ?
I use hamsandwich but i dont know how to made a check in takedmg event. |
Re: Protect player from he grenade
PHP Code:
|
Re: Protect player from he grenade
Quote:
You wana block throw he grenade or what ? |
Re: Protect player from he grenade
Swapped please don't comment in topics where you don't understand the goal. "Protect player from he grenade" -> no damage from he.
|
Re: Protect player from he grenade
Flick3rR, thank you! Works great!
|
Re: Protect player from he grenade
Quote:
I ask him to be more detalied to be able to help him :wink: |
Re: Protect player from he grenade
|
Re: Protect player from he grenade
Flick3rR, are you serious? Inflictor from Ham_TakeDamage is not a constant value. Please edit your post.
|
Re: Protect player from he grenade
OK, as I saw the last two posts in this topic https://forums.alliedmods.net/showthread.php?t=134262 I was like the inflictor is used for grenades. So, if this is not the right way, or syntax, or something else, whats the problem.
P.S.: I use dmgbits mostly, so I'm not very clear with the inflictor, but as I get from these post it this topic, inflictor could be used for grenade index, but for other guns its same as attacker. I guess this is not the right way to get it, you may share? |
Re: Protect player from he grenade
The problem is that Inflictor is an Entity where CSW_HEGRENADE is not
|
| All times are GMT -4. The time now is 09:40. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.