Difference between revisions of "VehicleHandlingScripts"

From Empires Wiki
Jump to: navigation, search
(axle)
(axle)
Line 66: Line 66:
 
[[VehicleScript.axel.raytraceCenterOffset | raytraceCenterOffset]]<br>
 
[[VehicleScript.axel.raytraceCenterOffset | raytraceCenterOffset]]<br>
 
[[VehicleScript.axel.raytraceOffset | raytraceOffset]]<br>
 
[[VehicleScript.axel.raytraceOffset | raytraceOffset]]<br>
[[VehicleScript.axel.torquefactor | torquefactor]]<br>
+
[[VehicleScript.axel.torqueFactor | torqueFactor]]<br>
 
'''wheels'''<br>
 
'''wheels'''<br>
 
'''suspension'''<br>
 
'''suspension'''<br>
 +
[[VehicleScript.axel.brakeFactor | brakeFactor]]<br>
  
 
==vehicle_sounds Properties==
 
==vehicle_sounds Properties==

Revision as of 16:53, 9 August 2017

Empires Scripting Documentation
Scripting Overview | Vehicle Script Overview | Vehicle Handling Script Overview | Weapon Script Overview | Armor Script Overview | Building Script Overview | Infantry Script Overview | Hint Messages | Loading Screen Script Overview | Tutorials



Overview

Vehicle handling scripts have quite a few variables. This tries to describe the parameters you can use to fine tune vehicle handling.

Also see: https://developer.valvesoftware.com/wiki/Vehicles_(Scripting_Parameters)

vehicle Properties

body

massCenterOverride
massOverride
addGravity
tiltForce
tiltForceHeight
counterTorqueFactor
keepUprightTorque
maxAngularVelocity

engine

horsepower
maxRpm
maxSpeed
maxRevSpeed
axleRatio
throttleTime
gearCount
gearRatio
shiftUpRPM
shiftDownRPM
boostForce
boostDuration
boostDelay
boostMaxSpeed
autobrakeSpeedGain
autobrakeSpeedFactor
torqueBoost
isAutoTransmission

steering

degreesSlow
degreesFast
degreesBoost
steeringRateSlow
steeringRateFast
steeringRestRateSlow
steeringRestRateFast
speedSlow
speedFast
turnThrottleReduceSlow
turnThrottleReduceFast
brakeSteeringRateFactor
throttleSteeringRestRateFactor
powerSlideAccel
boostSteeringRestRateFactor
boostSteeringRateFactor
steeringExponent
isSkidAllowed
dustCloud

axle

A vehicle can have multiple axle definitions.

offset
wheelOffset
raytraceCenterOffset
raytraceOffset
torqueFactor
wheels
suspension
brakeFactor

vehicle_sounds Properties

A vehicle_sounds entry can have multiple of the following sections:

state

Name