Update character logic

This commit is contained in:
2026-02-03 00:25:41 +03:00
parent f22a374e11
commit d2c7e92ce4
7 changed files with 9 additions and 86 deletions

View File

@@ -57,6 +57,7 @@ void createNPCActionNodes(flecs::entity town, int index)
anode.props["town"] = town.id();
anode.props["index"] = index;
anode.props["npc"] = npcprops;
anode.dynamic = true;
npc.actionNodes.push_back(anode);
}
{
@@ -78,6 +79,7 @@ void createNPCActionNodes(flecs::entity town, int index)
anode.props["town"] = town.id();
anode.props["index"] = index;
anode.props["npc"] = npcprops;
anode.dynamic = true;
npc.actionNodes.push_back(anode);
}
}

View File

@@ -16,6 +16,7 @@ struct ActionNodeList {
Ogre::Quaternion rotation;
float height;
float radius;
bool dynamic;
nlohmann::json props;
};
struct UIData {

View File

@@ -5817,6 +5817,8 @@ struct TownDecorateFurniture : TownTask {
worldSensorPosition;
anode.rotation =
worldSensorRotation;
anode.dynamic =
false;
ECS::get_mut<
ActionNodeList>()
.addNode(