LEAP Documentation 40220
Documentation for the LEAP project
AProjectXGameModeVIP Class Reference

#include <ProjectXGameModeVIP.h>

Inheritance diagram for AProjectXGameModeVIP:
AProjectXGameMode

Public Member Functions

virtual void OnDeath (AController *Killed, AController *Killer, TSubclassOf< class UProjectXDamageType > DamageType, bool bWasHeadshot) override
 
virtual void CollectGamePlayObjects () override
 
bool GetAverageVIPPosition (uint8 Team, FVector &AveragePosition)
 
virtual void InitGameState () override
 
int32 GetNumberOfVIPS () const
 
bool IsValidVIPID (uint8 VIPID) const
 
- Public Member Functions inherited from AProjectXGameMode
FORCEINLINE TSubclassOf< AHUD > GetHUDClass () const
 
FORCEINLINE TSubclassOf< AHUD > GetSpectatorHUDClass () const
 
FORCEINLINE TSubclassOf< class ULocalMessage > GetExperienceEventMessageClass () const
 
int32 GetMaxPlayers () const
 
FORCEINLINE int32 GetAverageFramerate () const
 
FORCEINLINE int32 GetHighestAverageFramerate () const
 
FORCEINLINE int32 GetLowestAverageFramerate () const
 
FORCEINLINE int32 GetShortestFrame () const
 
FORCEINLINE int32 GetLongestFrame () const
 
UExperienceConfigurationGetExperienceConfiguration () const
 
bool AreLoadoutsEnabled () const
 
const TMap< uint8, FTeamInfo > & GetTeamConfig () const
 
virtual APawn * SpawnDefaultPawnAtTransform_Implementation (AController *NewPlayer, const FTransform &SpawnTransform) override
 
float GetRedeployRespawnTime () const
 
float GetReviveDuration () const
 
bool GetPreventsIdleKickWhileDead () const
 
virtual void InitGame (const FString &MapName, const FString &Options, FString &ErrorMessage) override
 
virtual void Tick (float DeltaSeconds) override
 
virtual void InitGameState () override
 
virtual void UpdateNetDriver ()
 
virtual void StartPlay () override
 
virtual void EndPlay (const EEndPlayReason::Type EndPlayReason) override
 
virtual void OnDeath (AController *Killed, AController *Killer, TSubclassOf< class UProjectXDamageType > DamageType, bool bWasHeadshot)
 
virtual void OnTeamKill (APlayerController *Killer, APlayerController *Killed)
 
virtual void StartMatch () override
 
virtual void EndWarmUp ()
 
virtual void RequestServerRestart ()
 
virtual bool IsMatchInProgress () const override
 
virtual void OnMatchStateSet () override
 
virtual void EndMatch ()
 
virtual void SetNextMapOverrideByName (const FName &NextMapName)
 
virtual void FinishMatch (FEndGameEvent const &EndGameEvent)
 
virtual void MatchStartRequest ()
 
virtual bool CanRestart () const
 
virtual bool IsMatchInWarmUp () const
 
virtual void EndMatchTimer ()
 
virtual bool RequestServerTravel (const FString &URL)
 
virtual void RestartPlayer (AController *NewPlayer) override
 
virtual void FinishRestartPlayer (AController *NewPlayer, const FRotator &StartRotation)
 
virtual void PreLogin (const FString &Options, const FString &Address, const FUniqueNetIdRepl &UniqueId, FString &ErrorMessage) override
 
virtual APlayerController * Login (UPlayer *NewPlayer, ENetRole InRemoteRole, const FString &Portal, const FString &Options, const FUniqueNetIdRepl &UniqueId, FString &ErrorMessage) override
 
virtual void PostLogin (APlayerController *NewPlayer) override
 
virtual void Logout (AController *Exiting) override
 
virtual AActor * ChoosePlayerStart_Implementation (AController *Player) override
 
virtual UClass * GetDefaultPawnClassForController_Implementation (AController *Player) override
 
virtual UClass * GetDefaultHUDClassForController (APlayerController *Player) const
 
virtual void InitializeHUDForPlayer_Implementation (APlayerController *NewPlayer) override
 
