Edit ped/npc walking & running speed?
-
Where can i edit ped / npc walking & running speed? What's the name of the file? Is it peds.ymt?
-
@joshbon007 yeah, try peds.ymt, sounds right.
i do it like this
Function.Call(Hash.SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER, Game.Player, 1.49f);
-
@joshbon007
No promises it'll be as easy as editing the values (I've never edited them etc), but have a look at 'motiontasks.ymt' here:...\Grand Theft Auto V\mods\update\update.rpf\x64\data\tune\motiontasks.ymt
Specifically look at the 'CTaskHumanLocomotion' task:
<Item type="CTaskHumanLocomotion__Tunables"> <Name>CTaskHumanLocomotion</Name> <Player_MBRAcceleration value="4.00000000"/> <Player_MBRDeceleration value="4.00000000"/> <AI_MBRAcceleration value="2.00000000"/> <AI_MBRDeceleration value="2.00000000"/> <FromStrafeAccelerationMod value="0.50000000"/> <FastWalkRateMin value="1.00000000"/> <!-- & these values from here... --> <FastWalkRateMax value="1.20000000"/> <SlowRunRateMin value="0.80000000"/> <SlowRunRateMax value="1.00000000"/> <FastRunRateMin value="1.00000000"/> <FastRunRateMax value="1.10000000"/> <!-- ... to here --> <Turn180ActivationAngle value="2.74000000"/> <Turn180ConsistentAngleTolerance value="0.10000000"/> <IdleHeadingLerpRate value="7.50000000"/> <Player_IdleTurnRate value="1.00000000"/> <AI_IdleTurnRate value="1.00000000"/> <FromStrafe_WeightRate value="1.30000000"/> <FromStrafe_MovingBlendOutTime value="0.20000000"/> <IdleTransitionBlendTimeFromActionMode value="0.50000000"/> <IdleTransitionBlendTimeFromStealth value="0.50000000"/>
Maybe also look at 'motiontaskdata.meta'
...\Grand Theft Auto V\mods\common.rpf\data\motiontaskdata.meta
<Item type="CMotionTaskDataSet"> <Name>STANDARD_PED</Name> <onFoot type="sMotionTaskData"> <Type>PED_ON_FOOT</Type> <JumpClipSetHash>ANIM_GROUP_NEW_PED_JUMP</JumpClipSetHash> <JumpNetworkName>TaskJump</JumpNetworkName> <UseQuadrupedJump value="false" /> <FallClipSetHash>ANIM_GROUP_NEW_PED_FALL</FallClipSetHash> <SlopeScrambleClipSetHash>ANIM_GROUP_SLOPE_SCRAMBLE</SlopeScrambleClipSetHash> <WalkTurnRate value="3.141593" /> <RunTurnRate value="2.356194" /> <SprintTurnRate value="1.570796" /> <MotionAnimRateScale value="1.000000" /> <!-- maybe this? --> <QuadWalkRunTransitionTime value="0.250000" /> <QuadRunWalkTransitionTime value="0.250000" /> <QuadRunSprintTransitionTime value="0.250000" /> <QuadSprintRunTransitionTime value="0.250000" /> <QuadWalkTurnScaleFactor value="1.000000" /> <QuadRunTurnScaleFactor value="1.000000" /> <QuadSprintTurnScaleFactor value="1.000000" /> <HasWalkStarts value="true" /> <HasRunStarts value="true" /> <HasQuickStops value="false" /> <CanTrot value="false" /> </onFoot>