124 files changed.

This commit is contained in:
Milxnor
2023-04-15 19:53:58 -04:00
parent 63473de425
commit bbf28ed9e9
124 changed files with 60988 additions and 577 deletions

View File

@@ -0,0 +1,35 @@
#pragma once
#include "FortAthenaVehicle.h"
#include "reboot.h"
class AFortMountedCannon : public AFortAthenaVehicle // : public AFortMountedTurret
{
public:
void OnLaunchPawn(AFortPlayerPawn* Pawn)
{
static auto OnLaunchPawnFn = FindObject<UFunction>("/Script/FortniteGame.FortMountedCannon.OnLaunchPawn");
this->ProcessEvent(OnLaunchPawnFn, &Pawn);
}
void ShootPawnOut()
{
auto PawnToShoot = this->GetPawnAtSeat(0);
LOG_INFO(LogDev, "PawnToShoot: {}", __int64(PawnToShoot));
if (!PawnToShoot)
return;
PawnToShoot->ServerOnExitVehicle(ETryExitVehicleBehavior::ForceAlways);
this->OnLaunchPawn(PawnToShoot);
}
static UClass* StaticClass()
{
static auto Class = FindObject<UClass>("/Script/FortniteGame.FortMountedCannon");
return Class;
}
};