View Issue Details

IDProjectCategoryView StatusLast Update
0005759Multi Theft Auto : San AndreasScriptingpublic2011-04-15 14:49
ReporterCazomino05Assigned ToCazomino05 
PrioritynormalSeveritycrashReproducibilityN/A
Status resolvedResolutionfixed 
Product Version 
Target Version1.1Fixed in Version1.1 
Summary0005759: [Handling] Limits required on handling properties
Description

Handling requires limits on properties as some will cause the client to hang/crash.

This issue will contain the proposed limits.

Additional Information

Limits proposed so far:

  • Max gears 1-5 (crash)
  • max mass 0-20000 (at 23000 ish the vehicle starts jumping)
  • percentSubmerged 0-100 (not much point having this > 100 tried 101 it worked but in the interest of bw saving 0-100 is fine)
  • Steering limit 0-100
  • Drag coeff 0-1000 (if you want no movement max velocity 0 does the trick)
  • Turn mass 1-50000?
TagsNo tags attached.

Relationships

child of 0003457 resolvedCazomino05 request: Complete handling function set 

Activities

mekorea

2011-01-07 23:59

developer   ~~0012493

Last edited: 2011-01-08 00:06

Mass() = 100,000 (65535 is fine if must)
TurnMass() = 100,000 (65535 is fine if must)
DragCoeff() = -100 - 100
CenterOfMass() = X, Y, Z
PercentSubmerged() = -100 - 100
TractionMultiplier() = 100,000 (65535 is fine if must)
CarDriveType() = F/R/4
CarEngineType() = P/D/E
NumberOfGears() = 5
EngineAccelleration() = 100,000 (65535 not enough)
EngineInertia() = -1000 - 1000
MaxVelocity() = 200,000 (65535 not enough, the bigger the better)
BrakeDecelleration() = 100,000 (65535 is fine if must)
BrakeBias() = 0.0 - 1.0
ABS() = 0/1
SteeringLock() = 0 - 360
TractionLoss() = 0 - 100
TractionBias() = 0.0 - 1.0
SuspensionForceLevel() = 0 - 100
SuspensionDamping() = 0 - 100
SuspensionHighSpeedDamping() = 0 - 500
SuspensionUpperLimit() = -50 - 50
SuspensionLowerLimit() = -50 - 50
SuspensionFrontRearBias() = 0.0 - 1.0
SuspensionAntidiveMultiplier() = 0 - 30
CollisionDamageMultiplier() = 10 (100?)
HandlingFlags() =
ModelFlags() =
SeatOffsetDistance() = -100 - 100
Monetary() = might be useful for roleplay servers, no limit perhaps?
HeadLight() = 0 - 3 (0 = long, 1 = small, 2 = big, 3 = tall)
TailLight() = 0 - 3 (0 = long, 1 = small, 2 = big, 3 = tall)
AnimGroup() =

Remi-X

2011-01-08 00:21

reporter   ~~0012496

animGroups I found:
0 - Commonly used on normal cars
1 - Used on windsor, used for normal cars?
2 - Used on trucks
4 - Used for bikes
5 - Used for scooters
6 - Used on freeway, used for bikes?
7 - Used for bikes
9 - Used for bicycles
10 - Used on MTD?
11 - Used on CHOPPERB?
12 - Used on quadbike
13 - Used on little vans?
14 - Used for planes, especially little ones, choppers
15 - Used on coach, and on at-400
16 - Used on bus
18 - Used on Kart
19 - Used for cabrio cars
20 - Used on dumper
21 - Used for trains
22 - Used on sandking
24 - Used on vortex
24 - Used on rhino
25 - Used on bfinjection
26 - Used on shamal, used for bigger planes?
27 - Used on Hydra
28 - Used on Mower
29 - Used on Nevada
Haven't found any more groups yet, according to handling.cfg.

Tested on the Infernus:
0 - Succes, normal animation.
15 - Crash
19 - Succes, entering like a cabrio car
20 - Crash
25 - Crash
Doing more tests later.

mekorea

2011-01-08 00:27

developer   ~~0012497

AnimGroup()
http://projectcerbera.com/gta/sa/tutorials/handling#animation

HandlingFlags()
http://projectcerbera.com/gta/sa/tutorials/handling#handlingflags

ModelFlags()
http://projectcerbera.com/gta/sa/tutorials/handling#modelflags

Remi-X

2011-01-28 19:01

reporter   ~~0012807

Percent submerged is incorrect. Any values lower than 1 will cause a LSOD when hitting water. And using values above 100 is possible. I've tested values above 10.000 without any problems. And my car clearly sinks faster.

mekorea

2011-01-28 19:10

developer   ~~0012808

I have used a value of -1 on my direct handling.cfg modification for years yet never faced any problems what so ever.

Remi-X

2011-01-29 08:37

reporter   ~~0012813

Last edited: 2011-01-29 08:44

Weird, so it's probably a bug in the handling-functions?
Wait, wait. I've tested:
A value of 1: Works correct, vehicle doesn't sink.
Value of 0: LSOD when hitting water.
-1: No LSOD, but this number gets converted to 4294967296, which is probably the max limit. It let's the vehicle sink instantly. A value of -10 gives exactly the same result.

Issue History

Date Modified Username Field Change