Skip to content

Commit

Permalink
disable ai trades when all players are in custody
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitawastaken committed Feb 3, 2024
1 parent e540ff5 commit 7cd79d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lua/groupaistatebase.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 0 additions & 1 deletion lua/playertweakdata.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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????
Expand Down

0 comments on commit 7cd79d2

Please sign in to comment.