Reset the NPC aggro timer?
You know that thing you get when you attack an NPC in a safe zone, that makes all the turrets and bandits, etc attack you?  How do I programatically reset that to zero (turn it off)?  I respawned a player in bandit camp and he was tagged so he got infinitely stuck as they killed him over and over (doh).  ;)
Have you tried setting BasePlayer.unHostileTime to Time.time?
Not available anymore, private field.  I tried BasePlayer.MarkHostileFor(0)  but that seemed to have no effect, probably only allows for adding time.

I've worked around this by spawning players at the beach when they're hostile, but clearing the hostile timer on death would be much better I think.
I have the following in a custom plugin for local testing.

basePlayer.State.unHostileTimestamp = Network.TimeEx.currentTimestamp;
basePlayer.MarkHostileFor(0);​