From 7cd79d2084a5a2920758d9cae22a798f367e0e34 Mon Sep 17 00:00:00 2001 From: nikita <59087849+mrcreepysos@users.noreply.github.com> Date: Sat, 3 Feb 2024 03:40:45 +0300 Subject: [PATCH] disable ai trades when all players are in custody --- lua/groupaistatebase.lua | 3 +++ lua/playertweakdata.lua | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/groupaistatebase.lua b/lua/groupaistatebase.lua index d4712bb..d3284bb 100644 --- a/lua/groupaistatebase.lua +++ b/lua/groupaistatebase.lua @@ -320,3 +320,6 @@ function GroupAIStateBase:_try_use_task_spawn_event(t, target_area, task_type, t end end end + +-- disable ai trades when all players are in custody, if you fucked up - you fucked up +function GroupAIStateBase:is_ai_trade_possible() return false end \ No newline at end of file diff --git a/lua/playertweakdata.lua b/lua/playertweakdata.lua index 9137eb5..9e2c886 100644 --- a/lua/playertweakdata.lua +++ b/lua/playertweakdata.lua @@ -53,7 +53,6 @@ Hooks:PostHook(PlayerTweakData, "init", "eclipse__init", function(self) self.damage.DOWNED_TIME = 30 self.damage.DOWNED_TIME_DEC = 0 self.damage.DOWNED_TIME_MIN = 30 - self.damage.automatic_respawn_time = nil end) -- Game too hard for single player appparently????