Difference between revisions of "032B"

From GTAMods Wiki
Jump to navigation Jump to search
(pickup text)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
__NOTOC__{{Icon|trilogy}} '''CREATE_PICKUP_WITH_AMMO'''
+
__NOTOC__
<hr />
+
{{OpCode
'''Description'''
+
| games      = {{Icon|t}}
: Creates a [[pickup]] with ammo
+
| command    = CREATE_PICKUP_WITH_AMMO
'''Syntax'''
+
| description = Creates a [[pickup]] with ammo
: 032B: [''var''] = create_weapon_pickup [''int1''] [''int2''] ammo [''int3''] at [''flt1''] [''flt2''] [''flt3'']
+
| syntax1    = 032B: [''var''] = create_weapon_pickup [''int1''] [''int2''] ammo [''int3''] at [''flt1''] [''flt2''] [''flt3'']
'''Parameter'''
+
| p1t        = [''int1'']
: [''var'']
+
| p1d        = Valid model index as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name with a hash character
:: Variable to store the handle of the pickup
+
| p2t        = [''int2'']
: [''int1'']
+
| p2d        = [[0213#Pickup types|Type]]
:: Valid object model ID number as defined in the [[IDE]] file; also acceptable is model's [[DFF]] name identified by a hash character
+
| p3t        = [''int3'']
: [''int2'']
+
| p3d        = Ammo count ([[#Pickup text|see below]] for special cases)
:: [[0213#Pickup types|Type]]
+
| p4t        = [''flt1'']
: [''int3'']
+
| p4d        = X-coordinate
:: Ammo count ([[#Pickup text|see below]] for special cases)
+
| p5t        = [''flt2'']
: [''flt1'']
+
| p5d        = Y-coordinate
:: X-coordinate
+
| p6t        = [''flt3'']
: [''flt2'']
+
| p6d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
:: Y-coordinate
+
| p7t        = [''var'']
: [''flt3'']
+
| p7d        = Variable to store the handle of the pickup
:: Z-coordinate (or ''-100.0'' for [[02CE|ground z]] + 0.5 units)
+
| native      = [[CREATE_PICKUP_WITH_AMMO]]
'''Native analog'''
+
}}
: [[CREATE_PICKUP_WITH_AMMO]]
 
  
This opcode spawns a pickup at a coordinates point that can be "collected" by the player. It is almost equivalent to opcode [[0213]] but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of ''0'' creates a pickup equivalent to opcode 0213. The additional parameter makes pickup type 7 in GTA III and type 8 in Vice City useful &mdash; it sets the amount of money for the pickup type.
+
This opcode spawns a pickup at the coordinates point that can be "collected" by the player. It is almost equivalent to opcode [[0213]] but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of ''0'' creates a pickup equivalent to one created through opcode 0213. The additional parameter makes a pickup of type PICKUP_MONEY (type 7 in GTA III, type 8 in Vice City and San Andreas) useful &mdash; it sets the amount of money for the pickup type.
  
 
== Pickup text ==
 
== Pickup text ==
If the model of the pickup is <code>bonus.dff</code>, the ammo count sets text to display floating above the pickup. In Vice City, both <code>bonus.dff</code> amd <code>clothesp.dff</code> can display the pickup text. Opcode [[055B]] behaves the same way.
+
If the model of the pickup [[MatchModelString|matches the name <code>bonus</code>]], the ammo count sets text to display floating above the pickup. In Vice City, models matching either <code>bonus</code> or <code>clothesp</code> can display the pickup text. Opcode [[055B]] behaves the same way.
 
=== GTA III ===
 
=== GTA III ===
{| class="wikitable"
+
{|class="wikitable"
! Ammo || [[GXT]] entry || Text
+
!Ammo ||[[GXT]] key ||Text
 
|-
 
|-
| 1 || SECURI || Securicar
+
|1 ||SECURI ||Securicar
 
|-
 
|-
| 2 || MOONBM || Moonbeam
+
|2 ||MOONBM ||Moonbeam
 
|-
 
|-
| 3 || COACH || Coach
+
|3 ||COACH ||Coach
 
|-
 
|-
| 4 || FLATBED || Flatbed
+
|4 ||FLATBED ||Flatbed
 
|-
 
|-
| 5 || LINERUN || Linerunner
+
|5 ||LINERUN ||Linerunner
 
|-
 
|-
| 6 || TRASHM || Trashmaster
+
|6 ||TRASHM ||Trashmaster
 
|-
 
|-
| 7 || PATRIOT || Patriot
+
|7 ||PATRIOT ||Patriot
 
|-
 
|-
| 8 || WHOOPEE || Mr Whoopee
+
|8 ||WHOOPEE ||Mr Whoopee
 
|-
 
|-
| 9 || BLISTA || Blista
+
|9 ||BLISTA ||Blista
 
|-
 
|-
| 10 || MULE || Mule
+
|10 ||MULE ||Mule
 
|-
 
|-
| 11 || YANKEE || Yankee
+
|11 ||YANKEE ||Yankee
 
|-
 
|-
| 12 || BOBCAT || Bobcat
+
|12 ||BOBCAT ||Bobcat
 
|-
 
|-
| 13 || DODO || Dodo
+
|13 ||DODO ||Dodo
 
|-
 
|-
| 14 || BUS || Bus
+
|14 ||BUS ||Bus
 
|-
 
|-
| 15 || RUMPO || Rumpo
+
|15 ||RUMPO ||Rumpo
 
|-
 
|-
| 16 || PONY || Pony
+
|16 ||PONY ||Pony
 
|-
 
|-
| 17 || SENTINL || Sentinel
+
|17 ||SENTINL ||Sentinel
 
|-
 
|-
| 18 || CHEETAH || Cheetah
+
|18 ||CHEETAH ||Cheetah
 
|-
 
|-
| 19 || BANSHEE || Banshee
+
|19 ||BANSHEE ||Banshee
 
|-
 
|-
| 20 || IDAHO || Idaho
+
|20 ||IDAHO ||Idaho
 
|-
 
|-
| 21 || INFERNS || Infernus
+
|21 ||INFERNS ||Infernus
 
|-
 
|-
| 22 || TAXI || Taxi
+
|22 ||TAXI ||Taxi
 
|-
 
|-
| 23 || KURUMA || Kuruma
+
|23 ||KURUMA ||Kuruma
 
|-
 
|-
| 24 || STRETCH || Stretch
+
|24 ||STRETCH ||Stretch
 
|-
 
|-
| 25 || PEREN || Perennial
+
|25 ||PEREN ||Perennial
 
|-
 
|-
| 26 || STINGER || Stinger
+
|26 ||STINGER ||Stinger
 
|-
 
|-
| 27 || MANANA || Manana
+
|27 ||MANANA ||Manana
 
|-
 
|-
| 28 || LANDSTK || Landstalker
+
|28 ||LANDSTK ||Landstalker
 
|-
 
|-
| 29 || STALION || Stallion
+
|29 ||STALION ||Stallion
 
|-
 
|-
| 30 || BFINJC || BF Injection
+
|30 ||BFINJC ||BF Injection
 
|-
 
|-
| 31 || CABBIE || Cabbie
+
|31 ||CABBIE ||Cabbie
 
|-
 
|-
| 32 || ESPERAN || Esperanto
+
|32 ||ESPERAN ||Esperanto
 
|-
 
|-
| 33 || FIRETRK || Firetruck
+
|33 ||FIRETRK ||Firetruck
 
|-
 
|-
| 34 || AMBULAN || Ambulance
+
|34 ||AMBULAN ||Ambulance
 
|-
 
|-
| 35 || ENFORCR || Enforcer
+
|35 ||ENFORCR ||Enforcer
 
|-
 
|-
| 36 || FBICAR || Fbi Car
+
|36 ||FBICAR ||Fbi Car
 
|-
 
|-
| 37 || RHINO || Rhino
+
|37 ||RHINO ||Rhino
 
|-
 
|-
| 38 || BARRCKS || Barracks OL
+
|38 ||BARRCKS ||Barracks OL
 
|-
 
|-
| 39 || POLICAR || Police
+
|39 ||POLICAR ||Police
 
|}
 
|}
  
 
=== Vice City ===
 
=== Vice City ===
{| class="wikitable"
+
{|class="wikitable"
! Ammo || [[GXT]] entry || Text
+
!Ammo ||[[GXT]] key ||Text
 
|-
 
|-
| 1 || OUTFT1 || Street
+
|1 ||OUTFT1 ||Street
 
|-
 
|-
| 2 || OUTFT2 || Soiree
+
|2 ||OUTFT2 ||Soiree
 
|-
 
|-
| 3 || OUTFT3 || Coveralls
+
|3 ||OUTFT3 ||Coveralls
 
|-
 
|-
| 4 || OUTFT4 || Country Club
+
|4 ||OUTFT4 ||Country Club
 
|-
 
|-
| 5 || OUTFT5 || Havana
+
|5 ||OUTFT5 ||Havana
 
|-
 
|-
| 6 || OUTFT6 || Cop
+
|6 ||OUTFT6 ||Cop
 
|-
 
|-
| 7 || OUTFT7 || Bank Job
+
|7 ||OUTFT7 ||Bank Job
 
|-
 
|-
| 8 || OUTFT8 || Casual
+
|8 ||OUTFT8 ||Casual
 
|-
 
|-
| 9 || OUTFT9 || Mr Vercetti
+
|9 ||OUTFT9 ||Mr Vercetti
 
|-
 
|-
| 10 || OUTFT10 || Tracksuit
+
|10 ||OUTFT10 ||Tracksuit
 
|-
 
|-
| 11 || OUTFT11 || Tracksuit
+
|11 ||OUTFT11 ||Tracksuit
 
|-
 
|-
| 12 || OUTFT12 || Frankie
+
|12 ||OUTFT12 ||Frankie
 
|-
 
|-
| 13 || OUTFT13 || MC Tommy
+
|13 ||OUTFT13 ||MC Tommy
 
|}
 
|}
  
 
== Keywords ==
 
== Keywords ==
 
create, pickup, weapon, ammo
 
create, pickup, weapon, ammo
 
[[Category:OpCodes]]
 

Latest revision as of 20:04, 7 July 2017

GTA III Vice City San Andreas CREATE_PICKUP_WITH_AMMO


Description
Creates a pickup with ammo
Syntax
032B: [var] = create_weapon_pickup [int1] [int2] ammo [int3] at [flt1] [flt2] [flt3]
Parameter
[int1]
Valid model index as defined in the IDE file; also acceptable is model's DFF name with a hash character
[int2]
Type
[int3]
Ammo count (see below for special cases)
[flt1]
X-coordinate
[flt2]
Y-coordinate
[flt3]
Z-coordinate (or ≤-100.0 for ground z + 0.5 units)
[var]
Variable to store the handle of the pickup
Native analog
CREATE_PICKUP_WITH_AMMO

This opcode spawns a pickup at the coordinates point that can be "collected" by the player. It is almost equivalent to opcode 0213 but with an additional parameter that sets the ammo count of the pickup. Using an ammo count of 0 creates a pickup equivalent to one created through opcode 0213. The additional parameter makes a pickup of type PICKUP_MONEY (type 7 in GTA III, type 8 in Vice City and San Andreas) useful — it sets the amount of money for the pickup type.

Pickup text

If the model of the pickup matches the name bonus, the ammo count sets text to display floating above the pickup. In Vice City, models matching either bonus or clothesp can display the pickup text. Opcode 055B behaves the same way.

GTA III

Ammo GXT key Text
1 SECURI Securicar
2 MOONBM Moonbeam
3 COACH Coach
4 FLATBED Flatbed
5 LINERUN Linerunner
6 TRASHM Trashmaster
7 PATRIOT Patriot
8 WHOOPEE Mr Whoopee
9 BLISTA Blista
10 MULE Mule
11 YANKEE Yankee
12 BOBCAT Bobcat
13 DODO Dodo
14 BUS Bus
15 RUMPO Rumpo
16 PONY Pony
17 SENTINL Sentinel
18 CHEETAH Cheetah
19 BANSHEE Banshee
20 IDAHO Idaho
21 INFERNS Infernus
22 TAXI Taxi
23 KURUMA Kuruma
24 STRETCH Stretch
25 PEREN Perennial
26 STINGER Stinger
27 MANANA Manana
28 LANDSTK Landstalker
29 STALION Stallion
30 BFINJC BF Injection
31 CABBIE Cabbie
32 ESPERAN Esperanto
33 FIRETRK Firetruck
34 AMBULAN Ambulance
35 ENFORCR Enforcer
36 FBICAR Fbi Car
37 RHINO Rhino
38 BARRCKS Barracks OL
39 POLICAR Police

Vice City

Ammo GXT key Text
1 OUTFT1 Street
2 OUTFT2 Soiree
3 OUTFT3 Coveralls
4 OUTFT4 Country Club
5 OUTFT5 Havana
6 OUTFT6 Cop
7 OUTFT7 Bank Job
8 OUTFT8 Casual
9 OUTFT9 Mr Vercetti
10 OUTFT10 Tracksuit
11 OUTFT11 Tracksuit
12 OUTFT12 Frankie
13 OUTFT13 MC Tommy

Keywords

create, pickup, weapon, ammo