CULL
| Supported games: | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Short description: | Creates zones with attributes | ||||||||||||
IPL Sections:
| |||||||||||||
cull is a section in the item placement file in Grand Theft Auto III, Grand Theft Auto: Vice City, Grand Theft Auto: San Andreas, and Grand Theft Auto IV. It is used to create zones affecting the different behavior of the world, like mirrors,[1] fixed camera positions, disabling rain, and police behaviors, when the player is within the zone.
Format
GTA III and GTA Vice City
Cull zones in GTA III and GTA Vice City are built by a box which is controlled by various attributes. By default, most of the cull zones are located in \data\maps\cull.ipl for both games, although GTA III doesn't seem to use this file. Instead it uses the cullzone.dat file to define these zones.
cull CenterX, CenterY, CenterZ, X1, Y1, Z1, X2, Y2, Z2, Attribute, WantedLevelDrop end
| Identifier | Type | Description | |
|---|---|---|---|
| A,B,C | CenterX, CenterY, CenterZ | float[3] | A point which defines the center of the box in real world coordinates. |
| D,E,F | X1, Y1, Z1 | float[3] | A point which corresponds to the corner of the box, usually the lower left. |
| G,H,I | X2, Y2, Z2 | float[3] | A point which corresponds to the opposite corner of the box, usually the upper right. |
| J | Attribute | integer | The attribute in flag field representation (see below). |
| K | WantedLevelDrop | integer | Usually 0 |
Changing the zones center coordinates does not directly affect the zone itself. Anyway this vector should always point to the real center of the zone since those values are used to calculate the distance of several instances (e.g. the player) to the zone itself.
GTA San Andreas / IV
GTA San Andreas has two different major formats in the game:
CenterX, CenterY, CenterZ, Unknown1, Length, Bottom, Width, Unknown2, Top, Flag, Unknown3
CenterX, CenterY, CenterZ, Unknown1, Length, Bottom, Width, Unknown2, Top, Flag, Vx, Vy, Vz, Cm
Coordinates are always rounded to the nearest world unit so that they are no longer floating point values, they are non-decimal integers.
| Value | Description |
|---|---|
| CenterX, CenterY, CenterZ | Vector to the center of the cull zone. |
| Unknown1, Unknown2, Unknown3 | Allways 0. |
| Length | Dimensions of the zone along y-axis. |
| Width | Dimensions of the zone along x-axis. |
| Top, Bottom | Absolute Z coordinate of the top and bottom of the box. |
| Flag | The behaviour of the cull zone (see below). |
| Vx, Vy, Vz, Cm | Mirror parameters.[2] |
Attributes
| Flag | Function name | Supported games | Binary | Description |
|---|---|---|---|---|
| Player | ||||
| Camera | ||||
| -1 | – | 1111 1111 1111 1111 |
Enables all attributes. Never used by default. | |
| 1 | CamCloseInForPlayer |
| ||
| 2 | CamStairsForPlayer |
| ||
| 4 | Cam1stPersonForPlayer |
| ||
| 8 | PlayerNoRain |
| ||
| CamNoRain | ||||
| 16 | NoPolice |
| ||
| 64 | DoINeedToLoadCollision |
| ||
| 128 |
| |||
| 256 | PoliceAbandonCars |
| ||
| 512 |
| |||
| InRoomForAudio | ||||
| 1024 |
| |||
| WaterFudge | ||||
| 4096 |
| |||
| MilitaryZone | ||||
| 16384 |
| |||
| ExtraAirResistance | ||||
| 32768 |
| |||
| FewerCars |
References
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 Grand Theft Wiki.
The full text of the GNU FDL v1.2 is here. Click the "History" button to see the full list of authors. See Grand Theft Wiki:Copyright for more detail on our copyright policy.
| Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. See Grand Theft Wiki:Copyright for more information. |
START_WIDGET"'-21cdfbb3173ea4d0END_WIDGET
START_WIDGET-9b324da00ced065bEND_WIDGET