VehicleHandlingScripts: Difference between revisions
Jump to navigation
Jump to search
(→axle) |
|||
Line 9: | Line 9: | ||
===body=== | ===body=== | ||
[[VehicleScript.massCenterOverride | massCenterOverride]] | *[[VehicleScript.massCenterOverride | massCenterOverride]] | ||
[[VehicleScript.massoverride | massOverride]] | *[[VehicleScript.massoverride | massOverride]] | ||
[[VehicleScript.addgravity | addGravity]] | *[[VehicleScript.addgravity | addGravity]] | ||
[[VehicleScript.tiltForce | tiltForce]] | *[[VehicleScript.tiltForce | tiltForce]] | ||
[[VehicleScript.tiltForceHeight | tiltForceHeight]] | *[[VehicleScript.tiltForceHeight | tiltForceHeight]] | ||
[[VehicleScript.counterTorqueFactor | counterTorqueFactor]] | *[[VehicleScript.counterTorqueFactor | counterTorqueFactor]] | ||
[[VehicleScript.keepUprightTorque | keepUprightTorque]] | *[[VehicleScript.keepUprightTorque | keepUprightTorque]] | ||
[[VehicleScript.maxangularvelocity | maxAngularVelocity]] | *[[VehicleScript.maxangularvelocity | maxAngularVelocity]] | ||
===engine=== | ===engine=== | ||
[[VehicleScript.horsepower | horsepower]] | *[[VehicleScript.horsepower | horsepower]] | ||
[[VehicleScript.maxrpm | maxRpm]] | *[[VehicleScript.maxrpm | maxRpm]] | ||
[[VehicleScript.maxspeed | maxSpeed]] | *[[VehicleScript.maxspeed | maxSpeed]] | ||
[[VehicleScript.maxRevSpeed | maxRevSpeed]] | *[[VehicleScript.maxRevSpeed | maxRevSpeed]] | ||
[[VehicleScript.axleRatio | axleRatio]] | *[[VehicleScript.axleRatio | axleRatio]] | ||
[[VehicleScript.throttleTime | throttleTime]] | *[[VehicleScript.throttleTime | throttleTime]] | ||
[[VehicleScript.gearCount | gearCount]] | *[[VehicleScript.gearCount | gearCount]] | ||
[[VehicleScript.gearRatio | gearRatio]] | *[[VehicleScript.gearRatio | gearRatio]] | ||
[[VehicleScript.shiftUpRPM | shiftUpRPM]] | *[[VehicleScript.shiftUpRPM | shiftUpRPM]] | ||
[[VehicleScript.shiftDownRPM | shiftDownRPM]] | *[[VehicleScript.shiftDownRPM | shiftDownRPM]] | ||
[[VehicleScript.boostForce | boostForce]] | *[[VehicleScript.boostForce | boostForce]] | ||
[[VehicleScript.boostDuration | boostDuration]] | *[[VehicleScript.boostDuration | boostDuration]] | ||
[[VehicleScript.boostDelay | boostDelay]] | *[[VehicleScript.boostDelay | boostDelay]] | ||
[[VehicleScript.boostMaxSpeed | boostMaxSpeed]] | *[[VehicleScript.boostMaxSpeed | boostMaxSpeed]] | ||
[[VehicleScript.autobrakeSpeedGain | autobrakeSpeedGain]] | *[[VehicleScript.autobrakeSpeedGain | autobrakeSpeedGain]] | ||
[[VehicleScript.autobrakeSpeedFactor | autobrakeSpeedFactor]] | *[[VehicleScript.autobrakeSpeedFactor | autobrakeSpeedFactor]] | ||
[[VehicleScript.torqueBoost | torqueBoost]] | *[[VehicleScript.torqueBoost | torqueBoost]] | ||
[[VehicleScript.isAutoTransmission | isAutoTransmission]] | *[[VehicleScript.isAutoTransmission | isAutoTransmission]] | ||
===steering=== | ===steering=== | ||
[[VehicleScript.degreesSlow | degreesSlow]] | *[[VehicleScript.degreesSlow | degreesSlow]] | ||
[[VehicleScript.degreesFast | degreesFast]] | *[[VehicleScript.degreesFast | degreesFast]] | ||
[[VehicleScript.degreesBoost | degreesBoost]] | *[[VehicleScript.degreesBoost | degreesBoost]] | ||
[[VehicleScript.steeringRateSlow | steeringRateSlow]] | *[[VehicleScript.steeringRateSlow | steeringRateSlow]] | ||
[[VehicleScript.steeringRateFast | steeringRateFast]] | *[[VehicleScript.steeringRateFast | steeringRateFast]] | ||
[[VehicleScript.steeringRestRateSlow | steeringRestRateSlow]] | *[[VehicleScript.steeringRestRateSlow | steeringRestRateSlow]] | ||
[[VehicleScript.steeringRestRateFast | steeringRestRateFast]] | *[[VehicleScript.steeringRestRateFast | steeringRestRateFast]] | ||
[[VehicleScript.speedSlow | speedSlow]] | *[[VehicleScript.speedSlow | speedSlow]] | ||
[[VehicleScript.speedFast | speedFast]] | *[[VehicleScript.speedFast | speedFast]] | ||
[[VehicleScript.turnThrottleReduceSlow | turnThrottleReduceSlow]] | *[[VehicleScript.turnThrottleReduceSlow | turnThrottleReduceSlow]] | ||
[[VehicleScript.turnThrottleReduceFast | turnThrottleReduceFast]] | *[[VehicleScript.turnThrottleReduceFast | turnThrottleReduceFast]] | ||
[[VehicleScript.brakeSteeringRateFactor | brakeSteeringRateFactor]] | *[[VehicleScript.brakeSteeringRateFactor | brakeSteeringRateFactor]] | ||
[[VehicleScript.throttleSteeringRestRateFactor | throttleSteeringRestRateFactor]] | *[[VehicleScript.throttleSteeringRestRateFactor | throttleSteeringRestRateFactor]] | ||
[[VehicleScript.powerSlideAccel | powerSlideAccel]] | *[[VehicleScript.powerSlideAccel | powerSlideAccel]] | ||
[[VehicleScript.boostSteeringRestRateFactor | boostSteeringRestRateFactor]] | *[[VehicleScript.boostSteeringRestRateFactor | boostSteeringRestRateFactor]] | ||
[[VehicleScript.boostSteeringRateFactor | boostSteeringRateFactor]] | *[[VehicleScript.boostSteeringRateFactor | boostSteeringRateFactor]] | ||
[[VehicleScript.steeringExponent | steeringExponent]] | *[[VehicleScript.steeringExponent | steeringExponent]] | ||
[[VehicleScript.isSkidAllowed | isSkidAllowed]] | *[[VehicleScript.isSkidAllowed | isSkidAllowed]] | ||
[[VehicleScript.dustCloud | dustCloud]] | *[[VehicleScript.dustCloud | dustCloud]] | ||
===axle=== | ===axle=== |
Revision as of 09:01, 10 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.
wheels
- radius
- mass
- inertia
- damping
- rotdamping
- frictionScale
- materialIndex
- brakeMaterialIndex
- skidMaterialIndex
- springAdditionalLength
suspension
vehicle_sounds Properties
A vehicle_sounds entry can have multiple of the following sections: