mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 08:45:27 +00:00
feat(entity): the client's pathfinding control component (86) on pets
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -95,6 +95,7 @@
|
||||
#include "GateRushComponent.h"
|
||||
#include "FactionTriggerComponent.h"
|
||||
#include "RocketLandingComponent.h"
|
||||
#include "PathfindingComponent.h"
|
||||
#include "PhysicsSystemComponent.h"
|
||||
#include "VehiclePhysicsComponent.h"
|
||||
#include "ProjectilePhysicsComponent.h"
|
||||
@@ -455,6 +456,8 @@ void Entity::Initialize() {
|
||||
}
|
||||
case eReplicaComponentType::PET: {
|
||||
if (petComponentID > 0) {
|
||||
// LWOPetComponent::Factory (0x01031240): a pet that isn't in an inventory gets pathfinding control first
|
||||
if (!GetVar<bool>(u"inInventory") && !HasComponent(eReplicaComponentType::PATHFINDING)) AddComponent<PathfindingComponent>(-1);
|
||||
AddComponent<PetComponent>(petComponentID);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user