diff --git a/Content/AbilitySystem/Abilities/GA_TargetTestingAbility.uasset b/Content/AbilitySystem/Abilities/GA_TargetTestingAbility.uasset index 4390b93..532d6b8 100644 Binary files a/Content/AbilitySystem/Abilities/GA_TargetTestingAbility.uasset and b/Content/AbilitySystem/Abilities/GA_TargetTestingAbility.uasset differ diff --git a/Content/AbilitySystem/Projectiles/BP_IceProjectile01.uasset b/Content/AbilitySystem/Projectiles/BP_IceProjectile01.uasset new file mode 100644 index 0000000..7683a30 Binary files /dev/null and b/Content/AbilitySystem/Projectiles/BP_IceProjectile01.uasset differ diff --git a/Content/BP/Game/BP_PlayerController.uasset b/Content/BP/Game/BP_PlayerController.uasset index 2e8b393..da57ef3 100644 Binary files a/Content/BP/Game/BP_PlayerController.uasset and b/Content/BP/Game/BP_PlayerController.uasset differ diff --git a/Content/BP/HUD/BP_HUD.uasset b/Content/BP/HUD/BP_HUD.uasset index 2f38984..7f19952 100644 Binary files a/Content/BP/HUD/BP_HUD.uasset and b/Content/BP/HUD/BP_HUD.uasset differ diff --git a/Content/BP/HUD/FloatingCriticalDamageSpeed.uasset b/Content/BP/HUD/FloatingCriticalDamageSpeed.uasset index f2926e4..3a1789d 100644 Binary files a/Content/BP/HUD/FloatingCriticalDamageSpeed.uasset and b/Content/BP/HUD/FloatingCriticalDamageSpeed.uasset differ diff --git a/Content/BP/HUD/FloatingDamageSpeed.uasset b/Content/BP/HUD/FloatingDamageSpeed.uasset index d2a4d1a..1846eea 100644 Binary files a/Content/BP/HUD/FloatingDamageSpeed.uasset and b/Content/BP/HUD/FloatingDamageSpeed.uasset differ diff --git a/Content/Maps/HubWorldMap.umap b/Content/Maps/HubWorldMap.umap index 9617c0a..1ffd0ee 100644 Binary files a/Content/Maps/HubWorldMap.umap and b/Content/Maps/HubWorldMap.umap differ diff --git a/Source/OWSHubWorldMMO/Private/AbilitySystem/HWFakeProjectile.cpp b/Source/OWSHubWorldMMO/Private/AbilitySystem/HWFakeProjectile.cpp new file mode 100644 index 0000000..e20888c --- /dev/null +++ b/Source/OWSHubWorldMMO/Private/AbilitySystem/HWFakeProjectile.cpp @@ -0,0 +1,41 @@ +// Copyright 2023 Sabre Dart Studios + + +#include "AbilitySystem/HWFakeProjectile.h" +#include "Engine/EngineTypes.h" +#include "../OWSHubWorldMMO.h" + + +// Sets default values +AHWFakeProjectile::AHWFakeProjectile() +{ + // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. + PrimaryActorTick.bCanEverTick = true; + bReplicates = true; + SetReplicatingMovement(false); + bNetUseOwnerRelevancy = true; + bOnlyRelevantToOwner = false; + + ProjectileMovement = CreateDefaultSubobject(TEXT("ProjectileMovement")); + + UE_LOG(OWSHubWorldMMO, VeryVerbose, TEXT("AHWFakeProjectile - Constructor")); +} + +// Called when the game starts or when spawned +void AHWFakeProjectile::BeginPlay() +{ + Super::BeginPlay(); + +} + +// Called every frame +void AHWFakeProjectile::Tick(float DeltaTime) +{ + Super::Tick(DeltaTime); + +} + +bool AHWFakeProjectile::IsNetRelevantFor(const AActor* RealViewer, const AActor* ViewTarget, const FVector& SrcLocation) const +{ + return !IsOwnedBy(ViewTarget); +} \ No newline at end of file diff --git a/Source/OWSHubWorldMMO/Public/AbilitySystem/HWFakeProjectile.h b/Source/OWSHubWorldMMO/Public/AbilitySystem/HWFakeProjectile.h new file mode 100644 index 0000000..6467ec3 --- /dev/null +++ b/Source/OWSHubWorldMMO/Public/AbilitySystem/HWFakeProjectile.h @@ -0,0 +1,31 @@ +// Copyright 2023 Sabre Dart Studios + +#pragma once + +#include "CoreMinimal.h" +#include "GameFramework/Actor.h" +#include "GameFramework/ProjectileMovementComponent.h" +#include "HWFakeProjectile.generated.h" + +UCLASS() +class OWSHUBWORLDMMO_API AHWFakeProjectile : public AActor +{ + GENERATED_BODY() + +public: + // Sets default values for this actor's properties + AHWFakeProjectile(); + + UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Projectile") + UProjectileMovementComponent* ProjectileMovement; + +protected: + // Called when the game starts or when spawned + virtual void BeginPlay() override; + +public: + // Called every frame + virtual void Tick(float DeltaTime) override; + + virtual bool IsNetRelevantFor(const AActor* RealViewer, const AActor* ViewTarget, const FVector& SrcLocation) const override; +};