mirror of
https://github.com/HaodongMo/ARC-9.git
synced 2025-03-04 03:02:58 -05:00
Fix helicopter workaroud
This commit is contained in:
parent
d9cd2254ae
commit
ceab44da01
@ -269,6 +269,8 @@ if SERVER then
|
||||
|
||||
self.LastHitNormal = colData.HitNormal
|
||||
|
||||
local tgt
|
||||
|
||||
if self.ExplodeOnImpact then
|
||||
if CurTime() - self.SpawnTime < self.FuseTime then
|
||||
if IsValid(colData.HitEntity) then
|
||||
@ -302,7 +304,7 @@ if SERVER then
|
||||
effectdata:SetOrigin( self:GetPos() )
|
||||
|
||||
-- simulate AP damage on vehicles, mainly simfphys
|
||||
local tgt = colData.HitEntity
|
||||
tgt = colData.HitEntity
|
||||
while IsValid(tgt) do
|
||||
if tgt.GetParent and IsValid(tgt:GetParent()) then
|
||||
tgt = tgt:GetParent()
|
||||
|
Loading…
Reference in New Issue
Block a user