Files
DedicatedServerCourse/Source/FPSTemplate/Public/Game/ShooterGameModeBase.h

32 lines
958 B
C
Raw Normal View History

2026-02-24 22:39:26 -05:00
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Game/DS_GameMode.h"
#include "GameFramework/GameMode.h"
2026-02-24 22:39:26 -05:00
#include "ShooterGameModeBase.generated.h"
/**
*
*/
UCLASS()
2026-03-26 21:07:11 -04:00
class FPSTEMPLATE_API AShooterGameModeBase : public ADS_GameMode
2026-02-24 22:39:26 -05:00
{
GENERATED_BODY()
public:
AShooterGameModeBase();
virtual void Tick(float DeltaTime) override;
virtual void StartPlayerElimination(float ElimTime, ACharacter* ElimmedCharacter, class APlayerController* VictimController, APlayerController* AttackerController);
UPROPERTY()
TMap<APlayerController*, FTimerHandle> Timers;
virtual void PlayerEliminated(ACharacter* ElimmedCharacter, class APlayerController* VictimController, APlayerController* AttackerController);
virtual void RequestRespawn(ACharacter* ElimmedCharacter, AController* ElimmedController);
UPROPERTY(EditDefaultsOnly, Category="Respawning")
float RespawnTime;
};