mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 00:35:27 +00:00
refactor(component): physics components load in the client's phases
The physics row's collision group in LoadDataFromTemplate and the level's CollisionGroupID in LoadConfigData; each physics type then reads its own level keys and makes its physics after that, in the same order as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -49,6 +49,11 @@ PhantomPhysicsComponent::PhantomPhysicsComponent(Entity* parent, const int32_t c
|
||||
|
||||
m_IsDirectional = false;
|
||||
m_Direction = NiPoint3(); // * m_DirectionalMultiplier
|
||||
}
|
||||
|
||||
// After the physics config: the volume's blocker, respawn settings and its physics
|
||||
void PhantomPhysicsComponent::LoadConfigData() {
|
||||
PhysicsComponent::LoadConfigData();
|
||||
|
||||
// A phantom volume enemies can't walk into when it carves the navmesh (e.g. the Sentinel camp walls)
|
||||
RegisterMovementBlocker(ComponentType, false, m_Scale);
|
||||
|
||||
Reference in New Issue
Block a user