Page 2 of 2

Re: SSM/CSM Soldier Sprint code

PostPosted: Wed Jan 27, 2010 12:01 am
by LightSpeed///
I would assume that the code is spelled out differently than the code from bf1942 as is the case most of the time, because there is a walk animation, you just need to find it and do these same edits

Re: SSM/CSM Soldier Sprint code

PostPosted: Sun Mar 28, 2010 3:18 pm
by william17050
LightSpeed/// wrote:There is an different way in BFV, you can do it on a per kit basis even
Code: Select all
ObjectTemplate.active (kit name here)
ObjectTemplate.setKitSpeedFactor 1 (change this number for top speed)
ObjectTemplate.setKitAccelFactor 1


Hello, Im relatively new to the modding scene.
Which file do I amend with this code exactly? I would love to have them run a little faster!
Thanks for any help,
Bill

Re: SSM/CSM Soldier Sprint code

PostPosted: Sun Mar 28, 2010 4:08 pm
by motoko
william17050 wrote:
LightSpeed/// wrote:There is an different way in BFV, you can do it on a per kit basis even
Code: Select all
ObjectTemplate.active (kit name here)
ObjectTemplate.setKitSpeedFactor 1 (change this number for top speed)
ObjectTemplate.setKitAccelFactor 1


Hello, Im relatively new to the modding scene.
Which file do I amend with this code exactly? I would love to have them run a little faster!
Thanks for any help,
Bill

Add it to the ObjectSpawns.con.

Re: SSM/CSM Soldier Sprint code

PostPosted: Wed Feb 15, 2012 9:39 am
by bfml
I was unable to find out the code:
AnimationStateMachine.SetActiveState Lb_WalkForward
AnimationStateMachine.setSpeed 10 0.5 10

AnimationStateMachine.SetActiveState Lb_WalkBackward
AnimationStateMachine.setSpeed 10 0.5 10

so can u tell me in which inc or con files exactly containing these ? thnx

Re: SSM/CSM Soldier Sprint code

PostPosted: Thu Mar 01, 2012 5:43 am
by Apache Thunder
You'll find those code lines in the AnimationStatesLower.con file in the Animations.rfa file. ;)

Re: SSM/CSM Soldier Sprint code

PostPosted: Tue Mar 25, 2014 5:15 am
by Classical Modder
Looking at the MDT's definition of the .setSpeed command, the first argument can indeed be changed to be higher than 1, however, changing the 2 next arguments to anything other than 0 or 1 will have no effect on the game. Therefore it seems only the speed at which a soldier walks forward and backwards can be modified, as opposed to the code Player posted.

Source: mdt/scripting/AnimationStateMachine/Properties/SetSpeed.html