mirror of
https://github.com/SWG-Source/dsrc.git
synced 2026-07-31 00:15:54 -04:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user