1
0

Added HOOK_KILLED

This commit is contained in:
Nounours Heureux
2015-06-02 17:06:18 +02:00
parent f0ee0b8ce8
commit d79f601d5a
9 changed files with 75 additions and 12 deletions

View File

@@ -744,6 +744,13 @@ void cEntity::KilledBy(TakeDamageInfo & a_TDI)
return;
}
// If the victim is a player the hook is handled by the cPlayer class
if (!IsPlayer())
{
AString emptystring = AString("");
cRoot::Get()->GetPluginManager()->CallHookKilled(*this, a_TDI, emptystring);
}
// Drop loot:
cItems Drops;
GetDrops(Drops, a_TDI.Attacker);