mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-19 10:15:27 +00:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user