Add MVP network relevancy rules
This commit is contained in:
@@ -16,6 +16,7 @@ AAgrarianCampfire::AAgrarianCampfire()
|
||||
{
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(6000.0f);
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
AAgrarianItemPickup::AAgrarianItemPickup()
|
||||
{
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(3000.0f);
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
AAgrarianResourceNode::AAgrarianResourceNode()
|
||||
{
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(4500.0f);
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
AAgrarianShelterActor::AAgrarianShelterActor()
|
||||
{
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(6000.0f);
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
AAgrarianWaterSource::AAgrarianWaterSource()
|
||||
{
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(6500.0f);
|
||||
|
||||
Mesh = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("Mesh"));
|
||||
RootComponent = Mesh;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
AAgrarianWeatherExposureZone::AAgrarianWeatherExposureZone()
|
||||
{
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(6500.0f);
|
||||
|
||||
ExposureVolume = CreateDefaultSubobject<UBoxComponent>(TEXT("ExposureVolume"));
|
||||
RootComponent = ExposureVolume;
|
||||
|
||||
@@ -14,6 +14,7 @@ AAgrarianWildlifeBase::AAgrarianWildlifeBase()
|
||||
{
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(6000.0f);
|
||||
AutoPossessAI = EAutoPossessAI::PlacedInWorldOrSpawned;
|
||||
AIControllerClass = AAIController::StaticClass();
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ AAgrarianWildlifeSpawnManager::AAgrarianWildlifeSpawnManager()
|
||||
{
|
||||
PrimaryActorTick.bCanEverTick = true;
|
||||
bReplicates = true;
|
||||
NetCullDistanceSquared = FMath::Square(8000.0f);
|
||||
SetReplicatingMovement(false);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user