Page 1 of 1

Prevent jumping, rolling, sprinting [Solved]

Posted: Sun Jul 12, 2009 7:55 am
by teetie
hello can i do something that my unit cannot roll,jump and sprint anymore?

Re: jumping,rolling,sprinting

Posted: Sun Jul 12, 2009 7:58 am
by Par3210
have you touched the unit's req or odf files? If so, post them and I will help
Off-Topic: WOOHOOO 100 posts!

Re: jumping,rolling,sprinting

Posted: Sun Jul 12, 2009 8:09 am
by Frisbeetarian
You'll want to play around with these values from com_inf_default:
Hidden/Spoiler:
[code]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]
Remember that any unit ODF you put these commands in will override the values shown here since every unit is a child of com_in_default (except jedi, of course).

Re: jumping,rolling,sprinting

Posted: Sun Jul 12, 2009 8:11 am
by teetie
thx frisbeetarian i played with that and now it worked :-)