ham_takedamage or ham_traceattack?
whats the difference?
ham_TakeDamage ham_TraceAttack and what should be use? |
Re: ham_takedamage or ham_traceattack?
Depends on what you want to do.
Ham_TakeDamage is called when damage is done Ham_TraceAttack is called when a player shoots for example. (Not sure what it does for other entities) |
Re: ham_takedamage or ham_traceattack?
Ham_TraceAttack - even when a player did not have damage (example: shoot team mate but disabled freindlyfire)
Not sure. |
Re: ham_takedamage or ham_traceattack?
From ham_const.inc
PHP Code:
PHP Code:
|
Re: ham_takedamage or ham_traceattack?
Ham_TraceAttack is the traceline of the attack/bullet/damage whatever, you can use it with entities or even with worldspawn to detect bullets hitting walls, use this if you need something complicated like seeing if the shot was near a something else... this would be excelent for exploding ammo =)
If you just want to check when someone was damaged by something/someone, use Ham_TakeDamage. |
Re: ham_takedamage or ham_traceattack?
Thanks every one.
One last question: Ham_TraceAttack can trace a attack from teammate (even if no friendlyfire) |
Re: ham_takedamage or ham_traceattack?
Yes but you can use Ham_TakeDamage for that too, it triggers regardless of mp_friendlyfire when you shoot teammates.
|
Re: ham_takedamage or ham_traceattack?
Thanks :up:
|
| All times are GMT -4. The time now is 08:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.