Page 1 of 1

Speed.

Posted: Sat May 28, 2011 8:47 am
by Blazy_Blam
Im trying to make a fun mod,
how do i edit Soldier Speed while Walking
Step By Step Please.
Thank you.

Re: Speed.

Posted: Sat May 28, 2011 1:13 pm
by fo0k
Hi Blazy, welcome to the site.

It's always worth taking a search through the serversidemodding site - linked on front page, as you can often find answers in there.

This thread should help you out: http://battlefieldmodding.com/ssm/phpBB ... f=4&t=4897

Re: Speed.

Posted: Sat May 28, 2011 4:35 pm
by Blazy_Blam
Extract Animations.rfa

Review the con and inc files.



This will change the [SHIFT] walk key to be a Run or Sprint Key

rem .. Solider Sprint .. //=== START ===\\

AnimationStateMachine.SetActiveState Lb_WalkForward
AnimationStateMachine.setSpeed 10 0.5 10

AnimationStateMachine.SetActiveState Lb_WalkBackward
AnimationStateMachine.setSpeed 10 0.5 10

rem .. Solider Sprint .. \\=== END ===//
i didnt understand well there,
OK so i Extracted Animations.rfa which file do i put em in now o.0
Step by Step please,Thanks Fo0K

Re: Speed.

Posted: Sat May 28, 2011 5:31 pm
by fo0k
Someone may be inclined to provide you with a step by step but it's beneficial if you can try to get some of the way and look for assistance rather than just be handed the solution.

I have never needed to achieve this fast speed so can only suggest that thread. Someone else will hopefully chime in with help.

Re: Speed.

Posted: Sat May 28, 2011 8:04 pm
by Blazy_Blam
if i couldnt get help Here i will never,Because i think this is the Only Site where members arnt Dead here.. :roll:

Re: Speed.

Posted: Sun May 29, 2011 6:24 am
by Swaffy
A big part of modding this game is "try, fail, edit, try again."

- - - - - - - - -

Open up:
Mod_Name/Archives/Objects.rfa

Then to:
Objects/Soldiers/Common/CommonSoldierData.inc

Find the line:
ObjectTemplate.SpeedMod 0.5

The higher the number, the faster the character. For a lower number, the character is slower.



Next time, please be a little more ... respectful, and try to be a bit more ... clear on what you are asking for.
The clearer the issue, the quicker we can help.

Re: Speed.

Posted: Sun May 29, 2011 6:27 am
by Senshi
Swaffy, that one won't work, I think. SpeedMod is not a velocity multiplicator, it is an indicator of how much velocity impacts the object. A higher speedmod makes the object more vulnerable to impacts (e.g. falling from great heights).

But Blazy_Blam, the link fook gave you provides all you need. And even in a very clean and logical tutorial.

Re: Speed.

Posted: Sun May 29, 2011 5:52 pm
by Blazy_Blam
Thanks for you hard work Swaffy,but it didnt work :roll:
what i need to know is What file do i open in animations? what inc or con file :D
i searched but didnt find

Re: Speed.

Posted: Mon May 30, 2011 12:56 am
by Swaffy
*sadFace*

I lose.

Re: Speed.

Posted: Mon May 30, 2011 6:26 pm
by Senshi
Blazy, if you are making a Client side modding, you have to edit this file:
animations\AnimationStatesLower.con

Here look for

Code: Select all

AnimationStateMachine.createState Lb_WalkForward
AnimationStateMachine.setSoundTrigger c_SstWalk
AnimationStateMachine.addAnimation Animations/StandWalkRun/LowerBody/3PWalkLower.baf 0.7 1
AnimationStateMachine.addTransitionOne c_PIAction 0.5 1 Lb_StandJump
AnimationStateMachine.addTransitionOne c_PIThrottle 0.5 1 Lb_WalkForward
AnimationStateMachine.addToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.addTransitionOne c_PIThrottle -9999 -0.5 Lb_WalkBackward
AnimationStateMachine.addToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.addTransitionOne c_PIThrottle 0.5 1  Lb_RunForward
AnimationStateMachine.addTransitionOne c_PIThrottle -1 -0.5  Lb_RunBackward
AnimationStateMachine.addTransitionOne c_PIYaw 0.5 1 Lb_WalkForward
AnimationStateMachine.addToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.addTransitionOne c_PIYaw -1 -0.5 Lb_WalkForward
AnimationStateMachine.addToLatestTransition c_PIWalk 0.5 1
AnimationStateMachine.returnToState Lb_Stand
AnimationStateMachine.setSpeed 1.0 1.0 1.0 <--------------------This is what you want to change :)
AnimationStateMachine.setMorphFactor 2.0
AnimationStateMachine.setCameraShakeYaw 0 0.10 3.0
AnimationStateMachine.setCameraShakeUpDown 0 0.06 7
AnimationStateMachine.setCameraShakeLeftRight 0 0.01 0.5
AnimationStateMachine.setCameraShakeFadeIn 0 0.6
I highlighted the important line with <------------

Then save this file alone in a new .rfa named animations_099.rfa and put it in your game folder. Voila, Using "shift"/Walk key now lets you run.

IF you want to do this SSM (serverside), you just put the two lines you already quoted in the init.con of the map you want to modify. That works CSM as well, if you only want to do that change for individual maps.