I just noticed that in the latest update the hook OnCorpsePopulate is no longer beeing triggered when a scientist dies (or spawns a corpse for that matter). The reason for that is that they reworked the NPC classes and the hooks are not added yet.
Can you please add the new hook too? The code looks identical in both classes/methods: Scientist.CreateCorpse() and HumanNPCNew.CreateCorpse() so I guess it shouldn't be that big of a deal to add it.
Many thanks in advance.
Missing Hook 'OnCorpsePopulate' in class HumanNPCNewFixed
Scientist already has OnCorpsePopulate, ScientistNPCNew doesn't have a method to hook for that. Added one for HumanNPCNew that I am pushing. Looks like ScientistNPCNew uses HumanNPCNew as a base though.
Ah, yeah sorry for the misunderstanding, I meant the old code from the Scientist.CreateCorpse method looks identical to the new one in the HumanNPCNew.CreateCorpse method. The new ScientistNPCNew class uses the HumanNPCNew as base, thats right.
Merged post
Just tested it out - works fine. Thank you very much!
Locked automatically