Difference between revisions of "MatchModelString"

From GTAMods Wiki
Jump to navigation Jump to search
(variable names)
m (Spaceeinstein moved page Model index to MatchModelString without leaving a redirect)
(No difference)

Revision as of 22:55, 20 November 2016

GTA III and Vice City use index matching to match a map model name with its index. The games look through the index to perform addition actions on the model. The following tables are ordered based the models' appearance in the MatchModelString function.

GTA III

Vice City

The function is at memory address 0x4A75DD in v1.0 US.

Model name Address Variable name Properties
fire_hydrant 0x68E8A4 MI_FIRE_HYDRANT
  • Trigger fire hydrant water after collision
  • Trigger fire hydrant water after destruction
  • Reposition object
phonesign 0x68E8A0 MI_PHONESIGN
  • Reposition object
noparkingsign1 0x68E89C MI_NOPARKINGSIGN1
  • Reposition object
bussign1 0x68E898 MI_BUSSIGN1
  • Reposition object
roadworkbarrier1 0x68E894 MI_ROADWORKBARRIER1
  • Creation of roadblocks
  • Reposition object
dump1 0x68E890 MI_DUMP1
  • Reposition object
trafficcone 0x68E88C MI_TRAFFICCONE
  • Reposition object
newsstand1 0x68E888 MI_NEWSSTAND
  • Reposition object
postbox1 0x68E884 MI_POSTBOX1
  • Reposition object
bin1 0x68E880 MI_BIN
  • Reposition object
wastebin 0x68E87C MI_WASTEBIN
  • Reposition object
phonebooth1 0x68E878 MI_PHONEBOOTH1
parkingmeter 0x68E860 MI_PARKINGMETER
  • Trigger cash pickups after collision
  • Reposition object
parkingmeterg 0x68E864 MI_PARKINGMETER2
  • Trigger cash pickups after collision
  • Reposition object
mall_fans 0x68E868 MI_MALLFAN
  • Rotating fan object
htl_fan_rotate_nt 0x68E86C MI_HOTELFAN_NIGHT
  • Rotating fan object
htl_fan_rotate_dy 0x68E870 MI_HOTELFAN_DAY
  • Rotating fan object
hotroomfan 0x68E874 MI_HOTROOMFAN
  • Rotating fan object
trafficlight1 0x68E810 MI_TRAFFICLIGHTS
  • Traffic light behavior
MTraffic4 0x68E814 MI_TRAFFICLIGHTS_VERTICAL
  • Traffic light behavior
  • Shadow for pole
MTraffic1 0x68E818 MI_TRAFFICLIGHTS_MIAMI
  • Traffic light behavior
  • Shadow for pole
  • Reposition object
MTraffic2 0x68E81C MI_TRAFFICLIGHTS_TWOVERTICAL
  • Traffic light behavior
  • Shadow for pole
  • Reposition object
lamppost1 0x68E820 MI_SINGLESTREETLIGHTS1
  • Shadow for pole
  • Reposition object
lamppost2 0x68E824 MI_SINGLESTREETLIGHTS2
  • Shadow for pole
  • Reposition object
lamppost3 0x68E828 MI_SINGLESTREETLIGHTS3
  • Shadow for pole
  • Reposition object
doublestreetlght1 0x68E82C MI_DOUBLESTREETLIGHTS
  • Shadow for pole
Streetlamp1 0x68E830 MI_STREETLAMP1
  • Reposition object
Streetlamp2 0x68E834 MI_STREETLAMP2
  • Reposition object
veg_tree3 0x68E838 MI_TREE2
  • Swaying vegetation
veg_treea1 0x68E83C MI_TREE3
  • Swaying vegetation
veg_treeb1 0x68E840 MI_TREE6
  • Swaying vegetation
veg_treea3 0x68E844 MI_TREE8
  • Swaying vegetation
doc_crane_cab0 0x68E848 MODELID_CRANE_1
doc_crane_cab01 0x68E84C MODELID_CRANE_2
doc_crane_cab02 0x68E850 MODELID_CRANE_3
doc_crane_cab03 0x68E854 MODELID_CRANE_4
boatcranelg0 0x68E858 MODELID_CRANE_5
LODnetopa0 0x68E85C MODELID_CRANE_6
package1 0x68E8A8 MI_COLLECTABLE1
  • Opcode 02EC
  • Collectable effects like corona and light glow
Money 0x68E8AC MI_MONEY
  • Parking meter collision
  • Dead ped money drops
  • Opcode 02E1
  • Money effects like corona and light glow
