add hit point and hit normal to DamageInfo class

This commit is contained in:
in0finite 2020-07-01 18:52:35 +02:00
parent d6c79434a4
commit 115821f2da
2 changed files with 4 additions and 0 deletions

View file

@ -640,6 +640,8 @@ namespace SanAndreasUnity.Behaviours
{
amount = this.Damage,
raycastHitTransform = hit.collider.transform,
hitPoint = hit.point,
hitNormal = hit.normal,
attacker = m_ped,
});
}

View file

@ -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;
}