Difference between revisions of "020C"
Jump to navigation
Jump to search
(range and more sfx) |
m |
||
Line 21: | Line 21: | ||
=== GTA III === | === GTA III === | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
− | ! Type || Enum || SFX{{ref|2}} || Range || style="width: 4em;" | Used in original SCM || class="unsortable" | Notes | + | ! Type || Enum{{ref|1}} || SFX{{ref|2}} || Range || style="width: 4em;" | Used in original SCM || class="unsortable" | Notes |
|- | |- | ||
| 0 || EXPLOSION_<wbr>GRENADE || 65 || 400.0 || {{a|c}} | ✓ || | | 0 || EXPLOSION_<wbr>GRENADE || 65 || 400.0 || {{a|c}} | ✓ || | ||
Line 31: | Line 31: | ||
| 3 || EXPLOSION_<wbr>CAR || 456 || 400.0 || {{a|c}} | ✓ || | | 3 || EXPLOSION_<wbr>CAR || 456 || 400.0 || {{a|c}} | ✓ || | ||
|- | |- | ||
− | | 4 || || 456 || 400.0 || || Exactly the same as type 3 | + | | 4 || EXPLOSION_<wbr>CAR_<wbr>QUICK || 456 || 400.0 || || Exactly the same as type 3 |
|- | |- | ||
| 5 || EXPLOSION_<wbr>HELI || 456 || 400.0 || {{a|c}} | ✓ || | | 5 || EXPLOSION_<wbr>HELI || 456 || 400.0 || {{a|c}} | ✓ || | ||
|- | |- | ||
− | | 6 || || 79 || 300.0 || || | + | | 6 || EXPLOSION_<wbr>MINE || 79 || 300.0 || || |
|- | |- | ||
− | | 7 || || 65 || 400.0 || || | + | | 7 || EXPLOSION_<wbr>BARREL || 65 || 400.0 || || |
|- | |- | ||
− | | 8 || || 65 || 400.0 || || | + | | 8 || EXPLOSION_<wbr>TANK_<wbr>GRENADE || 65 || 400.0 || || |
|- | |- | ||
− | | 9 || || 79 || 300.0 || || | + | | 9 || EXPLOSION_<wbr>HELI_<wbr>BOMB || 79 || 300.0 || || |
|} | |} | ||
=== Vice City === | === Vice City === | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
− | ! Type || Enum | + | ! Type || [[SCM_language_III/VC_definitions#EXPLOSION|Enum]] || SFX{{ref|3}} || Range || style="width: 4em;" | Used in original SCM || class="unsortable" | Notes |
|- | |- | ||
| 0 || EXPLOSION_<wbr>GRENADE || 48 || 200.0 || {{a|c}} | ✓ || Grenade | | 0 || EXPLOSION_<wbr>GRENADE || 48 || 200.0 || {{a|c}} | ✓ || Grenade | ||
Line 73: | Line 73: | ||
|} | |} | ||
− | # {{note|1}} Enums are from | + | # {{note|1}} Enums whose values are used in the original script are from [http://gtamodding.ru/wiki/%D0%9A%D0%B0%D1%82%D0%B5%D0%B3%D0%BE%D1%80%D0%B8%D1%8F%3A%D0%98%D1%81%D1%85%D0%BE%D0%B4%D0%BD%D0%B8%D0%BA%D0%B8 GTAModding.ru]. The rest are inferred from Vice City's enums. |
# {{note|2}} These values correspond to an SFX entry. The association between the explosion and SFX is [[hardcoded]]. The range is how far the player can be in meters before the sound diminishes. For III v1.0, the location of the array in memory starts at 0x609240. | # {{note|2}} These values correspond to an SFX entry. The association between the explosion and SFX is [[hardcoded]]. The range is how far the player can be in meters before the sound diminishes. For III v1.0, the location of the array in memory starts at 0x609240. | ||
# {{note|3}} For VC v1.0, the location of the array in memory starts at 0x6B2D4C. | # {{note|3}} For VC v1.0, the location of the array in memory starts at 0x6B2D4C. |
Revision as of 23:16, 27 May 2015
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. Different explosion types produce different sound effects and have different ranges in which the sound of the explosion can be heard. Opcode 0565 creates the same visual explosion without sounds.
Explosion types
GTA III
Type | Enum[1] | SFX[2] | Range | Used in original SCM | Notes |
---|---|---|---|---|---|
0 | EXPLOSION_ |
65 | 400.0 | ✓ | |
1 | EXPLOSION_ |
66 | 200.0 | ||
2 | EXPLOSION_ |
65 | 400.0 | ||
3 | EXPLOSION_ |
456 | 400.0 | ✓ | |
4 | EXPLOSION_ |
456 | 400.0 | Exactly the same as type 3 | |
5 | EXPLOSION_ |
456 | 400.0 | ✓ | |
6 | EXPLOSION_ |
79 | 300.0 | ||
7 | EXPLOSION_ |
65 | 400.0 | ||
8 | EXPLOSION_ |
65 | 400.0 | ||
9 | EXPLOSION_ |
79 | 300.0 |
Vice City
Type | Enum | SFX[3] | Range | Used in original SCM | Notes |
---|---|---|---|---|---|
0 | EXPLOSION_ |
48 | 200.0 | ✓ | Grenade |
1 | EXPLOSION_ |
49 | 150.0 | ✓ | Molotov Cocktail, can only explode on ground and cannot explode over water |
2 | EXPLOSION_ |
48 | 200.0 | ✓ | Rocket |
3 | EXPLOSION_ |
47 | 200.0 | Car and motorcycle | |
4 | EXPLOSION_ |
47 | 200.0 | Exactly the same as type 3 | |
5 | EXPLOSION_ |
47 | 200.0 | Exactly the same as type 3; boat | |
6 | EXPLOSION_ |
47 | 200.0 | ✓ | Final destruction of the NPC police helicopter and the NPC Dodo |
7 | EXPLOSION_ |
47 | 200.0 | Similar to type 6; midair explosion of the NPC police helicopter | |
8 | EXPLOSION_ |
59 | 200.0 | Pickup mine | |
9 | EXPLOSION_ |
48 | 200.0 | Explosive barrel | |
10 | EXPLOSION_ |
48 | 200.0 | Rhino cannon | |
11 | EXPLOSION_ |
59 | 200.0 | ✓ |
- ^ Enums whose values are used in the original script are from GTAModding.ru. The rest are inferred from Vice City's enums.
- ^ These values correspond to an SFX entry. The association between the explosion and SFX is hardcoded. The range is how far the player can be in meters before the sound diminishes. For III v1.0, the location of the array in memory starts at 0x609240.
- ^ For VC v1.0, the location of the array in memory starts at 0x6B2D4C.
San Andreas
Keywords
add, create, explosion