SSM/CSM Soldier Sprint code

Lots of cool and useful tips to mod either serverside or clientside
LightSpeed///
Posts: 44
Joined: Sun Oct 18, 2009 3:06 pm

Re: SSM/CSM Soldier Sprint code

Post 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
AKA WhatThe
william17050
Posts: 1
Joined: Sun Mar 28, 2010 3:05 pm

Re: SSM/CSM Soldier Sprint code

Post 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
motoko
Posts: 217
Joined: Sun Nov 21, 2010 8:43 pm
Location: Dante's 6th Pit of Hell

Re: SSM/CSM Soldier Sprint code

Post 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.
bfml
Posts: 1
Joined: Wed Feb 15, 2012 9:29 am

Re: SSM/CSM Soldier Sprint code

Post 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
User avatar
Apache Thunder
Posts: 1210
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: SSM/CSM Soldier Sprint code

Post by Apache Thunder »

You'll find those code lines in the AnimationStatesLower.con file in the Animations.rfa file. ;)
ImageImageImage
I have cameras in your head!
Diamondback
Posts: 589
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: SSM/CSM Soldier Sprint code

Post by Diamondback »

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: http://bfmods.com/mdt/scripting/Animati ... Speed.html
See my Strasbourg map project here.
Post Reply