From e26fd6104429ae300aa7a3ab4fad0830d328574b Mon Sep 17 00:00:00 2001 From: cypress Date: Sat, 16 Dec 2023 14:05:43 -0500 Subject: [PATCH] SERVER: Allow setting -1 for Barricade max health --- source/server/entities/window.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/server/entities/window.qc b/source/server/entities/window.qc index 5cef4bb..224c420 100644 --- a/source/server/entities/window.qc +++ b/source/server/entities/window.qc @@ -398,11 +398,12 @@ void() item_barricade = self.health = 6; // Max Health - if (!self.health_delay || self.health_delay > 6 || self.health_delay < 0) + if (!self.health_delay || self.health_delay > 6) self.health_delay = 6; // Restore health state if using compatibility hack if (self.health == -1) self.health = 0; + if (self.health_delay == -1) self.health_delay = 0; // cypress -- i was going to add a check if the start health was greater // than max here, but i figured someone might want to make a weird ass