Strafe speed will not change

Ask questions, discuss ideas, get answers
Post Reply
Diamondback
Posts: 617
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Strafe speed will not change

Post by Diamondback »

I am trying to modify the soldiers' strafing speed (the speed at which they strafe left and right), but haven't had any luck so far. I seem to be able to change the RunForward/RunBackward speed for the soldiers flawlessly however.

This is my code, found in ''AnimationStatesLower.con'':

rem --- Strafe ---
AnimationStateMachine.createState Lb_StrafeLeft
AnimationStateMachine.setSoundTrigger c_SstRun
AnimationStateMachine.addAnimation Animations/StandWalkRun/LowerBody/3PRunLower.baf 1.6 1
AnimationStateMachine.addTransitionOne c_PIAction 0.5 1 Lb_RunJump
AnimationStateMachine.addTransitionOne c_PIYaw -1 -0.01 Lb_WalkForward
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 -1 -0.01 Lb_StrafeLeft
AnimationStateMachine.addTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.addTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.returnToState Lb_Stand
AnimationStateMachine.setSpeed 3.0 3.0 3.0
AnimationStateMachine.setMorphFactor 2.0
AnimationStateMachine.setCameraShakeYaw 0 0.15 8.0
AnimationStateMachine.setCameraShakeUpDown 0 0.08 15
AnimationStateMachine.setCameraShakeLeftRight 0 0.02 5
AnimationStateMachine.setCameraShakeFadeIn 0 0.6

AnimationStateMachine.createState Lb_StrafeRight
AnimationStateMachine.setSoundTrigger c_SstRun
AnimationStateMachine.addAnimation Animations/StandWalkRun/LowerBody/3PRunLower.baf 1.6 1
AnimationStateMachine.addTransitionOne c_PIAction 0.5 1 Lb_RunJump
AnimationStateMachine.addTransitionOne c_PIYaw 0.5 1 Lb_WalkForward
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.01 1 Lb_StrafeRight
AnimationStateMachine.addTransitionOne c_PIMouseLookX -1 -0.01 Lb_TurnLeft
AnimationStateMachine.addTransitionOne c_PIMouseLookX 0.01 1 Lb_TurnRight
AnimationStateMachine.returnToState Lb_Stand
AnimationStateMachine.setSpeed 3.0 3.0 3.0
AnimationStateMachine.setMorphFactor 2.0
AnimationStateMachine.setCameraShakeYaw 0 0.15 8.0
AnimationStateMachine.setCameraShakeUpDown 0 0.08 15
AnimationStateMachine.setCameraShakeLeftRight 0 0.02 5
AnimationStateMachine.setCameraShakeFadeIn 0 0.6

*Modified parameters are in red.

Anyone know what the problem is? I used the exact same procedure to modify the front and back running speeds and it worked perfectly, but when I use this code to modify the strafing speed nothing is changed.
See my Strasbourg map project here.
Diamondback
Posts: 617
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: Strafe speed will not change

Post by Diamondback »

Anyone?
See my Strasbourg map project here.
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Strafe speed will not change

Post by Vilespring »

Sorry, the player is not a frontier I have gotten familiar with. I'm about as useful as a brick, so you can stare at me while you come up with ideas.

Image
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
Post Reply