I got into this situation where I angered an NPC, died, spawned in the same place it took place in and died again because that NPC was still hostile for some reason. I also have other cases where NPCs would remember me as an ally and follow me around even though my character that was allied with him is also dead. I have both static and random NPCs on.