mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-09 17:08:06 +00:00
Update activing and racing components
Hopefully not going to rename them for a third time, no way
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include "ActVehicleDeathTrigger.h"
|
||||
#include "PossessableComponent.h"
|
||||
#include "GameMessages.h"
|
||||
#include "VehicleRacingControlComponent.h"
|
||||
#include "RacingComponent.h"
|
||||
#include "dZoneManager.h"
|
||||
#include "EntityManager.h"
|
||||
#include "PossessionComponent.h"
|
||||
@@ -44,7 +44,7 @@ void ActVehicleDeathTrigger::OnCollisionPhantom(Entity* self, Entity* target) {
|
||||
|
||||
auto* zoneController = dZoneManager::Instance()->GetZoneControlObject();
|
||||
|
||||
auto* vehicleRacingControlComponent = zoneController->GetComponent<VehicleRacingControlComponent>();
|
||||
auto* racingComponent = zoneController->GetComponent<RacingComponent>();
|
||||
|
||||
if (vehicleRacingControlComponent) vehicleRacingControlComponent->OnRequestDie(player);
|
||||
if (racingComponent) racingComponent->OnRequestDie(player);
|
||||
}
|
||||
|
Reference in New Issue
Block a user