mirror of
https://github.com/Ed94/Cog.git
synced 2026-06-13 08:02:23 -07:00
CogCommon: Better debug formating
CogSample: Projectile Progress CogSample: Disable Character Mesh collision on dedicated server
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "CogSampleRootMotionParams.h"
|
||||
#include "Components/CapsuleComponent.h"
|
||||
#include "Components/InputComponent.h"
|
||||
#include "Engine/CollisionProfile.h"
|
||||
#include "EnhancedInputComponent.h"
|
||||
#include "EnhancedInputSubsystems.h"
|
||||
#include "GameFramework/CharacterMovementComponent.h"
|
||||
@@ -108,6 +109,12 @@ void ACogSampleCharacter::BeginPlay()
|
||||
}
|
||||
}
|
||||
|
||||
if (GetWorld()->GetNetMode() == NM_DedicatedServer)
|
||||
{
|
||||
GetMesh()->SetCollisionProfileName(UCollisionProfile::NoCollision_ProfileName);
|
||||
}
|
||||
|
||||
|
||||
TryFinishInitialize();
|
||||
RefreshServerAnimTickOption();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user