2DFX

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.

Type 0: Coronas
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). ID, X, Y, Z, R, G, B, unknown (0 or 200), 0, Corona, Shadow, Distance, Outer range, Size, Inner range, IDE flag, Flash, Wet, Flare, Dust

Types of Flashes
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. ID, X, Y, Z, R, G, B, unknown (63 or 200), 1, Particle, unk1, unk2, unk3, Size

Types of Particles
Image link - Ordered from 6 to 0 from left to right, all size is 1 with Tommy at the bottom for comparison

Type 2
It is unknown what this type does. This type is only used in GTA III. ID, X, Y, Z, R, G, B, unknown (63 or 200), 2, unk1, unk2, unk3, unk4, unk5

Type 3: Peds
This can make a ped have simple behaviors around the object. This type is only available in Vice City. ID, X, Y, Z, R, G, B, unknown (200), 3, Behavior, unk1, unk2, unk3, RotX, RotY, RotZ

Type 4: Sun Reflections
This can create a sun "reflection" exactly and behaving like the ones seen on cars. This type is only available in Vice City. ID, X, Y, Z, R, G, B, unknown (120), 4