Difference between revisions of "020C"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "__NOTOC__ {{Icon|trilogy}} '''ADD_EXPLOSION''' <hr /> '''Description''' : Creates an explosion at a point '''Syntax''' : 020C: create_explosion [''int''] at [''flt1''] [''flt2...")
 
Line 16: Line 16:
 
:: Z-coordinate
 
:: Z-coordinate
  
This opcode creates an explosion at a coordinates point. These are real explosions so they make sounds and cause damage. Opcode [[0565]] creates the same visual explosion without sounds.
+
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 ==
 
== Explosion types ==
Line 23: Line 23:
 
! Type || Enum || Notes
 
! Type || Enum || Notes
 
|-
 
|-
| 0 || EXPLOSION_GRENADE || Was used in the original script
+
| 0 || EXPLOSION_GRENADE || Used in the original script
 
|-
 
|-
 
| 1 || ||
 
| 1 || ||
Line 29: Line 29:
 
| 2 || ||
 
| 2 || ||
 
|-
 
|-
| 3 || EXPLOSION_CAR || Was used in the original script
+
| 3 || EXPLOSION_CAR || Used in the original script
 
|-
 
|-
 
| 4 || || Exactly the same as type 3
 
| 4 || || Exactly the same as type 3
 
|-
 
|-
| 5 || EXPLOSION_HELI || Was used in the original script
+
| 5 || EXPLOSION_HELI || Used in the original script
 
|-
 
|-
 
| 6 || ||
 
| 6 || ||
Line 48: Line 48:
 
! Type || Enum || Notes
 
! Type || Enum || Notes
 
|-
 
|-
| 0 || EXPLOSION_GRENADE || Was used in the original script
+
| 0 || EXPLOSION_GRENADE || Used in the original script; Grenade
 
|-
 
|-
| 1 || EXPLOSION_MOLOTOV || Was used in the original script
+
| 1 || EXPLOSION_MOLOTOV || Used in the original script; Molotov Cocktail (can only explode on ground and cannot explode over water)
 
|-
 
|-
| 2 || EXPLOSION_ROCKET || Was used in the original script
+
| 2 || EXPLOSION_ROCKET || Used in the original script; Rocket
 
|-
 
|-
| 3 || EXPLOSION_CAR ||
+
| 3 || EXPLOSION_CAR || Car and motorcycle
 
|-
 
|-
 
| 4 || EXPLOSION_CAR_QUICK || Exactly the same as type 3
 
| 4 || EXPLOSION_CAR_QUICK || Exactly the same as type 3
 
|-
 
|-
| 5 || EXPLOSION_BOAT || Exactly the same as type 3
+
| 5 || EXPLOSION_BOAT || Exactly the same as type 3; boat
 
|-
 
|-
| 6 || EXPLOSION_HELI || Was used in the original script
+
| 6 || EXPLOSION_HELI || Used in the original script; final destruction of the NPC police helicopter and the NPC Dodo
 
|-
 
|-
| 7 || EXPLOSION_HELI2 || Exactly the same as type 6
+
| 7 || EXPLOSION_HELI2 || Similar to type 6; midair explosion of the NPC police helicopter
 
|-
 
|-
| 8 || EXPLOSION_MINE ||
+
| 8 || EXPLOSION_MINE || [[Pickup]] mine
 
|-
 
|-
| 9 || EXPLOSION_BARREL ||
+
| 9 || EXPLOSION_BARREL || Explosive barrel
 
|-
 
|-
| 10 || EXPLOSION_TANK_GRENADE ||
+
| 10 || EXPLOSION_TANK_GRENADE || Rhino cannon
 
|-
 
|-
| 11 || EXPLOSION_HELI_BOMB || Was used in the original script
+
| 11 || EXPLOSION_HELI_BOMB || Used in the original script
 
|}
 
|}
  

Revision as of 08:40, 16 January 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 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 Notes
0 EXPLOSION_GRENADE Used in the original script; Grenade
1 EXPLOSION_MOLOTOV Used in the original script; Molotov Cocktail (can only explode on ground and cannot explode over water)
2 EXPLOSION_ROCKET Used in the original script; Rocket
3 EXPLOSION_CAR Car and motorcycle
4 EXPLOSION_CAR_QUICK Exactly the same as type 3
5 EXPLOSION_BOAT 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
7 EXPLOSION_HELI2 Similar to type 6; midair explosion of the NPC police helicopter
8 EXPLOSION_MINE Pickup mine
9 EXPLOSION_BARREL Explosive barrel
10 EXPLOSION_TANK_GRENADE Rhino cannon
11 EXPLOSION_HELI_BOMB Used in the original script

San Andreas

Keywords

add, create, explosion