Template:Handling Properties: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Changed website links)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<br> http://projectcerbera.com/gta/sa/tutorials/handling <br>
<!-- <br/> http://projectcerbera.com/gta/sa/tutorials/handling <br/>
{| border="1"
No longer available
-->
http://web.archive.org/web/20140223160252/http://projectcerbera.com/gta/sa/tutorials/handling <br/>
{| border="1" cellpadding="1" cellspacing="0" align="center"
|-
|-
! Property
! scope="col" style="background:#afafaf;"|Property
! Value
! scope="col" style="background:#afafaf;"|Value
! Minimum limit
! scope="col" style="background:#afafaf;"|Minimum value
! Maximum limit
! scope="col" style="background:#afafaf;"|Maximum value
! Notes
! scope="col" style="background:#afafaf;"|Notes
|-
|-
| mass
| scope="row" style="background:#cfcfcf;"|'''mass'''
| Float
| style="background:#efefef;"|Float
| 1.0
| style="background:#efefef;"|1.0
| 100000.0
| style="background:#efefef;"|100000.0
|  
| style="background:#efefef;"|
|-
|-
| turnMass
| scope="row" style="background:#cfcfcf;"|'''turnMass'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 1000000.0
| style="background:#efefef;"|1000000.0
|  
| style="background:#efefef;"|
|-
|-
| dragCoeff
| scope="row" style="background:#cfcfcf;"|'''dragCoeff'''
| Float
| style="background:#efefef;"|Float
| -200.0
| style="background:#efefef;"|-200.0
| 200.0
| style="background:#efefef;"|200.0
|  
| style="background:#efefef;"|
|-
|-
| centerOfMass
| scope="row" style="background:#cfcfcf;"|'''centerOfMass'''
| Table = { [1]=posX, [2]=posY, [3]=posZ } (floats)
| style="background:#efefef;"|Table = { [1]=posX, [2]=posY, [3]=posZ } (floats)
| -10.0
| style="background:#efefef;"|-10.0
| 10.0
| style="background:#efefef;"|10.0
| Get returns a table, set needs a table.
| style="background:#efefef;"|Get returns a table, set needs a table.
|-
|-
| percentSubmerged
| scope="row" style="background:#cfcfcf;"|'''percentSubmerged'''
| Integer
| style="background:#efefef;"|Integer
| 1
| style="background:#efefef;"|1
| 99999
| style="background:#efefef;"|99999
|  
| style="background:#efefef;"|
|-
|-
| tractionMultiplier
| scope="row" style="background:#cfcfcf;"|'''tractionMultiplier'''
| Float
| style="background:#efefef;"|Float
| -100000.0
| style="background:#efefef;"|-100000.0
| 100000.0
| style="background:#efefef;"|100000.0
|  
| style="background:#efefef;"|
|-
|-
| tractionLoss
| scope="row" style="background:#cfcfcf;"|'''tractionLoss'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 100.0
| style="background:#efefef;"|100.0
|  
| style="background:#efefef;"|
|-
|-
| tractionBias
| scope="row" style="background:#cfcfcf;"|'''tractionBias'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 1.0
| style="background:#efefef;"|1.0
|  
| style="background:#efefef;"|
|-
|-
| numberOfGears
| scope="row" style="background:#cfcfcf;"|'''numberOfGears'''
| Integer
| style="background:#efefef;"|Integer
| 1
| style="background:#efefef;"|1
| 5
| style="background:#efefef;"|5
|  
| style="background:#efefef;"|
|-
|-
| maxVelocity
| scope="row" style="background:#cfcfcf;"|'''maxVelocity'''
| Float
| style="background:#efefef;"|Float
| 0.1
| style="background:#efefef;"|0.1
| 200000.0
| style="background:#efefef;"|200000.0
|  
| style="background:#efefef;"|
|-
|-
| engineAcceleration
| scope="row" style="background:#cfcfcf;"|'''engineAcceleration'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 100000.0
| style="background:#efefef;"|100000.0
|  
| style="background:#efefef;"|
|-
|-
| engineInertia
| scope="row" style="background:#cfcfcf;"|'''engineInertia'''
| Float
| style="background:#efefef;"|Float
| -1000.0
| style="background:#efefef;"|-1000.0
| 1000.0
| style="background:#efefef;"|1000.0
| Inertia of 0 can cause a LSOD. (Unable to devide by zero)
| style="background:#efefef;"|Inertia of 0 can cause a LSOD. (Unable to divide by zero)
|-
|-
| driveType
| scope="row" style="background:#cfcfcf;"|'''driveType'''
| String
| style="background:#efefef;"|String
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| Use 'rwd', 'fwd' or 'awd'.
| style="background:#efefef;"|Use 'rwd', 'fwd' or 'awd'.
|-
|-
| engineType
| scope="row" style="background:#cfcfcf;"|'''engineType'''
| String
| style="background:#efefef;"|String
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| Use 'petrol', 'diesel' or 'electric'.
| style="background:#efefef;"|Use 'petrol', 'diesel' or 'electric'.
|-
|-
| brakeDeceleration
| scope="row" style="background:#cfcfcf;"|'''brakeDeceleration'''
| Float
| style="background:#efefef;"|Float
| 0.1
| style="background:#efefef;"|0.1
| 100000.0
| style="background:#efefef;"|100000.0
|  
| style="background:#efefef;"|
|-
|-
| brakeBias
| scope="row" style="background:#cfcfcf;"|'''brakeBias'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 1.0
| style="background:#efefef;"|1.0
|  
| style="background:#efefef;"|
|-
|-
| ABS
| scope="row" style="background:#cfcfcf;"|'''ABS'''
| Boolean
| style="background:#efefef;"|Boolean
| true
| style="background:#efefef;"|true
| false
| style="background:#efefef;"|false
| Has no effect.
| style="background:#efefef;"|Has no effect.
|-
|-
| steeringLock
| scope="row" style="background:#cfcfcf;"|'''steeringLock'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 360.0
| style="background:#efefef;"|360.0
|  
| style="background:#efefef;"|
|-
|-
| suspensionForceLevel
| scope="row" style="background:#cfcfcf;"|'''suspensionForceLevel'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 100.0
| style="background:#efefef;"|100.0
|  
| style="background:#efefef;"|
|-
|-
| suspensionDamping
| scope="row" style="background:#cfcfcf;"|'''suspensionDamping'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 100.0
| style="background:#efefef;"|100.0
|  
| style="background:#efefef;"|
|-
|-
| suspensionHighSpeedDamping
| scope="row" style="background:#cfcfcf;"|'''suspensionHighSpeedDamping'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 600.0
| style="background:#efefef;"|600.0
|  
| style="background:#efefef;"|
|-
|-
| suspensionUpperLimit
| scope="row" style="background:#cfcfcf;"|'''suspensionUpperLimit'''
| Float
| style="background:#efefef;"|Float
| -50.0
| style="background:#efefef;"|-50.0
| 50.0
| style="background:#efefef;"|50.0
| Can't be equal to suspensionLowerLimit.
| style="background:#efefef;"|Can't be equal to suspensionLowerLimit.
|-
|-
| suspensionLowerLimit
| scope="row" style="background:#cfcfcf;"|'''suspensionLowerLimit'''
| Float
| style="background:#efefef;"|Float
| -50.0
| style="background:#efefef;"|-50.0
| 50.0
| style="background:#efefef;"|50.0
| Can't be equal to suspensionUpperLimit.
| style="background:#efefef;"|Can't be equal to suspensionUpperLimit.
|-
|-
| suspensionFrontReatBias
| scope="row" style="background:#cfcfcf;"|'''suspensionFrontRearBias'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 1.0
| style="background:#efefef;"|1.0
| Hardcoded maximum is 3.0, but values above 1.0 have no effect.
| style="background:#efefef;"|Hardcoded maximum is 3.0, but values above 1.0 have no effect.
|-
|-
| suspensionAntiDiveMultiplier
| scope="row" style="background:#cfcfcf;"|'''suspensionAntiDiveMultiplier'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 30.0
| style="background:#efefef;"|30.0
|  
| style="background:#efefef;"|
|-
|-
| seatOffsetDistance
| scope="row" style="background:#cfcfcf;"|'''seatOffsetDistance'''
| Float
| style="background:#efefef;"|Float
| -20.0
| style="background:#efefef;"|-20.0
| 20.0
| style="background:#efefef;"|20.0
|  
| style="background:#efefef;"|
|-
|-
| collisionDamageMultiplier
| scope="row" style="background:#cfcfcf;"|'''collisionDamageMultiplier'''
| Float
| style="background:#efefef;"|Float
| 0.0
| style="background:#efefef;"|0.0
| 10.0
| style="background:#efefef;"|10.0
|  
| style="background:#efefef;"|
|-
|-
| monetary
| scope="row" style="background:#cfcfcf;"|'''monetary'''
| Integer
| style="background:#efefef;"|Integer
| 0
| style="background:#efefef;"|0
| 230195200
| style="background:#efefef;"|230195200
| Get works, set does not.
| style="background:#efefef;"|Get works, set is disabled.
|-
|-
| modelFlags
| scope="row" style="background:#cfcfcf;"|'''modelFlags'''
| Hexadecimal
| style="background:#efefef;"|Hexadecimal/Decimal
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| See projectcerbara for info.
| style="background:#efefef;"|Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See [http://web.archive.org/web/20140223160252/http://projectcerbera.com/gta/sa/tutorials/handling projectcerbera] for possible values.
|-
|-
| handlingFlags
| scope="row" style="background:#cfcfcf;"|'''handlingFlags'''
| Hexadecimal
| style="background:#efefef;"|Hexadecimal/Decimal
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| See projectcerbera for info.
| style="background:#efefef;"|Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See [http://web.archive.org/web/20140223160252/http://projectcerbera.com/gta/sa/tutorials/handling projectcerbera] for possible values.
|-
|-
| headLight
| scope="row" style="background:#cfcfcf;"|'''headLight'''
| Integer
| style="background:#efefef;"|String
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| Get works, set does not.
| style="background:#efefef;"|Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.
|-
|-
| tailLight
| scope="row" style="background:#cfcfcf;"|'''tailLight'''
| Integer
| style="background:#efefef;"|String
| N/A
| style="background:#efefef;"|N/A
| N/A
| style="background:#efefef;"|N/A
| Get works, set does not.
| style="background:#efefef;"|Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.
|-
|-
| animGroup
| scope="row" style="background:#cfcfcf;"|'''animGroup'''
| Integer
| style="background:#efefef;"|Integer
| ??
| style="background:#efefef;"|??
| ??
| style="background:#efefef;"|??
| Vehicle based.
| style="background:#efefef;"|Get works, set is disabled due to people not knowing this property was vehicle-based and caused crashes.
|}
|}

Latest revision as of 12:07, 6 July 2022

http://web.archive.org/web/20140223160252/http://projectcerbera.com/gta/sa/tutorials/handling

Property Value Minimum value Maximum value 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 divide 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.
suspensionFrontRearBias 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 is disabled.
modelFlags Hexadecimal/Decimal N/A N/A Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See projectcerbera for possible values.
handlingFlags Hexadecimal/Decimal N/A N/A Property uses a decimal value, generated by a hexadecimal value. Either use 0x12345678 or tonumber ( "0x12345678" ). See projectcerbera for possible values.
headLight String N/A N/A Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.
tailLight String N/A N/A Get works, set is disabled. Available values: 'long', 'small', 'big', 'tall'.
animGroup Integer ?? ?? Get works, set is disabled due to people not knowing this property was vehicle-based and caused crashes.