void RegisterPostGameLineup (AActor *PostGamePodium)
 
float GetPassiveUltChargeAmount ()
 
void UpdateGameModeWinStat (AProjectXPlayerState *const PXPlayerState)
 
FORCEINLINE int32 GetPlayerMaxDeployables () const
 
virtual bool ConsumeTicket (int32 Team, int32 Amount=1)
 
virtual ETeamJoinResponse JoinTeam (APlayerController *PlayerController, uint8 Team)
 
virtual ETeamJoinResponse CanJoinTeam (APlayerController *PlayerController, uint8 Team) const
 
TArray< FActorSpawnInfoGetWorldDropsOverrideArray () const
 
virtual TSubclassOf< AGameSession > GetGameSessionClass () const override
 
virtual void HandleMatchIsWaitingToStart () override
 
virtual void HandleMatchHasStarted () override
 
virtual void HandleMatchWarmupEnded ()
 
virtual void CalculateTicketWinCondition ()
 
virtual void CalculateTimeOutWinCondition ()
 
virtual int32 GetWinningTeamByTickets ()
 
virtual void AssignPlayerTeam (APlayerController *PlayerController, const FString &Options)
 
virtual bool AssignPlayerTeamFromTarget (const FString &Target, APlayerController *PlayerController)
 
virtual void AutoAssignPlayerTeam (APlayerController *PlayerController)
 
virtual void CollectGamePlayObjects ()
 
void OnAntiCheatKickRequired (APlayerController *Player, const FString &KickReason)
 
void OnAntiCheatMessageToClient (APlayerController *Recipient, TArrayView< const uint8 > Message)
 

Protected Member Functions

void UpdateVIPTeamList (uint8 Team, uint8 VIPID)
 
void OnVIPCharacterSpawned (APawn *NewPawn)
 
void CreateVIPPlayer (AProjectXPlayerState *const Player)
 
void InitializeVIPs ()
 
virtual APawn * SpawnDefaultPawnAtTransform_Implementation (AController *NewPlayer, const FTransform &SpawnTransform) override
 
virtual void HandleMatchWarmupEnded () override
 

Protected Attributes

TSubclassOf< class ULocalMessage > VIPBroadcastMessage
 
TSubclassOf< UAfflictionInstance > VIPAffliction
 
int32 MaximumSpawnRange = 30000.0
 
int32 MinimumSpawnRange = 60000.0
 
int32 NumberOfVIPs = 3
 
float NewVIPSpawnRadius = 30000.0
 
float NewVIPDelay = 4.0f
 
FTimerHandle UpdateVIPHandle
 
float VIPCheckTimer = 2.0f
 

Additional Inherited Members

- Static Public Member Functions inherited from AProjectXGameMode
static AProjectXGameModeGetGameModeDefaultObject (const UObject *WorldContextObject)
 
- Public Attributes inherited from AProjectXGameMode
float RestartMatchTime = 5.0f
 
int32 MaxPlayers = 16
 
int32 MaxSpectators = 8
 
int32 MaxTeamImbalance = 1
 
float MatchStartTime = 5.0f
 
float MatchStartTimeEditor = 3.0f
 
float MatchLength = -1.0f
 
bool bLoadoutsEnabled = true
 
float RedeployRespawnTime = 10.0f
 
bool bCanSwapTeams = true
 
int32 MaxPlayerDeployables = 1
 
float ReviveDuration = 30.0f
 
bool bPreventIdleKickWhileDead = false
 
TSubclassOf< AHUD > SpectatorHUDClass = NULL
 
TArray< FActorSpawnInfoWorldDropsOverride
 
float ServerRestartTime = 0.f
 
TSubclassOf< class ULocalMessage > GameModeBroadcastMessage
 
TSubclassOf< class ULocalMessage > KillBroadcastMessage
 
TSubclassOf< class ULocalMessage > HeadshotKillBroadcastMessage
 
TSubclassOf< class ULocalMessage > MatchStartRequestMessage
 
TSubclassOf< UExperienceConfigurationExperienceConfigurationClass = NULL
 
TSubclassOf< ULocalMessage > ExperienceEventMessageClass = NULL
 
TMap< uint8, FTeamInfoTeamStartingConfig
 
