Difference between revisions of "055B"

From GTAMods Wiki
Jump to navigation Jump to search
(updating page)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[File:055B.png|thumb|055B pickup]]
 
[[File:055B.png|thumb|055B pickup]]
{{Icon|VC}}
+
{{OpCode
<hr />
+
| games      = {{Icon|VC}}
'''Description'''
+
| command    = CREATE_<wbr>CLOTHES_<wbr>PICKUP
: Creates a clothing pickup
+
| description = Creates a clothing [[pickup]]
'''Syntax'''
+
| syntax1    = 055B: [''var''] = create_clothes_pickup [''int''] at [''flt1''] [''flt2''] [''flt3'']
: 055B: [''var''] = create_clothes_pickup [''int''] at [''flt1''] [''flt2''] [''flt3'']
+
| p1t        = [''int'']
'''Parameter'''
+
| p1d        = Clothes value (see below)
: [''var'']
+
| p2t        = [''flt1'']
:: Variable to store the handle of the pickup
+
| p2d        = X-coordinate
: [''int'']
+
| p3t        = [''flt2'']
:: [[#Clothing IDs|Clothing ID]]
+
| p3d        = Y-coordinate
: [''flt1'']
+
| p4t        = [''flt3'']
:: X-coordinate
+
| p4d        = Z-coordinate (or &le;''-100.0'' for [[02CE|ground z]] + 0.5 units)
: [''flt2'']
+
| p5t        = [''var'']
:: Y-coordinate
+
| p5d        = Variable to store the handle of the pickup
: [''flt3'']
+
}}
:: Z-coordinate
 
  
This opcode spawns a clothing [[0213#Pickup types|type 2]] pickup. Like most pickups, it spins, glows, and can be "picked up" by walking through it. The pickup uses the model <code>clothesp.dff</code> to create the pickup so the model needs to be defined somewhere in an [[IDE]] file for the opcode to work. This pickup is unique for having a text above the pickup. The text depends on its ID. The opcode alone does not let the player change clothes; to change clothes, see [[clothes pickup]] for a code snippet based on the code used in Vice City.
+
This opcode creates a [[0213#Vice City|type 2]] pickup. It uses a model that [[MatchModelString#Vice City|matches the name <code>clothesp</code>]]. The pickup allows text to display above it based on the clothes value, equivalent in effect to opcode [[032B]]. The opcode alone does not let the player change clothes; to change clothes see the [[clothes pickup|code snippet]] based on the code used in Vice City.
  
== Clothing IDs ==
+
{|class="wikitable sortable center-col-1"
{| {{prettytable}}
+
!Value ||[[GXT]] key ||Clothing
! ID
 
! [[GXT]] entry
 
! Clothing
 
 
|-
 
|-
| 1
+
|1 ||OUTFT1 ||Street
| OUTFT1
 
| Street
 
 
|-
 
|-
| 2
+
|2 ||OUTFT2 ||Soiree
| OUTFT2
 
| Soiree
 
 
|-
 
|-
| 3
+
|3 ||OUTFT3 ||Coveralls
| OUTFT3
 
| Coveralls
 
 
|-
 
|-
| 4
+
|4 ||OUTFT4 ||Country Club
| OUTFT4
 
| Country Club
 
 
|-
 
|-
| 5
+
|5 ||OUTFT5 ||Havana
| OUTFT5
 
| Havana
 
 
|-
 
|-
| 6
+
|6 ||OUTFT6 ||Cop
| OUTFT6
 
| Cop
 
 
|-
 
|-
| 7
+
|7 ||OUTFT7 ||Bank Job
| OUTFT7
 
| Bank Job
 
 
|-
 
|-
| 8
+
|8 ||OUTFT8 ||Casual
| OUTFT8
 
| Casual
 
 
|-
 
|-
| 9
+
|9 ||OUTFT9 ||Mr Vercetti
| OUTFT9
 
| Mr Vercetti
 
 
|-
 
|-
| 10
+
|10 ||OUTFT10 ||Tracksuit
| OUTFT10
 
| Tracksuit
 
 
|-
 
|-
| 11
+
|11 ||OUTFT11 ||Tracksuit
| OUTFT11
 
| Tracksuit
 
 
|-
 
|-
| 12
+
|12 ||OUTFT12 ||Frankie
| OUTFT12
 
| Frankie
 
 
|-
 
|-
| 13
+
|13 ||OUTFT13 ||MC Tommy (unused)
| OUTFT13
 
| MC Tommy (unused)
 
 
|}
 
|}
 
== Example ==
 
:''Main page: [[Clothes pickup]]''
 
  
 
== Keywords ==
 
== Keywords ==
pickups, clothes, clothesp
+
create, pickup, clothes, clothesp
 
 
[[Category:OpCodes]]
 

Latest revision as of 11:03, 27 November 2016

055B pickup

Vice City CREATE_CLOTHES_PICKUP


Description
Creates a clothing pickup
Syntax
055B: [var] = create_clothes_pickup [int] at [flt1] [flt2] [flt3]
Parameter
[int]
Clothes value (see below)
[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

This opcode creates a type 2 pickup. It uses a model that matches the name clothesp. The pickup allows text to display above it based on the clothes value, equivalent in effect to opcode 032B. The opcode alone does not let the player change clothes; to change clothes see the code snippet based on the code used in Vice City.

Value GXT key Clothing
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 (unused)

Keywords

create, pickup, clothes, clothesp