The physics body that was hit
The bone index that the hitbox was attached to
The actual amount of damage this attack causes
The force of the damage - for moving physics etc. This would be the trajectory of the bullet multiplied by the speed and mass.
Damage tags, extra information about this attack
Creates a new DamageInfo with the "bullet" tag
Creates a new DamageInfo with the "explosion" tag
Creates a new DamageInfo with no tags
Returns true if this DamageInfo has ALL of the following tags
Returns true if this DamageInfo has ANY of the following tags
Do we have a tag that matches this string?
Fills in the PhysicsBody and Hitbox from the trace result
Set the attacker
Sets the bone index
Sets the amount of damage
Sets the force
Sets the hit physics body
Sets the position
Includes one tag to this damage info. Can be accessed via DamageInfo.HasTag and DamageInfo.Tags for a full list.
Includes any number of tags to this damage info. Can be accessed via DamageInfo.HasTag and DamageInfo.Tags for a full list.
Set the attacker