HideFromCops (by vladvo)
How it works:
When CJ has a wanted level and gets away from cop's line of sight the mod goes into Delay1 phase and a fill bar will appear. Cops will follow CJ, knowing his position. Everything goes the same way as in vanilla game. At the same time the timer is counting. The timer will be reset if any cop will have a clear line of sight to CJ.
When the Delay1 timer runs out the mod will switch into Delay2 phase.
Cops will just wander around. Still, if they spot CJ - the timers will be reset
and the mod will go into pre-Delay1 status. Firing any gun (except silenced) will
alert the cops and reset both timers.
Delay1 and Delay2 timers can be configured for each wanted level in ini.
Sight distance. SightDist param in ini.
This setting sets how far the cops can see you. Can be set for each wanted level as well.
LightingAffectsSight setting:
This will reduce cop's sight range when CJ is in dark area.
LightingAffectsTime setting:
This will speed up timers when CJ is in dark area.
HowHidingEnds setting:
If CJ was successful in hiding from cops - it is
possible to change how it will end.
Drop wanted level immediately or Go on parole (the flashing stars).
BarPosX and BarPosY are used to point the coords where fill bar will appear.
Thanks to Birds for idea and ArtemQA for the fill bar.
Update 1:
- helicopters and boats should ignore player when he's in second phase of hiding
- underwater stuff:
-- during daytime (6-21) you'll have to dive deeper that 8.0 to hide
-- during nighttime (21-6) depth of 4.0 will be enough
- player blip will change color when in dark areas or underwater (can be toggled in .ini)
- news heli will report CJ's location to police and CJ's "hiding" status will be reset
- fixed crash when entering PolMav, Predator or NewsHeli with any wanted level
- some unneccessary stuff removed
|