I tried detecting if the damage info was "DMG_PHYSGUN" or "DMG_BLAST," but they don't always split. How would I detect if a zombie splits?
https://files.facepunch.com/forum/upload/295351/4fe1be51-0a8f-414a-9625-ec6890f1acf3/Inked20180728104754_1_LI.jpg
I did a little bit of research and the entities you are looking for are of the class raggib. I don't know if these entities carry any information about what they were from.
You might be able to get something to work by combining the OnNPCKilled and OnEntityCreated hooks. The OnNPCKilled hook is called first and the raggibs are created a short time later at the exact same X and Y coordinates that the NPC was killed, so perhaps detecting that more than one was created in the same position, and referencing that position to one saved in the OnNPCKilled hook?
I'll try doing that.
Sorry, you need to Log In to post a reply to this thread.