Difference between revisions of "020C"

From GTAMods Wiki
Jump to navigation Jump to search
(explosion sfx)
Line 20: Line 20:
 
== Explosion types ==
 
== Explosion types ==
 
=== GTA III ===
 
=== GTA III ===
{| class="wikitable"
+
{| class="wikitable sortable"
! Type || Enum || Notes
+
! Type || Enum{{ref|1}} || class="unsortable" | Notes
 
|-
 
|-
 
| 0 || EXPLOSION_GRENADE || Used in the original script
 
| 0 || EXPLOSION_GRENADE || Used in the original script
Line 45: Line 45:
  
 
=== Vice City ===
 
=== Vice City ===
{| class="wikitable"
+
{| class="wikitable sortable"
! Type || Enum || Notes
+
! Type || Enum{{ref|1}} || style="width: 4em;" | Used in original SCM || SFX{{ref|2}} || class="unsortable" | Notes
 
|-
 
|-
| 0 || EXPLOSION_GRENADE || Used in the original script; Grenade
+
| 0 || EXPLOSION_GRENADE || {{a|c}} | ✓ || 48 || Grenade
 
|-
 
|-
| 1 || EXPLOSION_MOLOTOV || Used in the original script; Molotov Cocktail (can only explode on ground and cannot explode over water)
+
| 1 || EXPLOSION_MOLOTOV || {{a|c}} | ✓ || 49 || Molotov Cocktail (can only explode on ground and cannot explode over water)
 
|-
 
|-
| 2 || EXPLOSION_ROCKET || Used in the original script; Rocket
+
| 2 || EXPLOSION_ROCKET || {{a|c}} | ✓ || 48 || Rocket
 
|-
 
|-
| 3 || EXPLOSION_CAR || Car and motorcycle
+
| 3 || EXPLOSION_CAR || || 47 || Car and motorcycle
 
|-
 
|-
| 4 || EXPLOSION_CAR_QUICK || Exactly the same as type 3
+
| 4 || EXPLOSION_CAR_QUICK || || 47 || Exactly the same as type 3
 
|-
 
|-
| 5 || EXPLOSION_BOAT || Exactly the same as type 3; boat
+
| 5 || EXPLOSION_BOAT || || 47 || Exactly the same as type 3; boat
 
|-
 
|-
| 6 || EXPLOSION_HELI || Used in the original script; final destruction of the NPC police helicopter and the NPC Dodo
+
| 6 || EXPLOSION_HELI || {{a|c}} | ✓ || 47 || Final destruction of the NPC police helicopter and the NPC Dodo
 
|-
 
|-
| 7 || EXPLOSION_HELI2 || Similar to type 6; midair explosion of the NPC police helicopter
+
| 7 || EXPLOSION_HELI2 || || 47 || Similar to type 6; midair explosion of the NPC police helicopter
 
|-
 
|-
| 8 || EXPLOSION_MINE || [[Pickup]] mine
+
| 8 || EXPLOSION_MINE || || 59 || [[Pickup]] mine
 
|-
 
|-
| 9 || EXPLOSION_BARREL || Explosive barrel
+
| 9 || EXPLOSION_BARREL || || 48 || Explosive barrel
 
|-
 
|-
| 10 || EXPLOSION_TANK_GRENADE || Rhino cannon
+
| 10 || EXPLOSION_TANK_GRENADE || || 48 || Rhino cannon
 
|-
 
|-
| 11 || EXPLOSION_HELI_BOMB || Used in the original script
+
| 11 || EXPLOSION_HELI_BOMB || {{a|c}} | ✓ || 59 ||
 
|}
 
|}
 +
 +
# {{note|1}} Enums are from {{U|Wesser}}'s [https://www.dropbox.com/s/nhdia6yokgmi0bo/gta3vc_defines.rar GTA III/VC definitions].
 +
# {{note|2}} These values correspond to an [[SFX#Vice City|SFX]] entry. The association between the explosion and SFX is [[hardcoded]]. For VC v1.0, the location of the array starts at 0x6B2D4C.
  
 
=== San Andreas ===
 
=== San Andreas ===

Revision as of 21:34, 6 March 2015

GTA III Vice City San Andreas ADD_EXPLOSION


Description

Creates an explosion at a point

Syntax

020C: create_explosion [int] at [flt1] [flt2] [flt3]

Parameter

[int]
Explosion type (see below)
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate

This opcode creates an explosion at a coordinates point. These are real explosions so they make sounds, cause damage, and shake the camera. Opcode 0565 creates the same visual explosion without sounds.

Explosion types

GTA III

Type Enum[1] Notes
0 EXPLOSION_GRENADE Used in the original script
1
2
3 EXPLOSION_CAR Used in the original script
4 Exactly the same as type 3
5 EXPLOSION_HELI Used in the original script
6
7
8
9

Vice City

Type Enum[1] Used in original SCM SFX[2] Notes
0 EXPLOSION_GRENADE 48 Grenade
1 EXPLOSION_MOLOTOV 49 Molotov Cocktail (can only explode on ground and cannot explode over water)
2 EXPLOSION_ROCKET 48 Rocket
3 EXPLOSION_CAR 47 Car and motorcycle
4 EXPLOSION_CAR_QUICK 47 Exactly the same as type 3
5 EXPLOSION_BOAT 47 Exactly the same as type 3; boat
6 EXPLOSION_HELI 47 Final destruction of the NPC police helicopter and the NPC Dodo
7 EXPLOSION_HELI2 47 Similar to type 6; midair explosion of the NPC police helicopter
8 EXPLOSION_MINE 59 Pickup mine
9 EXPLOSION_BARREL 48 Explosive barrel
10 EXPLOSION_TANK_GRENADE 48 Rhino cannon
11 EXPLOSION_HELI_BOMB 59
  1. ^ Enums are from Wesser's GTA III/VC definitions.
  2. ^ These values correspond to an SFX entry. The association between the explosion and SFX is hardcoded. For VC v1.0, the location of the array starts at 0x6B2D4C.

San Andreas

Keywords

add, create, explosion