Speed.

Ask questions, discuss ideas, get answers
Post Reply
Blazy_Blam
Posts: 4
Joined: Sat May 28, 2011 8:40 am

Speed.

Post by Blazy_Blam »

Im trying to make a fun mod,
how do i edit Soldier Speed while Walking
Step By Step Please.
Thank you.
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Speed.

Post 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
Blazy_Blam
Posts: 4
Joined: Sat May 28, 2011 8:40 am

Re: Speed.

Post 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
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: Speed.

Post 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.
Blazy_Blam
Posts: 4
Joined: Sat May 28, 2011 8:40 am

Re: Speed.

Post 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:
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Speed.

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Speed.

Post 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.
Blazy_Blam
Posts: 4
Joined: Sat May 28, 2011 8:40 am

Re: Speed.

Post 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
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Speed.

Post by Swaffy »

*sadFace*

I lose.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Senshi
Posts: 697
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany
Contact:

Re: Speed.

Post 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.
Post Reply