the player state

This commit is contained in:
ghostie 2025-08-31 13:50:05 -05:00
parent adfe961cef
commit 8a585c3a64
12 changed files with 44 additions and 5 deletions

View File

@ -46,6 +46,7 @@ r.DynamicGlobalIlluminationMethod=1
r.ReflectionMethod=1
r.Shadow.Virtual.Enable=1
r.DefaultFeature.AutoExposure.ExtendDefaultLuminanceRange=True
r.CustomDepth=3
[/Script/WorldPartitionEditor.WorldPartitionEditorSettings]
CommandletClass=Class'/Script/UnrealEd.WorldPartitionConvertCommandlet'

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -4,3 +4,4 @@
#include "CoreMinimal.h"
#define CUSTOM_DEPTH_RED 250

View File

@ -3,12 +3,23 @@
#include "Character/AuraEnemy.h"
#include "Aura/Aura.h"
AAuraEnemy::AAuraEnemy()
{
GetMesh()->SetCollisionResponseToChannel(ECC_Visibility, ECR_Block);
}
void AAuraEnemy::HighlightActor()
{
bHighlighted = true;
GetMesh()->SetRenderCustomDepth(true);
GetMesh()->SetCustomDepthStencilValue(CUSTOM_DEPTH_RED);
Weapon->SetRenderCustomDepth(true);
Weapon->SetCustomDepthStencilValue(CUSTOM_DEPTH_RED);
}
void AAuraEnemy::UnHighlightActor()
{
bHighlighted = false;
GetMesh()->SetRenderCustomDepth(false);
Weapon->SetRenderCustomDepth(false);
}

View File

@ -0,0 +1,9 @@
// Copyright; GhostPacket Games
#include "Player/AuraPlayerState.h"
AAuraPlayerState::AAuraPlayerState()
{
NetUpdateFrequency = 100.f;
}

View File

@ -16,9 +16,7 @@ class AURA_API AAuraEnemy : public AAuraCharacterBase, public IEnemyInterface
GENERATED_BODY()
public:
AAuraEnemy ();
virtual void HighlightActor() override;
virtual void UnHighlightActor() override;
UPROPERTY (BlueprintReadOnly)
bool bHighlighted = false;
};

View File

@ -0,0 +1,19 @@
// Copyright; GhostPacket Games
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerState.h"
#include "AuraPlayerState.generated.h"
/**
*
*/
UCLASS()
class AURA_API AAuraPlayerState : public APlayerState
{
GENERATED_BODY()
public:
AAuraPlayerState();
};