mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 06:27:24 +00:00
891648288a
Probably the third or fourth pass of this darn header... Just keep making it better every time Rename some functions to make more sense to a reader Use different method for Observing/subscribing to component events Get rid of abomination of overloading GetParentUser
9 lines
279 B
C++
9 lines
279 B
C++
#include "AgShipPlayerDeathTrigger.h"
|
|
#include "Entity.h"
|
|
|
|
void AgShipPlayerDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
|
|
if (target->GetLOT() == 1 && !target->IsDead()) {
|
|
target->Smash(self->GetObjectID(), eKillType::VIOLENT, u"electro-shock-death");
|
|
}
|
|
}
|