weapon's projectile raycasts are made against ped bones

This commit is contained in:
in0finite 2020-05-16 23:04:56 +02:00
parent 8f56469b28
commit b203a0b667
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ MonoBehaviour:
crouchSpineRotationOffset2: {x: 0, y: 15, z: 90}
projectileRaycastMask:
serializedVersion: 2
m_Bits: 4294967291
m_Bits: 5889
drawLineFromGun: 0
--- !u!114 &114529712737653322
MonoBehaviour:

View file

@ -621,7 +621,7 @@ namespace SanAndreasUnity.Behaviours
{
// if target object has damageable script, inflict damage to it
var damageable = hit.transform.GetComponent<Damageable> ();
var damageable = hit.transform.GetComponentInParent<Damageable> ();
if (damageable)
{
// ray hit something that can be damaged