Spinal injury support
This commit is contained in:
parent
c9ba1e8709
commit
303d596a31
2 changed files with 12 additions and 2 deletions
|
|
@ -398,7 +398,13 @@ function MODULE:PhysicsSimulate(phys, dt)
|
|||
-- If the NPC is dead, they probably aren't coming back; don't bother bringing them back to life
|
||||
self:Remove()
|
||||
return false -- Cut the bullshit
|
||||
elseif (target.organism.consciousness <= 0.5) or ((target.organism.lleg >= 0.85) and (target.organism.rleg >= 0.85)) then
|
||||
elseif (
|
||||
(target.organism.consciousness <= 0.4) or
|
||||
((target.organism.lleg >= 0.85) and (target.organism.rleg >= 0.85)) or
|
||||
(target.organism.spine1 == 1) or
|
||||
(target.organism.spine2 == 1) or
|
||||
(target.organism.spine3 == 1)
|
||||
) then
|
||||
target.StartDie = cur_time
|
||||
return false
|
||||
end
|
||||
|
|
|
|||
|
|
@ -208,7 +208,11 @@ function MODULE:PhysicsSimulate(phys, dt)
|
|||
-- If the NPC is dead, they probably aren't coming back; don't bother bringing them back to life
|
||||
self:Remove()
|
||||
return false -- Cut the bullshit
|
||||
elseif (target.organism.consciousness <= 0.3) then
|
||||
elseif (
|
||||
(target.organism.consciousness <= 0.4) or
|
||||
(target.organism.spine2 == 1) or
|
||||
(target.organism.spine3 == 1)
|
||||
) then
|
||||
return false
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue