feat(entity): movement AI for scripted objects and ones with a path, as the client

ApplyMovementAiIfNeeded gives an object with a script (its registry's or a
custom script) or an attached_path a movement AI component (id 0); 1843 LOTs
gain one. It follows its attached path only when that is a movement path (a
moving platform's path stays the platform's). Not on spawner objects, which
the client never loads. Nothing sent changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-10-01 17:07:47 -05:00
parent f3ae06cee6
commit 1481bb7b32
3 changed files with 21 additions and 1 deletions

View File

@@ -406,6 +406,8 @@ private:
const std::initializer_list<eReplicaComponentType>* whitelist = nullptr;
bool hasModelBehaviors = false;
bool markedAsPhantom = false;
// ApplyMovementAiIfNeeded: movement AI for a scripted object or one with an attached path
bool addsMovementAI = false;
// A model with behaviors' physics id, which the physics cases leave to the model case
int32_t modelPhysicsComponentID = -1;