|
|
@ -48,7 +48,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiActivate activatePackage(objectID);
|
|
|
|
MWMechanics::AiActivate activatePackage(objectID);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(activatePackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(activatePackage, ptr);
|
|
|
|
std::cout << "AiActivate" << std::endl;
|
|
|
|
std::cout << "AiActivate" << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -75,7 +75,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiTravel travelPackage(x, y, z);
|
|
|
|
MWMechanics::AiTravel travelPackage(x, y, z);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(travelPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(travelPackage, ptr);
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "AiTravel: " << x << ", " << y << ", " << z << std::endl;
|
|
|
|
std::cout << "AiTravel: " << x << ", " << y << ", " << z << std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -109,7 +109,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiEscort escortPackage(actorID, duration, x, y, z);
|
|
|
|
MWMechanics::AiEscort escortPackage(actorID, duration, x, y, z);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(escortPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(escortPackage, ptr);
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "AiEscort: " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
std::cout << "AiEscort: " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
<< std::endl;
|
|
|
|
<< std::endl;
|
|
|
@ -147,7 +147,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiEscort escortPackage(actorID, cellID, duration, x, y, z);
|
|
|
|
MWMechanics::AiEscort escortPackage(actorID, cellID, duration, x, y, z);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(escortPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(escortPackage, ptr);
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "AiEscort: " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
std::cout << "AiEscort: " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
<< std::endl;
|
|
|
|
<< std::endl;
|
|
|
@ -211,7 +211,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiWander wanderPackage(range, duration, time, idleList, repeat);
|
|
|
|
MWMechanics::AiWander wanderPackage(range, duration, time, idleList, repeat);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(wanderPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(wanderPackage, ptr);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -299,7 +299,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiFollow followPackage(actorID, duration, x, y ,z);
|
|
|
|
MWMechanics::AiFollow followPackage(actorID, duration, x, y ,z);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(followPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(followPackage, ptr);
|
|
|
|
|
|
|
|
|
|
|
|
std::cout << "AiFollow: " << actorID << ", " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
std::cout << "AiFollow: " << actorID << ", " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
<< std::endl;
|
|
|
|
<< std::endl;
|
|
|
@ -337,7 +337,7 @@ namespace MWScript
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
for (unsigned int i=0; i<arg0; ++i) runtime.pop();
|
|
|
|
|
|
|
|
|
|
|
|
MWMechanics::AiFollow followPackage(actorID, cellID, duration, x, y ,z);
|
|
|
|
MWMechanics::AiFollow followPackage(actorID, cellID, duration, x, y ,z);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(followPackage);
|
|
|
|
MWWorld::Class::get (ptr).getCreatureStats (ptr).getAiSequence().stack(followPackage, ptr);
|
|
|
|
std::cout << "AiFollow: " << actorID << ", " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
std::cout << "AiFollow: " << actorID << ", " << x << ", " << y << ", " << z << ", " << duration
|
|
|
|
<< std::endl;
|
|
|
|
<< std::endl;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -440,7 +440,7 @@ namespace MWScript
|
|
|
|
|
|
|
|
|
|
|
|
creatureStats.setHostile(true);
|
|
|
|
creatureStats.setHostile(true);
|
|
|
|
creatureStats.getAiSequence().stack(
|
|
|
|
creatureStats.getAiSequence().stack(
|
|
|
|
MWMechanics::AiCombat(MWBase::Environment::get().getWorld()->getPtr(targetID, true) ));
|
|
|
|
MWMechanics::AiCombat(MWBase::Environment::get().getWorld()->getPtr(targetID, true) ), actor);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|