v1.0.52.0 released. See post #1
This version includes my mega-patch AI Crew Damage Control
There are many variables that can be adjusted (and still needs to be adjusted/tweaked) that are defined in the SHCollisions.s5p file:
; Code1 variables:
; 6666663F - max damage allowed in zone (box). If damage greater than this value then crew is not allowed to repair damage (value is 0.9)
; CDCC4C3F - max flooding allowed in zone (box). If flooding level is greater than this value then crew is not allowed to repair damage (value is 0.8)
; 3333333F - % chance crew will repair some damage. If random number is less than this value then crew repairs damage (value is 0.7)
; 000080BE - max % damage crew can repair in an hour (value is -0.25)
; B4A29139 - conversion factor to convert from hours to seconds (1 / 3600)
; 0000803F - tweak factor for damage repair (value is 1.0)
Code1=0x200,6666663FCDCC4C3F3333333F000080BEB4A291 390000803F
; Code2 variables:
; 3333333F - % chance crew will remove some flood water. If random number is less than this value then crew removes some flood water (value is 0.7)
; 9A9999BE - max % flooding level decrease per hour (value is -0.3)
; B4A29139 - conversion factor to convert from hours to seconds (1 / 3600)
; 0000803F - tweak factor flooding removal (value is 1.0)
Code2=0x220,3333333F9A9999BEB4A291390000803F
; Code3 variables:
; CDCCCC3E - max damage level % for % chance crew removes flood water added to zone (box) 1. If damage level is greater than this value then % chance crew removes flood water 2 is used (value is 0.4)
; 9A99193F - % chance crew removes flood water 1 added to zone (box) by game. If random number if less than this value then crew removes flood water added to zone (box) by game (value is 0.6)
; CDCCCC3E - % chance crew removes flood water 2 added to zone (box) by game. If random number if less than this value then crew removes flood water added to zone (box) by game (value is 0.4)
; 3333333F - if crew fails to remove the flood water added by game then this is the % chance they reduce the flood water amount. If random number if less than this value then crew reduces flood water amount (value is 0.7)
; 666626BF - % reduction of flood water amount. If crew is able to reduce the flood water amount then it's reduced by this % multiplied by a random number (0-1.0) (value is -0.65)
Code3=0x230,CDCCCC3E9A99193FCDCCCC3E3333333F666626 BF
I haven't updated the patcher app yet so that it can manipulate these variables. In the meantime you'll see it's fairly easy to change the values. NOTE: you'll need to use an unmodified SHCollisions.act file if you want to update the variables. Reason is this data is only written to the file when the new sections are added to it.
We need to play around/tweak these values. I supplied the necessary code/framework for this to work. Now we need to adjust it/tweak to work 100%