VehicleHandlingScripts: Difference between revisions

From Empires Wiki
Jump to navigation Jump to search
Line 62: Line 62:
A vehicle can have multiple axle definitions.
A vehicle can have multiple axle definitions.


[[VehicleScript.axel.offset | offset]]<br>
*[[VehicleScript.axle.offset | offset]]
[[VehicleScript.axel.wheelOffset | wheelOffset]]<br>
*[[VehicleScript.axle.wheelOffset | wheelOffset]]
[[VehicleScript.axel.raytraceCenterOffset | raytraceCenterOffset]]<br>
*[[VehicleScript.axle.raytraceCenterOffset | raytraceCenterOffset]]
[[VehicleScript.axel.raytraceOffset | raytraceOffset]]<br>
*[[VehicleScript.axle.raytraceOffset | raytraceOffset]]
[[VehicleScript.axel.torqueFactor | torqueFactor]]<br>
*[[VehicleScript.axle.torqueFactor | torqueFactor]]
'''wheels'''<br>
*[[VehicleScript.axle.brakeFactor | brakeFactor]]
'''suspension'''<br>
==== wheels ====
[[VehicleScript.axel.brakeFactor | brakeFactor]]<br>
*[[VehicleScript.axle.wheels.radius | radius]]
*[[VehicleScript.axle.wheels.mass | mass]]
*[[VehicleScript.axle.wheels.inertia | inertia]]
*[[VehicleScript.axle.wheels.damping | damping]]
*[[VehicleScript.axle.wheels.rotdamping | rotdamping]]
*[[VehicleScript.axle.wheels.frictionScale | frictionScale]]
*[[VehicleScript.axle.wheels.materialIndex | materialIndex]]
*[[VehicleScript.axle.wheels.brakeMaterialIndex | brakeMaterialIndex]]
*[[VehicleScript.axle.wheels.skidMaterialIndex | skidMaterialIndex]]
*[[VehicleScript.axle.wheels.springAdditionalLength | springAdditionalLength]]
==== suspension ====
*[[VehicleScript.axle.suspension.springConstant | springConstant]]
*[[VehicleScript.axle.suspension.springDamping | springDamping]]
*[[VehicleScript.axle.suspension.stabilizerConstant | stabilizerConstant]]
*[[VehicleScript.axle.suspension.springDampingCompression | springDampingCompression]]
*[[VehicleScript.axle.suspension.maxBodyForce | maxBodyForce]]


==vehicle_sounds Properties==
==vehicle_sounds Properties==

Revision as of 08:59, 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

suspension

vehicle_sounds Properties

A vehicle_sounds entry can have multiple of the following sections:

state

Name