Difference between revisions of "CULL"

From GTAMods Wiki
Jump to navigation Jump to search
(Flags: another one found)
Line 3: Line 3:
 
| description = Create a [[Wikipedia:Culling|culling zone]]
 
| description = Create a [[Wikipedia:Culling|culling zone]]
 
}}
 
}}
'''CULL''' is one of the major [[IPL]] sections used in plaintext map placement files. It is used to create zones with different behaviour like mirrors {{ref|1}} or fixed camera positions. It can also influence the environment like disable rain within the zone.
+
'''CULL''' is a section in the [[IPL]] file. It is used to create zones with different behaviour like mirrors {{ref|1}} or fixed camera positions. It can also influence the environment like disable rain within the zone and certain police behaviors.
  
 
== GTA III / Vice City ==
 
== GTA III / Vice City ==
  
Cull zones in GTA III and Vice City series are built by a box which is controlled by various flags{{ref|2}}. Most of the default cull zones are located in <code>data\maps\cull.ipl</code> for both games.
+
Cull zones in GTA III and Vice City are built by a box which is controlled by various flags{{ref|2}}. By default, most of the cull zones are located in <code>data\maps\cull.ipl</code> for both games.
  
 
  CenterX, CenterY, CenterZ, LowerLeftX, LowerLeftY, LowerLeftZ, UpperRightX, UpperRightY, UpperRightZ, Flags, Unknown
 
  CenterX, CenterY, CenterZ, LowerLeftX, LowerLeftY, LowerLeftZ, UpperRightX, UpperRightY, UpperRightZ, Flags, Unknown
Line 29: Line 29:
 
====Flags====
 
====Flags====
  
Flags are numbers which are build out of a collection of numbers formed by the ''[[Wikipedia:Power_of_2|power of 2]]''-numbers lower than 2<sup>30</sup>. Some are defining various behaviours of the zone. They can be combined by simply adding one lag value to another.
+
Flags are numbers which are build out of a collection of numbers formed by the ''[[Wikipedia:Power_of_2|power of 2]]''-numbers lower than 2<sup>30</sup>. Some are defining various behaviours of the zone. They can be combined by simply adding one flag value to another (see [[binary to decimal conversion]]).
  
 
{|{{Prettytable}} class="collapsible"
 
{|{{Prettytable}} class="collapsible"
Line 65: Line 65:
 
== San Andreas ==
 
== San Andreas ==
  
[[:Category:GTA SA|San Andreas]] has two different major formats in the game:
+
[[San Andreas]] has two different major formats in the game:
  
 
  CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, Flag, Unknown3
 
  CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, Flag, Unknown3
Line 71: Line 71:
 
  CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, Flag, Vx, Vy, Vz, Cm
 
  CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, Flag, Vx, Vy, Vz, Cm
  
Coordinates are always rounded to the nearest world [[unit]] so that they are no floating point values any longer. They are non-decimal integers.
+
Coordinates are always rounded to the nearest world [[unit]] so that they are no longer floating point values, they are non-decimal integers.
  
 
{{Incomplete}}
 
{{Incomplete}}
Line 77: Line 77:
 
==== Flags ====
 
==== Flags ====
  
Not all flags from the previous game are still compatible with San Andreas.
+
Not all flags from the previous game are compatible with San Andreas.
  
 
{|{{Prettytable}} class="collapsible"
 
{|{{Prettytable}} class="collapsible"

Revision as of 08:55, 8 December 2009

CULL (IPL section)
Short description:Create a culling zone
Supported games:GTA 3 GTA VC 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

CULL is a section in the IPL file. It is used to create zones with different behaviour like mirrors [1] or fixed camera positions. It can also influence the environment like disable rain within the zone and certain police behaviors.

GTA III / Vice City

Cull zones in GTA III and Vice City are built by a box which is controlled by various flags[2]. By default, most of the cull zones are located in data\maps\cull.ipl for both games.

CenterX, CenterY, CenterZ, LowerLeftX, LowerLeftY, LowerLeftZ, UpperRightX, UpperRightY, UpperRightZ, Flags, Unknown
Identifier Description
CenterX, CenterY, CenterZ
A point which defines the center of the box in real world coordinates
Useless? Doesn't seem to affect the zone.
LowerLeftX, LowerLeftY, LowerLeftZ
A point which corresponds to the lower left corner of the box.
UpperRightX, UpperRightY, UpperRightZ
A point which corresponds to the upper right corner of the box.
Flags
The behaviour of the cull zone – see below.
Unknown
Always 0

The first three parameters are odd since placing any values do not have an effect on the zone. They seem to act like identifiers rather than functions.

Flags

Flags are numbers which are build out of a collection of numbers formed by the power of 2-numbers lower than 230. Some are defining various behaviours of the zone. They can be combined by simply adding one flag value to another (see binary to decimal conversion).

Flag Binary Description
-1
Enables all flags.
1
0000 0000 0000 0001
Camera close in into player using closest third-person view camera mode, does not close in if in first person or cinematic mode, camera mode cannot be changed while in the zone
2
0000 0000 0000 0010
camera remotely placed outside the zone, no control of camera, camera mode cannot be changed while in the zone
4
0000 0000 0000 0100
Unknown
8
0000 0000 0000 1000
Rain-free, police helicopter-free zone
16
0000 0000 0001 0000
Police will not exit their vehicles voluntarily. They will only exit if you do something to them (like shoot it). Cops both on foot and in vehicles will not chase you but can shoot at you.
32
0000 0000 0010 0000
64
0000 0000 0100 0000
128
0000 0000 1000 0000
256
0000 0001 0000 0000
Police will always exit their vehicles once they are spawned ONLY IF you have a wanted level. If you don't, they'll drive normally.
512
0000 0001 0000 0000
1024
0000 0010 0000 0000
Some visual water effects are removed like the transparent waves and sparkles on the water (like the water in GTA III).

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

San Andreas

San Andreas has two different major formats in the game:

CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, Flag, Unknown3
CenterX, CenterY, CenterZ, Unknown1, WidthY, BottomZ, WidthX, Unknown2, TopZ, 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.

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

Flags

Not all flags from the previous game are compatible with San Andreas.

Flag Binary Description
-1
Enables all flags.
1
0000 0000 0000 0001
Camera close in into player using closest third-person view camera mode, does not close in if in first person or cinematic mode, camera mode cannot be changed while in the zone
2
0000 0000 0000 0010
camera remotely placed outside the zone, no control of camera, camera mode cannot be changed while in the zone
4
0000 0000 0000 0100
Unknown
8
0000 0000 0000 1000
Rain-free, police helicopter-free zone
4096
0001 0000 0000 0000
5-star military zone

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

GTA IV

References

See also

External links