From 303d596a3126ff67cf707bc1d452bf454c5c7f1b Mon Sep 17 00:00:00 2001 From: toasterpanic Date: Thu, 4 Jun 2026 18:30:10 -0400 Subject: [PATCH] Spinal injury support --- lua/zcnpci/modules/falling_legs.lua | 8 +++++++- lua/zcnpci/modules/falling_torso.lua | 6 +++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lua/zcnpci/modules/falling_legs.lua b/lua/zcnpci/modules/falling_legs.lua index 40c60f9..25ce3c2 100644 --- a/lua/zcnpci/modules/falling_legs.lua +++ b/lua/zcnpci/modules/falling_legs.lua @@ -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 diff --git a/lua/zcnpci/modules/falling_torso.lua b/lua/zcnpci/modules/falling_torso.lua index 60a4e7a..bf89e80 100644 --- a/lua/zcnpci/modules/falling_torso.lua +++ b/lua/zcnpci/modules/falling_torso.lua @@ -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