int32 MaxTeamSize = 0
 
int32 TeamKillsToWarning = 2
 
int32 TeamKillsToKick = 5
 
int32 TeamKillsToSessionKick = 8
 
float MatchLengthOverride = -1.0f
 
float MaxPlayersOverride = -1.0f
 
int32 MaxPlayerDeployablesOverride = -1
 
TArray< int32 > StartingTicketCountOverride
 
UCurveFloat * ChargeRateCurve
 
TSubclassOf< class ULocalMessage > TeamGameBroadcastMessage = NULL
 
FTimerHandle WarmUpTimer
 
FTimerHandle MatchTimer
 
FTimerHandle ServerResetTimer
 
TArray< APlayerStart * > LobbyPlayerStarts
 
TArray< APlayerStart * > MatchPlayerStarts
 

Member Function Documentation

◆ CollectGamePlayObjects()

void AProjectXGameModeVIP::CollectGamePlayObjects ( )
overridevirtual

Reimplemented from AProjectXGameMode.

◆ CreateVIPPlayer()

void AProjectXGameModeVIP::CreateVIPPlayer ( AProjectXPlayerState *const  Player)
protected

◆ GetAverageVIPPosition()

bool AProjectXGameModeVIP::GetAverageVIPPosition ( uint8  Team,
FVector &  AveragePosition 
)

◆ GetNumberOfVIPS()

int32 AProjectXGameModeVIP::GetNumberOfVIPS ( ) const
inline

◆ HandleMatchWarmupEnded()

void AProjectXGameModeVIP::HandleMatchWarmupEnded ( )
overrideprotectedvirtual

Reimplemented from AProjectXGameMode.

◆ InitGameState()

void AProjectXGameModeVIP::InitGameState ( )
overridevirtual

Reimplemented from AProjectXGameMode.

◆ InitializeVIPs()

void AProjectXGameModeVIP::InitializeVIPs ( )
protected

◆ IsValidVIPID()

bool AProjectXGameModeVIP::IsValidVIPID ( uint8  VIPID) const
inline

◆ OnDeath()

void AProjectXGameModeVIP::OnDeath ( AController *  Killed,
AController *  Killer,
TSubclassOf< class UProjectXDamageType DamageType,
bool  bWasHeadshot 
)
overridevirtual

Reimplemented from AProjectXGameMode.

◆ OnVIPCharacterSpawned()

void AProjectXGameModeVIP::OnVIPCharacterSpawned ( APawn *  NewPawn)
protected

◆ SpawnDefaultPawnAtTransform_Implementation()

APawn * AProjectXGameModeVIP::SpawnDefaultPawnAtTransform_Implementation ( AController *  NewPlayer,
const FTransform &  SpawnTransform 
)
overrideprotectedvirtual

Reimplemented from AProjectXGameMode.

◆ UpdateVIPTeamList()

void AProjectXGameModeVIP::UpdateVIPTeamList ( uint8  Team,
uint8  VIPID 
)
protected

Member Data Documentation

◆ MaximumSpawnRange

int32 AProjectXGameModeVIP::MaximumSpawnRange = 30000.0
protected

◆ MinimumSpawnRange

int32 AProjectXGameModeVIP::MinimumSpawnRange = 60000.0
protected

◆ NewVIPDelay

float AProjectXGameModeVIP::NewVIPDelay = 4.0f
protected

◆ NewVIPSpawnRadius

float AProjectXGameModeVIP::NewVIPSpawnRadius = 30000.0
protected

◆ NumberOfVIPs

int32 AProjectXGameModeVIP::NumberOfVIPs = 3
protected

◆ UpdateVIPHandle

FTimerHandle AProjectXGameModeVIP::UpdateVIPHandle
protected

◆ VIPAffliction

TSubclassOf<UAfflictionInstance> AProjectXGameModeVIP::VIPAffliction
protected

◆ VIPBroadcastMessage

TSubclassOf<class ULocalMessage> AProjectXGameModeVIP::VIPBroadcastMessage
protected

◆ VIPCheckTimer

float AProjectXGameModeVIP::VIPCheckTimer = 2.0f
protected

The documentation for this class was generated from the following files: