This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to replays and tweaked audio volume
- Loading branch information
1 parent
89a22cc
commit c6556b5
Showing
10 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
4 changes: 2 additions & 2 deletions
4
ParkourGame/Content/ThirdPersonCPP/Blueprints/ThirdPersonCharacter.uasset
Git LFS file not shown
10 changes: 10 additions & 0 deletions
10
ParkourGame/Source/ParkourGame/Private/Core/ParkourGameState.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
#include "ParkourGameState.h" | ||
#include "../Spectator/ReplayManager.h" | ||
#include "../Utils/SingletonHelper.h" | ||
|
||
void AParkourGameState::Net_PlayAnnouncerSound_Implementation(EAnnouncerSound Sound) | ||
{ | ||
if(!HasAuthority()) | ||
PlayAnnouncerSound(Sound); | ||
} | ||
|
||
void AParkourGameState::Net_RegisterForReplay_Implementation(AActor* Actor) | ||
{ | ||
AReplayManager* Replay = FSingletonHelper::Static_GetSingletonObject<AReplayManager>(GetWorld()); | ||
|
||
if (Replay) | ||
Replay->RegisterActorForReplay(Actor); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters