Added temporary fix to make NPCs walk

TODO: Write a method that checks the movement_speed datatable column
under creatures.tab and applies that as the walk speed.
This commit is contained in:
PrisonCamp
2014-12-29 13:45:26 -08:00
parent 3c231804e4
commit b75009a673
@@ -867,7 +867,9 @@ void initializeCreature( obj_id creature, string creatureName, dictionary creatu
{
float runSpeed = ai_lib.AI_MAX_MOVEMENT_SPEED * aiGetMovementSpeedPercent(creature);
runSpeed *= speedMod;
float walkSpeed = 2.0f;
setBaseRunSpeed(creature, runSpeed);
setBaseWalkSpeed(creature, walkSpeed);
// Never let an ai walk at a speed faster than it can run
{