[API Request] Damage Type

chrisk

Active member
Hi, I need to handle damages depends on different damage types.

Can you please add damage types as a parameter to Damage and OnDamage?
Something like the following would be good.
Thanks.

Code:
enum EDamageType {

 Bullet,

 Explosition,

 Knife,

 Fist,

 Melee,

}
 
Within the OnObjectImpact callback it sends the object that is doing the destruction so you can get the type of damage. This is not sent to the health damage method but I can add it if you need it there as well.
 
OnObjectImpact sends player and the hitObject but not the damager.
As an example, can you tell me how I can get information if Granade is causing the damage?

And I need to override Health.Damage but there is no information passed.

Of course I can do it (I'm doing it already) but I'm asking because I have to do this every time I update the patch.
I wouldn't ask if it's just for me, for the benefit for the many.
 
Top