Template:Handling Properties: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<div style="border:3px solid red;margin-bottom:3px;padding-left:5px;"><div style="float:right;padding-right:5px;font-weight:bold;"></div>
<div style="border:3px solid red;margin-bottom:3px;padding-left:5px;"><div style="float:right;padding-right:5px;font-weight:bold;"></div>
-- Limits coming later. http://projectcerbera.com/gta/sa/tutorials/handling
 
* '''mass''': float
{| border="1"
* '''turnMass''': float
|-
* '''dragCoeff''': float
! Property
* '''centerOfMass''': table (table[1] = posX, table[2] = posY, table[3] = posZ)
! Value
* '''percentSubmerged''': integer
! Minimum limit
* '''tractionMultiplier''': float
! Maximum limit
* '''tractionLoss''': float
! Notes
* '''tractionBias''': float
|-
* '''numberOfGears''': integer
| mass
* '''engineAcceleration''': float
| Float
* '''engineInertia''': float
| 1.0
* '''driveType''': string (fwd, rwd, awd)
| 100000.0
* '''engineType''': string (petrol, diesel, electric)
|
* '''brakeDeceleration''': float
|-
* '''brakeBias''': float
| turnMass
* '''ABS''': bool (true, false) Anti-Brake System - Doesn't work (GTA bug)
| Float
* '''steeringLock''': float
| 0.0
* '''suspensionForceLevel''': float
| 1000000.0
* '''suspensionDamping''': float
|
* '''suspensionHighSpeedDamping''': float
|-
* '''suspensionUpperLimit''': float
| dragCoeff
* '''suspensionLowerLimit''': float
| Float
* '''suspensionFrontRearBias''': float
| -200.0
* '''suspensionAntiDiveMultiplier''': float
| 200.0
* '''seatOffsetDistance''': float
|
* '''collisionDamageMultiplier''': float
|-
* '''animGroup''': ???  
| centerOfMass
| Table = { [1]=posX, [2]=posY, [3]=posZ } (floats)
| -10.0
| 10.0
| Get returns a table, set needs a table.
|-
| percentSubmerged
| Integer
| 1
| 99999
|
|-
| tractionMultiplier
| Float
| -100000.0
| 100000.0
|
|-
| tractionLoss
| Float
| 0.0
| 100.0
|
|-
| tractionBias
| Float
| 0.0
| 1.0
|
|-
| numberOfGears
| Integer
| 1
| 5
|
|-
| maxVelocity
| Float
| 0.1
| 200000.0
|
|-
| engineAcceleration
| Float
| 0.0
| 100000.0
|
|-
| engineInertia
| Float
| -1000.0
| 1000.0
| Inertia of 0 can cause a LSOD. (Unable to devide by zero)
|-
| driveType
| String
| N/A
| N/A
| Use 'rwd', 'fwd' or 'awd'.
|-
| engineType
| String
| N/A
| N/A
| Use 'petrol', 'diesel' or 'electric'.
|-
| brakeDeceleration
| Float
| 0.1
| 100000.0
|
|-
| brakeBias
| Float
| 0.0
| 1.0
|
|-
| ABS
| Boolean
| true
| false
| Has no effect.
|-
| steeringLock
| Float
| 0.0
| 360.0
|
|-
| suspensionForceLevel
| Float
| 0.0
| 100.0
|
|-
| suspensionDamping
| Float
| 0.0
| 100.0
|
|-
| suspensionHighSpeedDamping
| Float
| 0.0
| 600.0
|
|-
| suspensionUpperLimit
| Float
| -50.0
| 50.0
| Can't be equal to suspensionLowerLimit.
|-
| suspensionLowerLimit
| Float
| -50.0
| 50.0
| Can't be equal to suspensionUpperLimit.
|-
| suspensionFrontReatBias
| Float
| 0.0
| 1.0
| Hardcoded maximum is 3.0, but values above 1.0 have no effect.
|-
| suspensionAntiDiveMultiplier
| Float
| 0.0
| 30.0
|
|-
| seatOffsetDistance
| Float
| -20.0
| 20.0
|
|-
| collisionDamageMultiplier
| Float
| 0.0
| 10.0
|
|-
| monetary
| Integer
| 0
| 230195200
| Get works, set does not.
|-
| modelFlags
| Hexadecimal
| N/A
| N/A
| See projectcerbara for info.
|-
| handlingFlags
| Hexadecimal
| N/A
| N/A
| See projectcerbera for info.
|-
| headLight
| Integer
| N/A
| N/A
| Get works, set does not.
|-
| tailLight
| Integer
| N/A
| N/A
| Get works, set does not.
|-
| animGroup
| Integer
| ??
| ??
| Vehicle based.
|}
</div>
</div>

Revision as of 11:24, 30 May 2011

Property Value Minimum limit Maximum limit Notes
mass Float 1.0 100000.0
turnMass Float 0.0 1000000.0
dragCoeff Float -200.0 200.0
centerOfMass Table = { [1]=posX, [2]=posY, [3]=posZ } (floats) -10.0 10.0 Get returns a table, set needs a table.
percentSubmerged Integer 1 99999
tractionMultiplier Float -100000.0 100000.0
tractionLoss Float 0.0 100.0
tractionBias Float 0.0 1.0
numberOfGears Integer 1 5
maxVelocity Float 0.1 200000.0
engineAcceleration Float 0.0 100000.0
engineInertia Float -1000.0 1000.0 Inertia of 0 can cause a LSOD. (Unable to devide by zero)
driveType String N/A N/A Use 'rwd', 'fwd' or 'awd'.
engineType String N/A N/A Use 'petrol', 'diesel' or 'electric'.
brakeDeceleration Float 0.1 100000.0
brakeBias Float 0.0 1.0
ABS Boolean true false Has no effect.
steeringLock Float 0.0 360.0
suspensionForceLevel Float 0.0 100.0
suspensionDamping Float 0.0 100.0
suspensionHighSpeedDamping Float 0.0 600.0
suspensionUpperLimit Float -50.0 50.0 Can't be equal to suspensionLowerLimit.
suspensionLowerLimit Float -50.0 50.0 Can't be equal to suspensionUpperLimit.
suspensionFrontReatBias Float 0.0 1.0 Hardcoded maximum is 3.0, but values above 1.0 have no effect.
suspensionAntiDiveMultiplier Float 0.0 30.0
seatOffsetDistance Float -20.0 20.0
collisionDamageMultiplier Float 0.0 10.0
monetary Integer 0 230195200 Get works, set does not.
modelFlags Hexadecimal N/A N/A See projectcerbara for info.
handlingFlags Hexadecimal N/A N/A See projectcerbera for info.
headLight Integer N/A N/A Get works, set does not.
tailLight Integer N/A N/A Get works, set does not.
animGroup Integer ?? ?? Vehicle based.