DarkflameServer/dScripts/ai/ACT/ActPlayerDeathTrigger.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
346 B
C++
Raw Permalink Normal View History

#include "ActPlayerDeathTrigger.h"
2023-03-08 13:32:03 +00:00
#include "Entity.h"
void ActPlayerDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
if (!target->IsPlayer() || target->GetIsDead() || !target->GetPlayerReadyForUpdates()) return; //Don't kill already dead players or players not ready
2022-07-28 13:39:57 +00:00
target->Smash(self->GetObjectID(), eKillType::SILENT);
}