m (→References: removing template:note, removed: {{note|1}} (2)) |
(to be honest, these do not need to be linked) Tag: Visual edit |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | |||
− | {{This|This article describes the usage of the CARS section inside a plain text [[IPL]]. For the [[Item Definition|definition]] of vehicle models see [[CARS (IDE Section)]]}} |
||
{{IplSection |
{{IplSection |
||
|name = CARS |
|name = CARS |
||
− | |game = [[GTA SA]], [[GTA IV]] |
+ | |game = [[Grand Theft Auto: San Andreas|GTA SA]], [[Grand Theft Auto IV|GTA IV]] |
|description = Creates a parked car generator |
|description = Creates a parked car generator |
||
}} |
}} |
||
− | '''CARS''' is a section in the [[Item Placement]] file introduced in [[San Andreas]]. This section is a simplified method to create parked cars. Usually parked cars are created by the |
+ | '''CARS''' is a section in the [[Item Placement]] file introduced in [[San Andreas]]. This section is a simplified method to create parked cars. Usually parked cars are created by the scripts, but just as [[JUMP|unique stunt jumps]] they can be written inside plain text or [[binary IPL]]s. Since parked car generators are related to [[savegame]]s{{ref|1}} 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]]{{ref|2}}. |
== Format == |
== Format == |
||
Line 23: | Line 23: | ||
|<center>Angle</center>||The angle of the car in radians (degrees/~57.2958). |
|<center>Angle</center>||The angle of the car in radians (degrees/~57.2958). |
||
|- |
|- |
||
− | |<center>CarID</center>||The ID number of the car as defined in the [[IDE]] or -1 for random car parks (influenced by the <code> |
+ | |<center>CarID</center>||The ID number of the car as defined in the [[IDE]] or -1 for random car parks (influenced by the <code>popcycle.dat</code> file) |
|- |
|- |
||
|<center>PrimCol, SecCol</center>||A car color defined in the <code>[[carcols.dat]]</code> file. If it is set to -1 the color will be randomly choosed. |
|<center>PrimCol, SecCol</center>||A car color defined in the <code>[[carcols.dat]]</code> file. If it is set to -1 the color will be randomly choosed. |
||
Line 47: | Line 47: | ||
=== Opcodes === |
=== Opcodes === |
||
− | * |
+ | * 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 – Sets a parked car generator as owned by the player |
=== Native functions === |
=== Native functions === |
||
− | * |
+ | * CREATE CAR GENERATOR |
− | * |
+ | * CREATE CAR GENERATOR WITH PLATE |
− | * |
+ | * CREATE CARS ON GENERATORS IN AREA |
− | * |
+ | * DELETE CAR GENERATOR |
− | * |
+ | * DISABLE CAR GENERATORS |
− | * |
+ | * DISABLE CAR GENERATORS WITH HELI |
− | * |
+ | * FORCE GENERATE PARKED CARS TOO CLOSE TO OTHERS |
− | * |
+ | * IS OUR PLAYER HIGHER PRIORITY FOR CAR GENERATION |
− | * |
+ | * REMOVE CARS FROM GENERATORS IN AREA |
− | * |
+ | * SET ALL CAR GENERATORS BACK TO ACTIVE |
− | * |
+ | * SET CAR GENERATORS ACTIVE IN AREA |
− | * |
+ | * SET HAS BEEN OWNED FOR CAR GENERATOR |
− | * |
+ | * SWITCH CAR GENERATOR |
== References == |
== References == |
||
+ | |||
− | {{Icon|SA}} [[Saves_(GTA_SA)#Block_12:_Car_Generators|Car generators in save files]]<br> |
||
− | + | {{Icon|SA}} [[Saves_(GTA_SA)#Block_12:_Car_Generators|Car generators in save files]]<br> |
|
+ | {{Icon|SA}} Creating a parked car generator via scripts. |
||
{{fdl}} |
{{fdl}} |
Revision as of 15:54, 8 January 2015
Supported games: | GTA SA, GTA IV | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Short description: | Creates a parked car generator | ||||||||||||
IPL Sections:
|
Game files and formats in Grand Theft Auto | |
---|---|
Important! | See our Policy on modded content. |
File formats | IMG Archive | DFF | TXD | IDE | GXT | Handling.cfg | Carcols Dynamic Object |
Game files | Animviewer.dat/GTAVC | Bink | Default.dat/GTAVC | Chassis Vlo | Fistfite.dat/GTAVC | Flight.dat | Gta vc.dat | Object.dat/GTAVC | OpenGTA2 | Particle.cfg/GTAVC | Particle (SA) | Paths | Ped.dat/GTAVC | Pedgrp.dat/GTAVC | Pedstats.dat/GTAVC | Scenarios.dat | Scripted Path | Surface.dat/GTAVC | Surfaud.dat | TimeCyc Definition | Timecyc.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train.dat/GTAVC | Train2.dat/GTAVC | WAD | WBD-WBN | WPFL | Water.dat | Water.dat/GTAVC | Weapon.dat/GTAVC | Weaponinfo.xml |
File tools | CodeWalker | OpenIV | Spark IV |
CARS is a section in the Item Placement file introduced in San Andreas. This section is a simplified method to create parked cars. Usually parked cars are created by the scripts, but just as unique stunt jumps they can be written inside plain text or binary IPLs. Since parked car generators are related to 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 .
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.
San Andreas
PosX, PosY, PosZ, Angle, CarID, PrimCol, SecCol, ForceSpawn, Alarm, DoorLock, Unknown1, Unknown2
Identifier | Description |
---|---|
The real world coordinates of the car as floating point values. | |
The angle of the car in radians (degrees/~57.2958). | |
The ID number of the car as defined in the IDE or -1 for random car parks (influenced by the popcycle.dat file)
| |
A car color defined in the carcols.dat file. If it is set to -1 the color will be randomly choosed.
| |
Vehicles spawn more reliably if this is set to 1. | |
The probability of triggering the alarm system (0 - 100). | |
The probability that the doors of the vehicle is locked (0 - 100). | |
Unknown (Zero). |
Binary format
CARS is one of the known sections which can be used in binary format inside streaming IPLs. For detailed information about the format see the format specification in the supposed article.
GTA IV
Scripts
Opcodes
- 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 – Sets a parked car generator as owned by the player
Native functions
- CREATE CAR GENERATOR
- CREATE CAR GENERATOR WITH PLATE
- CREATE CARS ON GENERATORS IN AREA
- DELETE CAR GENERATOR
- DISABLE CAR GENERATORS
- DISABLE CAR GENERATORS WITH HELI
- FORCE GENERATE PARKED CARS TOO CLOSE TO OTHERS
- IS OUR PLAYER HIGHER PRIORITY FOR CAR GENERATION
- REMOVE CARS FROM GENERATORS IN AREA
- SET ALL CAR GENERATORS BACK TO ACTIVE
- SET CAR GENERATORS ACTIVE IN AREA
- SET HAS BEEN OWNED FOR CAR GENERATOR
- SWITCH CAR GENERATOR
References
Template:Icon Car generators in save files
Template:Icon Creating a parked car generator via scripts.
This page is licensed under the GNU Free Documentation Licence. This page has a separate license to the CC-BY-SA that applies to most of GTA Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See GTA Wiki:Copyright for more detail on our copyright policy.
Template:Modding