CARS (IPL Section)

From GTAMods Wiki
Revision as of 09:50, 19 April 2009 by Aschratt (talk | contribs) (GTA San Andreas)
Jump to navigation Jump to search
descripes the usage of the CARS section inside a plain text IPL. For the definition of vehicle models see CARS (IDE Section)
CARS (IPL Section) (IPL section)
Short description:Creates a IPL parked car generator
Supported games:GTA SA, GTA IV
IPL Sections:
2DFX AUZO BLOK CARS CULL ENEX GRGE
INST JUMP LINK LODM MLO+ MULT OCCL
PATH PICK RTFX SLOW TCYC VNOD ZONE

The CARS section is a simplified method to create parked cars. Usually parked cars are created by the Script, but just as unique stunt jumps they can be seperated and written inside plain text or binary IPLs. Since parked car generators are related into savegames a new game must be started before they are applied to the game. It is possible to create parked car generators without starting a new game using CLEO.[1]

Format

CARS or parked car generators are used to place permanently, randomly or limited cars which are placed (parked) around the world. For this they need a position, a rotation, information about which car should be placed, the car's colors and some additional information.

GTA San Andreas

PosX, PosY, PosZ, Angle, CarID, PrimCol, SecCol, ForceSpawn, Alarm, DoorLock, Unknown1, Unknown2
Identifier Description
PosX, PosY, PosZ
The real world coordinates of the car as floating point values.
Angle
The angle of the car in dagrees.
CarID
The ID number of the car as defined in the IDE or -1 for random car parks (influened by the pocpycle.dat file)
PrimCol, SecCol
A car color defined in the carcols.dat file. If it is set to -1 the color will be randomly choosed.
ForceSpawn
Vehicles spawn more reliably if this is 1.
Alarm
The probability of triggering the alarm system (0 - 100).
DoorLock
The propability that the doors of the vehicle is locked (0 - 100).
Unknown1, Unknown2
Unknown (Zero).

Binary format

This section is incomplete. You can help by fixing and expanding it.

GTA IV

Script representation

  • 014B – Creates a parked car generator in SCM
  • 014C – Sets the flags for the parked car generator.
  • 09E2 – Creates a parked car generator where the car has a special numplate text.
  • 0A17 – Identifies a parked car generator to be owned by the player

This section is incomplete. You can help by fixing and expanding it.

See also

External Link