CogAbility: Fix cheats not correctly saved when connected to a server

CogSample: Projectile progress
This commit is contained in:
Arnaud Jamin
2023-10-31 23:50:41 -04:00
parent f876862d12
commit 7e8ba3e092
8 changed files with 78 additions and 19 deletions
+9 -1
View File
@@ -25,7 +25,9 @@ class ACogSamplePlayerController
public:
static const ACogSamplePlayerController* GetFirstLocalPlayerController(UObject* WorldContextObject);
static const ACogSamplePlayerController* GetFirstLocalPlayerControllerConst(UObject* WorldContextObject);
static ACogSamplePlayerController* GetFirstLocalPlayerController(UObject* WorldContextObject);
ACogSamplePlayerController();
@@ -67,6 +69,12 @@ public:
UPROPERTY()
TArray<UCogSampleSpawnPredictionComponent*> SpawnPredictions;
//----------------------------------------------------------------------------------------------------------------------
// Projectile Hit
//----------------------------------------------------------------------------------------------------------------------
UFUNCTION(Reliable, Server)
void Server_ProjectileHit(UCogSampleProjectileComponent* Projectile, const FHitResult& HitResult);
private:
//----------------------------------------------------------------------------------------------------------------------