Page 1 of 1

Snitch sorter mod bugfix

Posted: Sat Jan 30, 2016 1:14 pm
by murgh
I noticed the Snitch Sorter mod is some awesome handy tool, but with just one drawback: prisoners on death row who happen to be a snitch will get marked as protective custody - something which is definitely not wanted. To prevent this, an extra if/then is needed in the lua script handling the snitch sorting. Things work out perfectly again with this code:

Code: Select all

if prisoners~=nil then
   for name,dist in pairs( prisoners ) do
      if name.SnitchTimer~=0 then
         --Game.DebugOut("Prisoner is snitch");
         if name.Category~= "DeathRow" then
            Object.SetProperty(name,"Category",4);
         end
      end
   end
end


A much improved version of the Snitch Sorter can be found here viewtopic.php?f=88&t=59499 as being a part of a bigger mod.

p.s. Sorry, can't post on Steam discussions, so I thought I'd put this feedback in here instead. ;)