the player state
This commit is contained in:
parent
adfe961cef
commit
8a585c3a64
@ -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'
|
||||
|
BIN
Content/Blueprints/Character/BP_EnemyBase.uasset
Normal file
BIN
Content/Blueprints/Character/BP_EnemyBase.uasset
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
Content/Blueprints/Player/BP_AuraPlayerState.uasset
Normal file
BIN
Content/Blueprints/Player/BP_AuraPlayerState.uasset
Normal file
Binary file not shown.
Binary file not shown.
@ -4,3 +4,4 @@
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
|
||||
#define CUSTOM_DEPTH_RED 250
|
@ -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);
|
||||
}
|
||||
|
9
Source/Aura/Private/Player/AuraPlayerState.cpp
Normal file
9
Source/Aura/Private/Player/AuraPlayerState.cpp
Normal file
@ -0,0 +1,9 @@
|
||||
// Copyright; GhostPacket Games
|
||||
|
||||
|
||||
#include "Player/AuraPlayerState.h"
|
||||
|
||||
AAuraPlayerState::AAuraPlayerState()
|
||||
{
|
||||
NetUpdateFrequency = 100.f;
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
19
Source/Aura/Public/Player/AuraPlayerState.h
Normal file
19
Source/Aura/Public/Player/AuraPlayerState.h
Normal 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();
|
||||
};
|
Loading…
x
Reference in New Issue
Block a user