Ham_TakeDamage
I have a question..
PHP Code:
Inflictor is the gun and dmgbits is the body part where the bullet collides? Another question. If I put "kill" in console, or I kill me self with the worldspawn. The attacker & the victim are my id? Thanks ! |
Re: Ham_TakeDamage
|
Re: Ham_TakeDamage
Quote:
|
Re: Ham_TakeDamage
Jajaj, thanks fysiks but the main idea was the function's parameters and the others questions :P.
Can anyone answer me the questions ? I need it ^^ |
Re: Ham_TakeDamage
|
Re: Ham_TakeDamage
U cant get body part with just Ham_TakeDamage, see link above for that
|
Re: Ham_TakeDamage
Inflictor is NOT the weapon entity.
Inflictor is Attacker. Only when it is a HE grenade, inflictor is the grenade entity index. |
Re: Ham_TakeDamage
Inflictor is the entity that caused the damage : He grenade, custom entity used as projectile. Since there are no bullets, inflictor is the same as attacker for all guns.
Attacker is the entity that triggered the damage. |
| All times are GMT -4. The time now is 00:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.