Difference between revisions of "2DFX"
m (→GTA IV) |
|||
Line 140: | Line 140: | ||
===Type 2=== | ===Type 2=== | ||
− | It is unknown what this type does. This type was used in GTA III but should be usable in Vice City. | + | It is unknown what this type does. This type was used in GTA III but should be usable in Vice City. See [[:File:2dfxType2.jpg|here]] for a map of all the locations. |
{|{{Prettytable}} width="100%" | {|{{Prettytable}} width="100%" | ||
Line 206: | Line 206: | ||
|- | |- | ||
| 4 | | 4 | ||
− | | unknown, see [[:File: | + | | unknown, see [[:File:2dfxType3.4.jpg|here]] for a map of all the locations |
|} | |} | ||
Revision as of 20:40, 11 February 2012
Supported games: | GTA III, GTA VC, GTA IV | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Brief description: | Used to place 2D effects and ped behaviors on objects | |||||||||||||||
IDE Sections:
|
2DFX is a section in the item definition file. It is used to place 2D effects (like lights and particles) and ped behaviors on objects. This section is somewhat unique compared to other sections because it needs to be attached to an existing object rather than defining itself. If too much effects are loaded or drawn in the game, some of the effects will load in and out or won't appear at all.
Contents
GTA III and Vice City
Type 0: Lights
This can create a complex light source on an object. If the object has a sub object, the light will disappear when the main object changes into the sub object (like when lampposts are knocked).
Identifier | Type | Description | |
---|---|---|---|
integer | associated to existing object ID defined in OBJS or TOBJ section | ||
float[3] | X, Y, and Z coordinates relative to the center of the object | ||
integer[3] | color of the light and everything associated with it in RGB format, also affects the intensity of the light so that darker the color the dimmer the light (meaning black (0,0,0) will yield a light so dim that it's not visible) | ||
integer | usually 0 or 200 | ||
integer | always 0 for lights | ||
string | corona texture associated to the light, texture defined in particle.txd , usually "coronastar" for lights
| ||
string | light texture that is cast on the ground, texture defined in particle.txd , usually "shad_exp" for lights
| ||
float | view distance of the light, is limited by the draw distance of the host object | ||
float | the range the light can cast on objects, cars, and peds | ||
float | the size of the corona, can be a float or integer, size 0 means no visible corona but effect of light still visible | ||
float | the range the light can cast on the ground | ||
integer | IDE flag, only the time-dependent flags are useable | ||
integer | sets the type of flashing (see below) | ||
integer | sets the particle to be "reflective" on wet grounds, will only work if the ground around the light is set to wet when raining 0 - not reflective when wet, 1 - reflective when wet | ||
integer | sets the particle to create a lens flare on the screen, similar to what the sun does 0 - no lens flare, 1 - yellow lens flare, 2 - white lens flare | ||
integer | sets the intensity of light reflecting off dust, values 4 to 7 have visible effects |
Types of Flashes
0 | constantly lit all time |
1 | constantly lit at night |
2 | occasional flicker all time |
3 | occasional flicker at night |
4 | ~1 second flashes |
5 | ~1 second flashes at night |
6 | ~2 seconds flashes |
7 | ~2 seconds flashes at night |
8 | ~3 seconds flashes |
9 | ~3 seconds flashes at night |
10 | random flicker |
11 | random flicker at night |
12 | hardcoded traffic lights properties |
Type 12 is involved in hardcoded properties of traffic lights. It is mainly used to position the lights on the traffic light. A traffic light without a 2DFX entry will crash the game when the traffic light is loading.
Type 1: Particles
This can create simple particles on an object
Identifier | Type | Description | |
---|---|---|---|
integer | associated to existing object ID defined in OBJS or TOBJ section | ||
float[3] | X, Y, and Z coordinates relative to the center of the object | ||
integer[3] | useless values | ||
integer | usually 63 or 200 | ||
integer | always 1 for particles | ||
integer | particle type (see below) | ||
float[3] | unknown, rotation of particle? | ||
float | the size of the particle |
Types of Particles
Type 2
It is unknown what this type does. This type was used in GTA III but should be usable in Vice City. See here for a map of all the locations.
Type 3: Peds
This can make a ped have simple behaviors around the object.
Identifier | Type | Description | |
---|---|---|---|
integer | associated to existing object ID defined in OBJS or TOBJ section | ||
float[3] | X, Y, and Z coordinates relative to the center of the object | ||
integer[3] | useless values | ||
integer | usually 0 or 200 | ||
integer | always 3 for peds | ||
integer | behavior type (see below) | ||
float[3] | unknown, useless values? | ||
float[3] | rotation of ped when animation is playing |
Types of Behaviors
0 | walks to the coordinates to use an ATM then walks away |
1 | walks to the coordinates to sit down for a while then stand back up and walks away |
2 | walks to the coordinates to wait for a bus; additional peds will line up behind each other |
3 | walks to the coordinates, stands for a very short while, then leave (like window shopping) |
4 | unknown, see here for a map of all the locations |
Type 4: Sun Reflections
This can create a sun "reflection" exactly and behaving like the ones seen on cars.
Identifier | Type | Description | |
---|---|---|---|
integer | associated to existing object ID defined in OBJS or TOBJ section | ||
float[3] | X, Y, and Z coordinates relative to the center of the object | ||
integer[3] | useless values | ||
integer | usually 120 | ||
integer | always 4 for sun reflections |
GTA IV
This section is incomplete. You can help by fixing and expanding it. GTA IV 2DFX Category doesn't have all Types description. More description about 2dfx types will be added later.
Type 0: Lights
Type Lights ignore by the game. GTA IV using light in .wdr/wft models
Type 1: Particles
Type 2: Explosion
Type 10: Escalator
GTA SA Using Escalator attribute in .dff models, GTA IV has the Escalator Attribute too, but all parameters are unknown and possible section maybe call the game crash.
Type 12: Procedural Obj
Type 13: WorldPoint
Type 14: Ladder
Type 17: Chairs
Statistics
Total number of 2DFX entries in:
- GTA III: 927
- Type 0: 859
- Type 1: 53
- Type 2: 15
- Vice City: 1069
- Type 0: 834
- Type 1: 63
- Type 2: 0
- Type 3: 162
- Type 4: 10
- GTA IV: 17043
- Type 0: 13831
- Type 1: 2385
- Type 2: 23
- Type 12: 60
- Type 14: 103
- Type 15: 246
- Type 17: 117
- Type 18: 204
- Type 19: 34
- Type 21: 11
- Type 22: 10
- Type 23: 19