mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-23 05:57:20 +00:00
Remove commented out logic, add ghosting exclusion
We dont create items that are in an inventory, so that path is pointless for us.
This commit is contained in:
parent
3f328a18be
commit
fee1025982
@ -310,6 +310,7 @@ void Entity::Initialize() {
|
|||||||
break;
|
break;
|
||||||
case eReplicaComponentType::MOVING_PLATFORM:
|
case eReplicaComponentType::MOVING_PLATFORM:
|
||||||
AddComponent<MovingPlatformComponent>(GetVarAsString(u"attached_path"));
|
AddComponent<MovingPlatformComponent>(GetVarAsString(u"attached_path"));
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
break;
|
break;
|
||||||
case eReplicaComponentType::PET:
|
case eReplicaComponentType::PET:
|
||||||
AddComponent<PetComponent>(componentId);
|
AddComponent<PetComponent>(componentId);
|
||||||
@ -325,6 +326,7 @@ void Entity::Initialize() {
|
|||||||
havokVehiclePhysicsComponent->SetRotation(m_DefaultRotation);
|
havokVehiclePhysicsComponent->SetRotation(m_DefaultRotation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
hasPhysicsComponent = true;
|
hasPhysicsComponent = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -333,14 +335,17 @@ void Entity::Initialize() {
|
|||||||
break;
|
break;
|
||||||
case eReplicaComponentType::PROPERTY:
|
case eReplicaComponentType::PROPERTY:
|
||||||
AddComponent<PropertyComponent>();
|
AddComponent<PropertyComponent>();
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
break;
|
break;
|
||||||
case eReplicaComponentType::SCRIPTED_ACTIVITY:
|
case eReplicaComponentType::SCRIPTED_ACTIVITY:
|
||||||
AddComponent<ScriptedActivityComponent>(componentId);
|
AddComponent<ScriptedActivityComponent>(componentId);
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
break;
|
break;
|
||||||
case eReplicaComponentType::PHANTOM_PHYSICS: {
|
case eReplicaComponentType::PHANTOM_PHYSICS: {
|
||||||
auto* phantomPhysicsComponent = AddComponent<PhantomPhysicsComponent>();
|
auto* phantomPhysicsComponent = AddComponent<PhantomPhysicsComponent>();
|
||||||
if (phantomPhysicsComponent) phantomPhysicsComponent->SetPhysicsEffectActive(false);
|
if (phantomPhysicsComponent) phantomPhysicsComponent->SetPhysicsEffectActive(false);
|
||||||
hasPhysicsComponent = true;
|
hasPhysicsComponent = true;
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case eReplicaComponentType::MODEL_BEHAVIOR: {
|
case eReplicaComponentType::MODEL_BEHAVIOR: {
|
||||||
@ -359,9 +364,6 @@ void Entity::Initialize() {
|
|||||||
hasPhysicsComponent = true;
|
hasPhysicsComponent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if has LDF of propertyObjectID || inInventory is true
|
|
||||||
// AddComponent<MutableModelBehaviorComponent>();
|
|
||||||
// else
|
|
||||||
AddComponent<ModelBehaviorComponent>();
|
AddComponent<ModelBehaviorComponent>();
|
||||||
if (!HasComponent(eReplicaComponentType::DESTROYABLE)) {
|
if (!HasComponent(eReplicaComponentType::DESTROYABLE)) {
|
||||||
auto* destroyableComponent = AddComponent<DestroyableComponent>(componentId);
|
auto* destroyableComponent = AddComponent<DestroyableComponent>(componentId);
|
||||||
@ -417,6 +419,7 @@ void Entity::Initialize() {
|
|||||||
break;
|
break;
|
||||||
case eReplicaComponentType::RACING_CONTROL:
|
case eReplicaComponentType::RACING_CONTROL:
|
||||||
AddComponent<RacingControlComponent>();
|
AddComponent<RacingControlComponent>();
|
||||||
|
m_IsGhostingCandidate = false;
|
||||||
break;
|
break;
|
||||||
case eReplicaComponentType::MISSION_OFFER:
|
case eReplicaComponentType::MISSION_OFFER:
|
||||||
AddComponent<MissionOfferComponent>(GetLOT());
|
AddComponent<MissionOfferComponent>(GetLOT());
|
||||||
|
Loading…
Reference in New Issue
Block a user