mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-14 16:27:19 +00:00
add hit point and hit normal to DamageInfo class
This commit is contained in:
parent
d6c79434a4
commit
115821f2da
2 changed files with 4 additions and 0 deletions
|
@ -640,6 +640,8 @@ namespace SanAndreasUnity.Behaviours
|
|||
{
|
||||
amount = this.Damage,
|
||||
raycastHitTransform = hit.collider.transform,
|
||||
hitPoint = hit.point,
|
||||
hitNormal = hit.normal,
|
||||
attacker = m_ped,
|
||||
});
|
||||
}
|
||||
|
|
|
@ -10,6 +10,8 @@ namespace SanAndreasUnity.Utilities
|
|||
public float amount = 0f;
|
||||
public string damageType = null;
|
||||
public Transform raycastHitTransform = null;
|
||||
public Vector3 hitPoint = Vector3.zero;
|
||||
public Vector3 hitNormal = Vector3.up;
|
||||
public object attacker = null;
|
||||
public object data = null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue