REO-EE/_module/nss/zom_on_death.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

25 lines
614 B
Plaintext

#include "inc_system_const"
void main()
{
object oKiller = GetLastKiller();
// Bioware Default
ExecuteScript("nw_c2_default7", OBJECT_SELF);
// Lootable Corpses System
SetIsDestroyable(FALSE,TRUE);
ExecuteScript("gb_loot_corpse",OBJECT_SELF);
// Increment PC's zombie kill counter
if(GetIsPC(oKiller))
{
object oDatabase = GetItemPossessedBy(oKiller, PC_DATABASE);
int iKills = GetLocalInt(oDatabase, "ZOMBIE_KILLS") + 1;
SetLocalInt(oDatabase, "ZOMBIE_KILLS", iKills);
}
// Quest System
ExecuteScript("qst_enemy_death", OBJECT_SELF);
}