feat(entity): the client's projectile physics component (18)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 09:01:25 -05:00
parent 029e601e07
commit 589a91a1f0
2 changed files with 24 additions and 0 deletions

View File

@@ -95,6 +95,7 @@
#include "GateRushComponent.h"
#include "FactionTriggerComponent.h"
#include "RocketLandingComponent.h"
#include "ProjectilePhysicsComponent.h"
#include "GenericActivatorComponent.h"
#include "ShowcaseModelHandlerComponent.h"
#include "CustomBuildAssemblyComponent.h"
@@ -985,6 +986,12 @@ void Entity::Initialize() {
if (id > -1) AddComponent<GenericActivatorComponent>(id);
break;
}
case eReplicaComponentType::PROJECTILE_PHYSICS: {
// LWOProjectilePhysicsComponent: the client makes it from the registry
const auto id = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::PROJECTILE_PHYSICS, -1);
if (id > -1) AddComponent<ProjectilePhysicsComponent>(id);
break;
}
case eReplicaComponentType::ROCKET_LANDING: {
// LWORocketAnimationControlComponent: the client makes it from the registry
const auto id = compRegistryTable->GetByIDAndType(m_TemplateID, eReplicaComponentType::ROCKET_LANDING, -1);