GTAG - Modding - San Andreas - Explosions
Explosions
Explosions are created by calling the function 0x736A50. This function is automatically called by using opcodes 020C, 0565 and 0948. These ID's can also be used in opcode 0356, which checks if the explosion type exists in the specified area.
| Type | Particle | Description |
|---|---|---|
| 0 | explosion_small | Creates a grenade explosion |
| 1 | explosion_molotov | Creates a molotov cocktail explosion |
| 2 | explosion_small | Creates a rocket explosion |
| 3 | explosion_small | Creates a weak rocket explosion |
| 4 | explosion_medium | Creates a car/bike explosion |
| 5 | explosion_medium | Creates a quick car explosion |
| 6 | explosion_large | Creates a boat explosion |
| 7 | explosion_large | Creates an aircraft explosion |
| 8 | n/a | Creates a mine explosion (model 2918 / KMB_MINE). Also used for some pickups? |
| 9 | n/a | Creates an object explosion (invisible, but makes a sound - creates fires near the ground) |
| 10 | explosion_large | Creates a tank fire explosion |
| 11 | explosion_small | Creates a small explosion |
| 12 | explosion_tiny | Creates a tiny explosion, used for RC Vehicles |
| Other | none | Creates an invisible, damageless explosion |
Memory Structure
- Base Info
- Base: 0xC88950
- Size: 0x7C
- Num: 0x10
- Offsets
- +0x00 [dword]: Explosion ID/Type
- +0x04: Coordinates Array
- +0x00 [float]: X Coord
- +0x04 [float]: Y Coord
- +0x08 [float]: Z Coord
- +0x10 [float]: Radius
- +0x14 [float]: Propagation rate
- +0x18 [dword]: Pointer to entity that caused the explosion
- +0x1C [dword]: Pointer to entity that is exploding?
- +0x20 [dword]: Time that explosion expires
- +0x24 [float]: Unknown
- +0x28 [byte]: Enabled flag?
- +0x29 [byte]: Unknown
- +0x2A [byte]: Unknown
- +0x2B [byte]: Unknown
- +0x2C [float]: Creation time
- +0x30 [float]: Explosion force
- +0x34 [float]: Radius
- +0x38 [dword]: Unknown
- +0x3C [dword]: Timer

