mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-10 17:38:08 +00:00
Update activing and racing components
Hopefully not going to rename them for a third time, no way
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include "PossessableComponent.h"
|
||||
#include "PossessionComponent.h"
|
||||
#include "EntityManager.h"
|
||||
#include "VehicleRacingControlComponent.h"
|
||||
#include "RacingComponent.h"
|
||||
#include "dZoneManager.h"
|
||||
|
||||
void RaceMaelstromGeiser::OnStartup(Entity* self) {
|
||||
@@ -59,9 +59,9 @@ void RaceMaelstromGeiser::OnProximityUpdate(Entity* self, Entity* entering, std:
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
void RaceMaelstromGeiser::OnTimerDone(Entity* self, std::string timerName) {
|
||||
|
@@ -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