SSM/CSM Soldier Sprint code

Lots of cool and useful tips to mod either serverside or clientside

Re: SSM/CSM Soldier Sprint code

Postby LightSpeed/// » Wed Jan 27, 2010 12:01 am

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
LightSpeed///
 
Posts: 44
Joined: Sun Oct 18, 2009 3:06 pm

Re: SSM/CSM Soldier Sprint code

Postby william17050 » Sun Mar 28, 2010 3:18 pm

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

Re: SSM/CSM Soldier Sprint code

Postby motoko » Sun Mar 28, 2010 4:08 pm

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

Re: SSM/CSM Soldier Sprint code

Postby bfml » Wed Feb 15, 2012 9:39 am

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

Re: SSM/CSM Soldier Sprint code

Postby Apache Thunder » Thu Mar 01, 2012 5:43 am

You'll find those code lines in the AnimationStatesLower.con file in the Animations.rfa file. ;)
ImageImageImage

I have cameras in your head!
User avatar
Apache Thunder
 
Posts: 1192
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA

Re: SSM/CSM Soldier Sprint code

Postby Classical Modder » Tue Mar 25, 2014 5:15 am

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
{SoH} Clan Leader // http://sohclan.forumotion.com/
See my Strasbourg map project here.
GSC: diamondback67
Steam: diamondback67
Classical Modder
 
Posts: 417
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada

Previous

Return to General Modding Tutorials

Who is online

Users browsing this forum: No registered users and 4 guests

cron