mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-14 12:18:22 +00:00
0545adfac3
Have fun!
9 lines
330 B
C++
9 lines
330 B
C++
#include "ActPlayerDeathTrigger.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
|
|
|
|
target->Smash(self->GetObjectID(), eKillType::SILENT);
|
|
}
|