Update activing and racing components

Hopefully not going to rename them for a third time, no way
This commit is contained in:
Aaron Kimbre
2023-06-26 15:06:33 -05:00
parent 68f90b7136
commit fd182d222f
22 changed files with 2175 additions and 2176 deletions

View File

@@ -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);
}