- In mob/living init, makes sure there is no pre-existing ai_holder before calling its init
- In the initialize_ai_holder, double checks if we got a pre-existing ai_holder and properly GCs it if so
- Furthermore, checks if the ai_holder_type was valid by checking if ai_holder is null, if so - logs a debug message and returns.
Moves the logic for initializing an ai_holder from mob/living/Initialize() into its own proc, replacing the original code with a call of this proc.
Functionally, nothing has been changed. However, this enables ai reinitialization for gms
Makes it so that if you rest while being attacked by a retaliate mob, they may decide to stop attacking you.
They will forgive you if their health is full, if they cannot eat you, and if they are otherwise not hostile. If they CAN eat you, then their behavior will be as normal, they will proceed to eat you.
At the moment this applies to all retaliate mobs, but a variable `forgive_resting` is in place for in case we want some mobs to not be so forgiving, be it normally or through adminbus.
While I was working on kobs I fixed and tweaked a whole bunch of little things. I figured even then that I should separate the fixes, but I never got around to it
Now I have~
-Only if it's enabled on the mob's AI holder
-Only if your settings are configured to allow it.
Otherwise it acts normal, doesn't bother SSD people, doesn't maul you while unconscious (unless it is set to do that, since that's an option that exists)
Important for a mob I will be adding soon.
Now they ONLY respond to psps, rather than everything except psps except when they are kicking your ass.
Also makes it so simplemobs get up to kick your ass if you attack them when they are resting.
The default "threaten" timer was 3 seconds, meaning that as soon as world.time advanced beyond that, the merc would shoot you. If there's TIDI/lag or other issues, you'd immediately end up getting shot.
30 seconds is more reasonable, allows you time to back away from the merc without being shot at, and it keeps the mercs from being cheesed easily.
This also fixes the merc aggression sounds. Actual voicelines incoming once I get help from a contributor!