barrel1 0x68E8B0 MI_CARMINE
  • Mine effects like corona and light glow
dk_paynspraydoor 0x68E8B4 MI_GARAGEDOOR2
dk_waretankdoor1 0x68E8B8 MI_GARAGEDOOR3
hav_garagedoor1 0x68E8BC MI_GARAGEDOOR4
hav_garagedoor02 0x68E8C0 MI_GARAGEDOOR5
hav_garagedoor03 0x68E8C4 MI_GARAGEDOOR6
hav_garagedoor04 0x68E8C8 MI_GARAGEDOOR7
lh_showdoor03 0x68E8CC MI_GARAGEDOOR9
lh_showdoor1 0x68E8D0 MI_GARAGEDOOR10
lhtankdoor 0x68E8D4 MI_GARAGEDOOR11
nbtgardoor 0x68E8D8 MI_GARAGEDOOR12
dk_camjonesdoor 0x68E8DC MI_GARAGEDOOR13
nbtgardoor02 0x68E8E0 MI_GARAGEDOOR14
dt_savedra 0x68E8E4 MI_GARAGEDOOR15
dt_savedrb 0x68E8E8 MI_GARAGEDOOR16
dk_bombdoor 0x68E8EC MI_GARAGEDOOR18
haiwshpnsdoor 0x68E8F0 MI_GARAGEDOOR19
wshpnsdoor 0x68E8F4 MI_GARAGEDOOR20
nbecpnsdoor 0x68E8F8 MI_GARAGEDOOR21
nbtgardoor03 0x68E8FC MI_GARAGEDOOR22
dt_savedrc 0x68E900 MI_GARAGEDOOR23
dt_savedrd 0x68E904 MI_GARAGEDOOR24
man_frntstepGD 0x68E908 MI_GARAGEDOOR25
svegrgedoor 0x68E90C MI_GARAGEDOOR26
barrel2 0x68E910 MI_NAUTICALMINE
  • Mine effects like corona and light glow
briefcase 0x68E914 MI_BRIEFCASE
  • Briefcase effects (borrowed from mine effects) like corona and light glow
wglasssmash 0x68E918 MI_GLASS1
glassfx_composh 0x68E91C MI_GLASS8
barrel4 0x68E920 MI_EXPLODINGBARREL
  • Trigger explosion after bullet hit
  • Disappears when destroyed
adrenaline 0x68E924 MI_PICKUP_ADRENALINE
  • Pickup cost
  • Adrenaline effect and pickup sound
  • Pickup corona
bodyarmour 0x68E928 MI_PICKUP_BODYARMOUR
  • Pickup cost
  • Armor effect and pickup sound
  • Pickup corona
info 0x68E92C MI_PICKUP_INFO
  • Pickup corona
health 0x68E930 MI_PICKUP_HEALTH
  • Pickup cost
  • Health effect and pickup sound
  • Pickup corona
bonus 0x68E934 MI_PICKUP_BONUS
  • Pickup sound
  • Pickup corona
  • Floating text
bribe 0x68E938 MI_PICKUP_BRIBE
  • Bribe effect and pickup sound
  • Pickup corona
killfrenzy 0x68E93C MI_PICKUP_KILLFRENZY
  • Pickup sound
  • Pickup corona
camerapickup 0x68E940 MI_PICKUP_CAMERA
  • Pickup corona
  • Special pickup behavior
bigdollar 0x68E944 MI_PICKUP_REVENUE
  • Pickup corona
pickupsave 0x68E948 MI_PICKUP_SAVEGAME
  • Pickup corona
property_locked 0x68E94C MI_PICKUP_PROPERTY
  • Pickup corona
  • Shakes pad
  • Opcode 0517
property_fsale 0x68E950 MI_PICKUP_PROPERTY_FORSALE
  • Pickup corona
  • Shakes pad
  • Opcode 0518
clothesp 0x68E954 MI_PICKUP_CLOTHES
  • Pickup corona
  • Opcode 055B
  • Floating text
bollardlight 0x68E958 MI_BOLLARDLIGHT
  • Reposition object
bar_barrier10 0x68E95C MI_FENCE
bar_barrier12 0x68E960 MI_FENCE2
petrolpump 0x68E964 MI_PETROLPUMP
  • Trigger explosion after bullet hit
  • Disappears when destroyed
washgaspump 0x68E968 MI_PETROLPUMP2
  • Trigger explosion after bullet hit
  • Disappears when destroyed
bouy 0x68E96C MI_BUOY
parktable1 0x68E970 MI_PARKTABLE
  • Reposition object
