branchwiseguys/main/Workingcancel
343 Commits over 153 Days - 0.09cph!
Merge from Main to Working
Quick hack for better loitering times
NPCs no longer spend money to buy drugs, so they don't run out of money either. +bugfix
Merge Points Of Interest branch into Working
Minor fix for testmap_small alley.
Basic framework for NPC Points Of Interest
Cops no longer get guns out when doing non-violent arrests
Cops have to be facing you to arrest you
Fix pathing bug. Apparently we still need the area mask as paths points will otherwise be selectively ignored!
Random walk fallback using the new pathing system fixes bots always walking into the corner when in prison.
Fixed prison navmesh gen. Had the same issue as other buildings, where the nav gen sneaks through the gap between floors.
Skip welcome screen entirely when using Fast Countdowns.
Suppress the AssetUsageDetector warning for old prefab code. Should check the github for updates at some point. https://github.com/yasirkula/UnityAssetUsageDetector
Added AssetUsageDetector. Open it via Tools > Asset Usage Detector.
Fixed an NRE that occurred only on separate client/server, when a player died while in a vehicle while the vehicle was at the same moment colliding with another character.
Fixed issues with getting arrested while in a vehicle, and also fixed a bug with how characters were killed/destroyed when their vehicle was destroyed. Can now get arrested while in a vehicle if it's travelling at 1m/s (3.6km/h) or less.
Make IsInPrison a method instead of a property, so it's more obvious that it's doing something relatively significant (a bounds check)
Fines now take from your bank account first, inventory second
Still clear Wanted state in scenes with no prison
Crimes UI is more efficient now - letting it update more frequently.
Fixing some more tricky issues with connecting and reconnecting, main around reconnecting while dead.
Add testmap_smallest to build settings
Fix for players not setting their character selection on the client if they quit and re-join with their character alive
PlayerVoiceRecorder NRE fix
Fix CLIENT/SERVER defines
Append [MAX] in a couple of places if potential prison sentence is at max
Reverting - it broke mouse capture.
Fixed OnBecomeActive being called twice even time UI opens (fixed double crime list entries).
Working on fixing up the crime log UI
Showing crime UI prison time in game time, to match others
Sorted out issues with duplicate crime detection