Removed Unnecessary Mod Files; Updated Mods

This commit is contained in:
2024-03-20 06:40:41 -04:00
parent 7f0caa168b
commit 290378b961
185 changed files with 14333 additions and 8374 deletions
@@ -172,12 +172,15 @@ function xr_corpse_detection.evaluator_corpse:find_valid_target()
if (self.a.selected_corpse_id) then -- looting process
local corpse = db.storage[self.a.selected_corpse_id] and db.storage[self.a.selected_corpse_id].object or level.object_by_id(self.a.selected_corpse_id)
local state = state_mgr.get_state(self.object)
if corpse and not xr_corpse_detection.near_actor(corpse) then
-- Code demonized - add check for looting state so the npc wont stop looting if actor is near a corpse
if corpse and (state == "search_corpse" or state == "field_dress" or state == "scaner_crouch" or not xr_corpse_detection.near_actor(corpse)) then
return true
elseif (db.storage[self.a.selected_corpse_id]) then
db.storage[self.a.selected_corpse_id].corpse_already_selected = nil
end
-- code end
end
local tg = time_global()