6#include "CoreMinimal.h"
8#include "ProjectXGameModeBaseControl.generated.h"
15 GENERATED_UCLASS_BODY()
18 virtual void InitGame(
const FString&
MapName,
const FString& Options, FString& ErrorMessage)
override;
19 virtual void InitGameState()
override;
21 UFUNCTION(BlueprintCallable)
22 int32 GetTicketsLostPerBase()
const {
return TicketsLostPerBase; }
25 virtual void OnDeath(AController* Killed, AController* Killer, TSubclassOf<class UProjectXDamageType> DamageType,
bool bWasHeadshot)
override;
29 virtual
void OnCapturePointOwnerChanged(int32 NewOwner,
ACapturePoint* Point);
31 virtual
void OnCapturePointAttacked(int32 TeamTakingPoint,
ACapturePoint* Point);
34 virtual
void CalculateControlPointWinCondition();
35 virtual
void CollectGamePlayObjects() override;
37 virtual
void TicketConsumeTimer();
41 UPROPERTY(EditDefaultsOnly, Category =
GameMode, meta = (AllowPrivateAccess = true))
42 float BaseTicketLossInterval = 5.f;
43 UPROPERTY(GlobalConfig)
44 float BaseTicketLossIntervalOverride = INDEX_NONE;
47 UPROPERTY(EditDefaultsOnly, Category =
GameMode, meta = (AllowPrivateAccess = true , ClampMin = 0))
48 uint8 NumberOfCapturePointCheckpoints;
51 UPROPERTY(EditDefaultsOnly, Category = "Capture Point", meta = (AllowPrivateAccess = true))
52 float PerPlayerCaptureRate = 0.1f;
55 UPROPERTY(EditDefaultsOnly, Category =
GameMode, meta = (AllowPrivateAccess = true))
56 int32 TicketsLostPerBase = 1;
57 UPROPERTY(GlobalConfig)
58 int32 TicketsLostPerBaseOverride = INDEX_NONE;
60 UPROPERTY(EditDefaultsOnly, Category =
GameMode, meta = (AllowPrivateAccess = true))
61 TSubclassOf<ULocalMessage> CapturePointBroadcastMessage = NULL;
67 FTimerHandle TicketConsumeTimerHandle;
Definition: CapturePoint.h:77
Definition: ProjectXGameModeBaseControl.h:14
TSubclassOf< ULocalMessage > GetCapturePointBroadcastMessage() const
Definition: ProjectXGameModeBaseControl.h:26
int32 GetNumberOfCheckPoints() const
Definition: ProjectXGameModeBaseControl.h:23
int32 GetBaseTicketLossInterval() const
Definition: ProjectXGameModeBaseControl.h:20
float GetPlayerCaptureRate() const
Definition: ProjectXGameModeBaseControl.h:24
Definition: ProjectXGameMode.h:115
Definition: ProjectXGameStateBaseControl.h:16