mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-25 21:40:19 +00:00
weapon's projectile raycasts are made against ped bones
This commit is contained in:
parent
8f56469b28
commit
b203a0b667
2 changed files with 2 additions and 2 deletions
|
@ -122,7 +122,7 @@ MonoBehaviour:
|
||||||
crouchSpineRotationOffset2: {x: 0, y: 15, z: 90}
|
crouchSpineRotationOffset2: {x: 0, y: 15, z: 90}
|
||||||
projectileRaycastMask:
|
projectileRaycastMask:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Bits: 4294967291
|
m_Bits: 5889
|
||||||
drawLineFromGun: 0
|
drawLineFromGun: 0
|
||||||
--- !u!114 &114529712737653322
|
--- !u!114 &114529712737653322
|
||||||
MonoBehaviour:
|
MonoBehaviour:
|
||||||
|
|
|
@ -621,7 +621,7 @@ namespace SanAndreasUnity.Behaviours
|
||||||
{
|
{
|
||||||
// if target object has damageable script, inflict damage to it
|
// if target object has damageable script, inflict damage to it
|
||||||
|
|
||||||
var damageable = hit.transform.GetComponent<Damageable> ();
|
var damageable = hit.transform.GetComponentInParent<Damageable> ();
|
||||||
if (damageable)
|
if (damageable)
|
||||||
{
|
{
|
||||||
// ray hit something that can be damaged
|
// ray hit something that can be damaged
|
||||||
|
|
Loading…
Reference in a new issue