FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Release 0.10.0 by gdk-for-unreal-bot · Pull Request #178 · spatialos/UnrealGDKExampleProject · GitHub

Release 0.10.0 by gdk-for-unreal-bot · Pull Request #178 · spatialos/UnrealGDKExampleProject · GitHub
Skip to content

Navigation Menu

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
032b35a
Added BP_GDKShooterGameInstance to show delegate usage (#140)
improbable-andreaskrugersen Apr 20, 2020
1b5ece9
updating spatialos.json (#141)
jessicafalk Apr 23, 2020
d05e06b
updating matchfile & fastlane plugin (#143)
jessicafalk May 1, 2020
ad33f6b
Create UnrealGDKVersion.txt (#148)
oblm May 6, 2020
8f37f96
Remove DeploymentManager from one_worker_test.json (#151)
improbable-valy May 7, 2020
757e665
Merge branch '0.9.0' into master
May 7, 2020
cb3ce95
Merge 0.9.0 into master
joshuahuburn May 7, 2020
0827423
[UNR-3396] Team Deathmatch (#146)
mattyoung-improbable May 12, 2020
ccab6a0
[UNR-2908] Update CI command for Schema generation (#154)
ImprobableNic May 13, 2020
8861fea
[UNR-3397] Control game mode (#155)
mattyoung-improbable May 15, 2020
d9d3871
[UNR-3400] Add map for Control game mode. (#156)
mattyoung-improbable May 20, 2020
59e7a4a
Remove Deployments map (#157)
improbable-valy May 20, 2020
fbc8d04
make sure all maps get cooked (#160)
jessicafalk Jun 2, 2020
cdf53c3
[UNR-3398] Control mode NPC Guards (#164)
mattyoung-improbable Jun 9, 2020
b4e23a3
UNR-3549: Do not tick timer on client (#173)
FiretruckYellowMouse Jun 12, 2020
9737a4c
[UNR-3655] Remove verbose debugger by default (#174)
mironec Jun 15, 2020
d718c4e
Update pinned runtime and templates (#172)
joshuahuburn Jun 15, 2020
cc26382
Release candidate for version 0.10.0.
gdk-for-unreal-bot Jun 15, 2020
43a60b6
Bugs/UNR 3649 failed load fps tiny build data (#179)
FiretruckYellowMouse Jun 17, 2020
8d3560b
UNR-3402: Fix code indentation (#182)
FiretruckYellowMouse Jun 19, 2020
7601e5d
Set Controls maps as default (#180)
mattyoung-improbable Jun 19, 2020
236123f
UNR-3402: Remove floating dmg text, remove non control maps, removed …
FiretruckYellowMouse Jun 22, 2020
2f76056
Fix simplayers spawning logic (#183)
improbable-valy Jun 23, 2020
fc8ae43
[UNR-3719] Fix runtime version in batch scripts (#184)
mironec Jun 24, 2020
96780bc
[UNR-3733] Update scripts to runtime 0.4.3 (#187)
mironec Jun 26, 2020
c3d1142
[UNR-3731][MS] Fix SimPlayer error spam "ServerMove: TimeStamp expire…
ImprobableMatthew Jun 26, 2020
add67d2
Better branch detection for CI in the example project (#185)
mironec Jul 6, 2020
d0c86fa
0.10.0.
gdk-for-unreal-bot Jul 8, 2020
File filter

Filter by extension

Filter by extension .bat  (2) .cpp  (10) .h  (37) .ini  (3) .json  (4) .ps1  (2) .sh  (1) .txt  (1) .uasset  (95) .umap  (12) .yaml  (1) No extension  (1) dotfile  (1) All 13 file types selected
Deleted files Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 3 additions & 0 deletions .gitignore
This file contains hidden or 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
Expand Up @@ -15,6 +15,9 @@
**/Intermediate/
**/Saved/

# Built data for maps
*_BuiltData.uasset

# SpatialOS files
logs
build/
Expand Down
2 changes: 1 addition & 1 deletion DeployGame.bat
This file contains hidden or 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
Expand Up @@ -14,7 +14,7 @@ set deploymentname=%gamename%%formatdate%
cd spatial/
spatial build build-config || goto :error
spatial cloud upload %deploymentname% --force || goto :error
spatial cloud launch %deploymentname% one_worker_test.json %deploymentname% --snapshot=snapshots/default.snapshot --cluster_region=eu || goto :error
spatial cloud launch %deploymentname% one_worker_test.json %deploymentname% --snapshot=snapshots/default.snapshot --cluster_region=eu --runtime_version=0.4.3 || goto :error
spatial project deployment tags add %deploymentname% dev_login || goto :error
spatial project deployment tags add %deploymentname% status_lobby || goto :error

Expand Down
10 changes: 5 additions & 5 deletions Game/Config/DefaultEngine.ini
This file contains hidden or 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,10 +1,10 @@
[/Script/EngineSettings.GameMapsSettings]
GameDefaultMap=/Game/Maps/Deployments.Deployments
EditorStartupMap=/Game/Maps/FPS-Start_Tiny.FPS-Start_Tiny
GlobalDefaultGameMode=/Game/GameMode/BP_DeathmatchGameMode.BP_DeathmatchGameMode_C
GameInstanceClass=/Script/SpatialGDK.SpatialGameInstance
GameDefaultMap=/Engine/Maps/Entry.Entry
EditorStartupMap=/Game/Maps/Control_Small.Control_Small
GlobalDefaultGameMode=/Game/GameMode/BP_ControlGameMode.BP_ControlGameMode_C
GameInstanceClass=/Game/GameMode/BP_GDKShooterGameInstance.BP_GDKShooterGameInstance_C
GlobalDefaultServerGameMode=None
ServerDefaultMap=/Game/Maps/FPS-Start_Medium.FPS-Start_Medium
ServerDefaultMap=/Game/Maps/Control_Small.Control_Small

[/Script/IOSRuntimeSettings.IOSRuntimeSettings]
MinimumiOSVersion=IOS_11
Expand Down
8 changes: 5 additions & 3 deletions Game/Config/DefaultGame.ini
This file contains hidden or 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
Expand Up @@ -4,12 +4,14 @@ ProjectName=SpatialOS Unreal GDK Shooter
CopyrightNotice=Copyright (c) Improbable Worlds Ltd, All Rights Reserved
bSpatialNetworking=True

[/Script/UnrealEd.ProjectPackagingSettings]
+DirectoriesToAlwaysCook=(Path="Spatial")

[/Script/Engine.RendererSettings]
r.LightPropagationVolume = 1

[/Script/Engine.GameSession]
MaxPlayers=100
MaxSpectators=100

[/Script/UnrealEd.ProjectPackagingSettings]
+MapsToCook=(FilePath="/Game/Maps/Control_Medium")
+MapsToCook=(FilePath="/Game/Maps/Control_Small")
+DirectoriesToAlwaysCook=(Path="/Game/Spatial")
2 changes: 1 addition & 1 deletion Game/Config/DefaultSpatialGDKSettings.ini
This file contains hidden or 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
Expand Up @@ -43,5 +43,5 @@ UdpServerUpstreamUpdateIntervalMS=1
UdpServerDownstreamUpdateIntervalMS=1
UdpClientUpstreamUpdateIntervalMS=1
UdpClientDownstreamUpdateIntervalMS=1
SpatialDebugger=BlueprintGeneratedClass'/Game/Blueprints/LoadBalancing/BP_VerboseSpatialDebugger.BP_VerboseSpatialDebugger_C'
SpatialDebugger=None

Binary file removed Game/Content/AI/BB_NPC.uasset
Binary file not shown.
Binary file added Game/Content/AI/BB_Wander.uasset
Binary file not shown.
Binary file modified Game/Content/AI/BT_Wander.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/Characters/BP_Base_Character.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/Characters/BP_FPS_Character.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/GameMode/BP_DeathmatchGameState.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/GameMode/BP_PlayerState.uasset
Binary file not shown.
Binary file not shown.
Binary file added Game/Content/Maps/Control_Medium.umap
Binary file not shown.
Binary file added Game/Content/Maps/Control_Small.umap
Binary file not shown.
Binary file removed Game/Content/Maps/Corridor_Gym.umap
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/CrashBot_Gym.umap
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/Deployments.umap
Binary file not shown.
Binary file removed Game/Content/Maps/FPS-Start_Large.umap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/FPS-Start_Medium.umap
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/FPS-Start_Small.umap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/FPS-Start_Tiny.umap
Binary file not shown.
Binary file not shown.
Binary file removed Game/Content/Maps/FPS_Test_Gym_01.umap
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/UI/Blueprints/BP_GDK_HUD.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Game/Content/UI/Blueprints/BP_RespawnMenu.uasset
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains hidden or 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
Expand Up @@ -80,6 +80,10 @@ void UHealthComponent::TakeDamage(float Damage, const FDamageEvent& DamageEvent,
if (InstigatorPlayerState != nullptr)
{
InstigatorPlayerId = InstigatorPlayerState->PlayerId;
if (const UTeamComponent* TeamComponent = InstigatorPlayerState->FindComponentByClass<UTeamComponent>())
{
InstigatorTeamId = TeamComponent->GetTeam();
}
}
}
if (IGenericTeamAgentInterface* InstgatorTeam = Cast<IGenericTeamAgentInterface>(EventInstigator))
Expand Down Expand Up @@ -157,6 +161,8 @@ void UHealthComponent::TakeDamage(float Damage, const FDamageEvent& DamageEvent,
{
GetOwner()->GetWorldTimerManager().SetTimer(ArmourRegenerationHandle, this, &UHealthComponent::RegenerateArmour, ArmourRegenInterval, true, ArmourRegenCooldown);
}

AuthoritativeDamage.Broadcast(EventInstigator);
}
}

Expand Down Expand Up @@ -214,7 +220,7 @@ void UHealthComponent::OnRep_CurrentHealth()
}
}

void UHealthComponent::MulticastDamageTaken_Implementation(float Value, FVector Source, FVector Impact, int32 PlayerId, FGenericTeamId TeamId)
void UHealthComponent::MulticastDamageTaken_Implementation(float Value, FVector Source, FVector Impact, int32 InstigatorPlayerId, FGenericTeamId InstigatorTeamId)
{
DamageTaken.Broadcast(Value, Source, Impact, PlayerId, TeamId);
DamageTaken.Broadcast(Value, Source, Impact, InstigatorPlayerId, InstigatorTeamId);
}
This file contains hidden or 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
Expand Up @@ -21,6 +21,11 @@ void UTeamComponent::GetLifetimeReplicatedProps(TArray<FLifetimeProperty>& OutLi

bool UTeamComponent::CanDamageActor(AActor* OtherActor)
{
if (!IsValid(OtherActor))
{
return false;
}

if (bAllowFriendlyFire)
{
return true;
Expand Down
This file contains hidden or 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
Expand Up @@ -21,6 +21,10 @@ void UControllerEventsComponent::Death_Implementation(const AController* Killer)
{
ClientInformOfDeath(KillerPlayerState->GetPlayerName(), KillerPlayerState->PlayerId);
}
else
{
ClientInformOfDeath(TEXT("") /*PlayerName*/, -1 /*PlayerID*/);
}
}
}

Expand Down
This file contains hidden or 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
Expand Up @@ -9,16 +9,22 @@ UTeamSettingComponent::UTeamSettingComponent()
PrimaryComponentTick.bCanEverTick = false;
}

void UTeamSettingComponent::BeginPlay()
void UTeamSettingComponent::UpdateTeam(FGenericTeamId InTeamId)
{
Super::BeginPlay();
TeamId = InTeamId;
if (AAIController* OwningController = Cast<AAIController>(GetOwner()))
{
OwningController->SetGenericTeamId(TeamId);
}
else
else
{
UE_LOG(LogGDK, Error, TEXT("TeamSettingComponent is designed to work with AIControllers, will not work with %s"), *GetOwner()->GetName());
}
}

void UTeamSettingComponent::BeginPlay()
{
Super::BeginPlay();
UpdateTeam(TeamId);
}

This file was deleted.

This file contains hidden or 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
@@ -0,0 +1,52 @@
// Copyright (c) Improbable Worlds Ltd, All Rights Reserved

#include "GDKShooterFunctionLibrary.h"
#include "GameFramework/Pawn.h"
#include "Perception/AIPerceptionStimuliSourceComponent.h"


void UGDKShooterFunctionLibrary::SetGenericTeamId(AActor* Actor, FGenericTeamId NewTeamId)
{
IGenericTeamAgentInterface* TeamAgentActor = Cast<IGenericTeamAgentInterface>(Actor);
IGenericTeamAgentInterface* TeamAgentController = nullptr;
if (APawn* AsPawn = Cast<APawn>(Actor))
{
TeamAgentController = Cast<IGenericTeamAgentInterface>(AsPawn->GetController());
}

if (TeamAgentActor != nullptr)
{
TeamAgentActor->SetGenericTeamId(NewTeamId);
}

if (TeamAgentController != nullptr)
{
TeamAgentController->SetGenericTeamId(NewTeamId);
}

if (UAIPerceptionStimuliSourceComponent* PerceptionStimuli = Actor->FindComponentByClass<UAIPerceptionStimuliSourceComponent>())
{
PerceptionStimuli->UnregisterFromPerceptionSystem();
PerceptionStimuli->RegisterWithPerceptionSystem();
}
}

FGenericTeamId UGDKShooterFunctionLibrary::GetGenericTeamId(AActor* Actor)
{
IGenericTeamAgentInterface* TeamAgent = Cast<IGenericTeamAgentInterface>(Actor);

if (TeamAgent == nullptr)
{
if (APawn* AsPawn = Cast<APawn>(Actor))
{
TeamAgent = Cast<IGenericTeamAgentInterface>(AsPawn->GetController());
}
}

if (TeamAgent != nullptr)
{
return TeamAgent->GetGenericTeamId();
}

return FGenericTeamId::NoTeam;
}
Loading

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL