mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-11-03 22:21:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			346 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			346 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#include "ActPlayerDeathTrigger.h"
 | 
						|
 | 
						|
#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
 | 
						|
 | 
						|
	target->Smash(self->GetObjectID(), eKillType::SILENT);
 | 
						|
}
 |