Page 1 of 1

Change running/walking speed, energy, and energy consumption

Posted: Wed Nov 11, 2009 8:37 pm
by biohazard
What do I need to put in the odf to modify these?

Re: Change running/walking speed, energy, and energy consumption

Posted: Wed Nov 11, 2009 8:45 pm
by Fiodis
Several of your questions about odfs so far could be easily answered by looking in the odf instead of posting for answers.
Hidden/Spoiler:
[code]// Movement defaults
// These are values for an average class - some soldiers will override these
MaxSpeed = 7.0 // base forward speed
MaxStrafeSpeed = 5.25 // base right/left speed
MaxTurnSpeed = 5.0 // base turn speed
JumpHeight = 1.78 // base jump height in meters
// Speed multipliers for various actions
JumpForwardSpeedFactor = 1.3 // boost forward part of velocity by this factor when jumping
JumpStrafeSpeedFactor = 1.0 // boost side/backward part of velocity by this factor when jumping
RollSpeedFactor = 1.5 // in forward arc, boost speed by this factor when rolling
// Apparently contant for all or most classes:
Acceleration = 70.0 // accelerate to full run in about 7/70 = 0.1 seconds
SprintAccelerateTime = 0.35 // accelerate from run to sprint in this time

// ControlSpeed = "<stance> <thrustfactor> <strafefactor> <turnfactor>"
// For grounded states (stand, crouch, prone, sprint) and jet state,
// in which the thrust/strafe stick controls the player's velocity,
// these values are multipliers on the max speed and acceleration.
// For flying states (jump, roll, tumble), in which the thrust/strafe stick
// applies an acceleration, these values only multiply the acceleration.
ControlSpeed = "stand 1.00 1.00 1.00"
ControlSpeed = "crouch 0.70 0.60 1.00"
ControlSpeed = "prone 0.30 0.20 0.50"
ControlSpeed = "sprint 1.50 0.50 0.35"
ControlSpeed = "jet 0.30 0.30 1.00"
ControlSpeed = "jump 0.03 0.03 0.35"
ControlSpeed = "roll 0.02 0.02 0.35"
ControlSpeed = "tumble 0.00 0.00 0.10"

// Energy bar defaults
EnergyBar = 120.0 // Max energy
EnergyRestore = 10.0 // energy regained per second if moving
EnergyRestoreIdle = 15.0 // energy regained per second if not
EnergyDrainSprint = 20.0 // energy spent per second of sprinting
EnergyMinSprint = 20.0 // min energy to start sprinting
EnergyCostJump = 0.0 // energy cost to jump
EnergyCostRoll = 25.0 // energy cost to roll[/code]
Just copied a chunk out of com_inf_default in data***/Common/odfs.

Re: Change running/walking speed, energy, and energy consumption

Posted: Wed Nov 11, 2009 8:55 pm
by biohazard
sorry, I was looking for com_inf_default in Sides\Common\odfs.
My problem was mostly that I couldn't find the file. Thanks.