Reset Your NPC

If you liked this item, please rate it up on Steam Workshop page.

Author: PhantomBravo

Last revision: 20 Apr at 08:01 UTC

File size: 199.75 KB

On Steam Workshop

Description:
You should reset yourself, NOW!!!

(Don’t actually "reset" yourself.)

A mutator that is meant to reset an NPC that is exhibiting bugged/glitched behavior due to this or that mod (or when HavenM decides to crash out for some reason).

To Reset, press the DELETE key on your keyboard.

The DELETE key on your keyboard’s Number Pad will probably not work, but every keyboard has a DELETE key.

This mutator simply not just kills, but instakills and then respawns all actors in the player’s squad using the KillSilently() method associated with the Actor class. This means it does not impact the bot’s scoreboard performance or game mode values.

When the actor is not just killed, but instakilled, and then respawned immediately, they will be teleported to the player’s location. If the player is in a vehicle, then they will occupy available empty seats of the vehicle.

There is one configuration setting to preserve actor info, on by default. This will ensure that when an actor is respawned, they are restored to their previous state that takes into account their current HP, max HP, max balance amount, weapons selection, and the individual ammo, spare ammo, and max spare ammo values for each weapon. If you want additional values to be tracked and restored, then please let me know.

Notes

– Remember that actors must be in your squad to be reset.
– If you are using the Weapon Pickup mod, then you may notice the bot dropping a copy of their weapon when they are reset. There’s not much I can do about this, just try to ignore it.
– Compatible with the Spec Ops class mutator, which also performs loadout restoration to actors spawning in.
– Try not to reset too often. Only do so as a last resort when there is no other means for you to coax a bot back into normal behavior.
– Let me know if this method of resetting an NPC actually works for any encounterable issues. Causes of bots being bugged can arise from the EHADS 3 mod. In this mod, bots can use medical items on each other. A recipient bot will become stationary when they are expecting treatment from a friendly bot. In some cases they may become locked in this stationary state. Then there is HavenM, which always produces anomalies in bot behavior…

Report bugs and leave feedback.