lamppost1 0x68E974 MI_LAMPPOST1

duplicate entry

veg_palm04 0x68E978 MI_VEG_PALM01
  • Swaying vegetation
  • Additional sway
veg_palwee02 0x68E97C MI_VEG_PALM02
  • Swaying vegetation
  • Additional sway
veg_palmkbb11 0x68E980 MI_VEG_PALM03
  • Swaying vegetation
  • Additional sway
veg_palmkb4 0x68E984 MI_VEG_PALM04
  • Swaying vegetation
  • Additional sway
veg_palm02 0x68E988 MI_VEG_PALM05
  • Swaying vegetation
  • Additional sway
veg_palmkb3 0x68E98C MI_VEG_PALM06
  • Swaying vegetation
  • Additional sway
veg_palmbig14 0x68E990 MI_VEG_PALM07
  • Swaying vegetation
  • Additional sway
veg_palm01 0x68E994 MI_VEG_PALM08
  • Swaying vegetation
  • Additional sway
mlamppost 0x68E998 MI_MLAMPPOST
  • Reposition object
roadworkbarrier1 0x68E99C MI_BARRIER1

duplicate entry

littleha_police 0x68E9A0 MI_LITTLEHA_POLICE
telgrphpole02 0x68E9A4 MI_TELPOLE02
  • Reposition object
trafficlight1 0x68E9A8 MI_TRAFFICLIGHT01
  • Traffic lights
  • Shadow for pole
parkbench1 0x68E9AC MI_PARKBENCH
  • Reposition object
Money 0x68E8AC MI_MONEY

duplicate entry

plc_stinger 0x68E9B0 MI_PLC_STINGER
  • Police stinger deployment
od_lightbeam 0x68E9B4 MI_LIGHTBEAM
  • Rotating light beam object
ap_radar1_01 0x68E9B8 MI_AIRPORTRADAR
  • Rotating surveillance radar object
rcbomb 0x68E9BC MI_RCBOMB
  • RC bomb behavior (i.e. force is always applied downwards)
beachball 0x68E9C0 MI_BEACHBALL
  • Ground shadow
  • Beach ball behavior
  • Beach stuff[1]
sandcastle1 0x68E9C4 MI_SANDCASTLE1
sandcastle2 0x68E9C8 MI_SANDCASTLE2
jellyfish 0x68E9CC MI_JELLYFISH
  • Aquatic life
jellyfish01 0x68E9D0 MI_JELLYFISH01
  • Aquatic life
fish1single 0x68E9D4 MI_FISH1SINGLE
  • Aquatic life
fish1s 0x68E9D8 MI_FISH1S

unused?

fish2single 0x68E9DC MI_FISH2SINGLE
  • Aquatic life
fish2s 0x68E9E0 MI_FISH2S
  • Aquatic life
fish3single 0x68E9E4 MI_FISH3SINGLE
  • Aquatic life
fish3s 0x68E9E8 MI_FISH3S
  • Aquatic life
turtle 0x68E9EC MI_TURTLE
  • Aquatic life
dolphin 0x68E9F0 MI_DOLPHIN
  • Aquatic life
shark 0x68E9F4 MI_SHARK
  • Aquatic life
submarine 0x68E9F8 MI_SUBMARINE
Esc_step 0x68E9FC MI_ESCALATORSTEP
  • Escalators
lounge_wood_up 0x68EA00 MI_LOUNGE_WOOD_UP
lounge_towel_up 0x68EA04 MI_LOUNGE_TOWEL_UP
lounge_wood_dn 0x68EA08 MI_LOUNGE_WOOD_DN
lotion 0x68EA0C MI_LOTION
  • Beach stuff
beachtowel01 0x68EA10 MI_BEACHTOWEL01
  • Beach stuff
beachtowel02 0x68EA14 MI_BEACHTOWEL02
  • Beach stuff
beachtowel03 0x68EA18 MI_BEACHTOWEL03
  • Beach stuff
beachtowel04 0x68EA1C MI_BEACHTOWEL04
  • Beach stuff
blimp_night 0x68EA20 MI_BLIMP_NIGHT
  • Rotating blimp object
blimp_day 0x68EA24 MI_BLIMP_DAY
  • Rotating blimp object
yt_main_body 0x68EA28 MI_YT_MAIN_BODY
  • Generate water particles
yt_main_body2 0x68EA2C MI_YT_MAIN_BODY2
  • Generate water particles

Reference

^ Post.png GTAForums: Information on beach stuff