diff --git a/Game/Content/Controllers/BP_GDK_PlayerController.uasset b/Game/Content/Controllers/BP_GDK_PlayerController.uasset index ef3e8ea4..e03472ab 100644 Binary files a/Game/Content/Controllers/BP_GDK_PlayerController.uasset and b/Game/Content/Controllers/BP_GDK_PlayerController.uasset differ diff --git a/Game/Source/GDKShooter/Private/Controllers/GDKPlayerController.cpp b/Game/Source/GDKShooter/Private/Controllers/GDKPlayerController.cpp index b94a390c..db1f5ad7 100644 --- a/Game/Source/GDKShooter/Private/Controllers/GDKPlayerController.cpp +++ b/Game/Source/GDKShooter/Private/Controllers/GDKPlayerController.cpp @@ -58,6 +58,8 @@ void AGDKPlayerController::BeginPlay() void AGDKPlayerController::Tick(float DeltaTime) { + Super::Tick(DeltaTime); + if (GetPawn()) { LatestPawnYaw = GetPawn()->GetActorRotation().Yaw; diff --git a/Game/Source/GDKShooter/Public/Game/Components/DeathmatchSpawnerComponent.h b/Game/Source/GDKShooter/Public/Game/Components/DeathmatchSpawnerComponent.h index cf203b60..3d808a41 100644 --- a/Game/Source/GDKShooter/Public/Game/Components/DeathmatchSpawnerComponent.h +++ b/Game/Source/GDKShooter/Public/Game/Components/DeathmatchSpawnerComponent.h @@ -26,6 +26,9 @@ class GDKSHOOTER_API UDeathmatchSpawnerComponent : public UActorComponent UFUNCTION(BlueprintCallable) void DisableSpawning() { bSpawningEnabled = false; } + UFUNCTION(BlueprintCallable) + bool IsSpawningEnabled() { return bSpawningEnabled; } + protected: AActor* GetSpawnPoint(APlayerController* Controller);