2019-10-06 21:39:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-05-05 21:27:43 +00:00
|
|
|
#include "ModelInfo.h"
|
|
|
|
|
2019-05-15 14:52:37 +00:00
|
|
|
#define MODELINDICES \
|
2020-05-19 18:56:42 +00:00
|
|
|
X("fire_hydrant", MI_FIRE_HYDRANT) \
|
|
|
|
X("phonesign", MI_PHONESIGN) \
|
|
|
|
X("noparkingsign1", MI_NOPARKINGSIGN1) \
|
|
|
|
X("bussign1", MI_BUSSIGN1) \
|
|
|
|
X("roadworkbarrier1", MI_ROADWORKBARRIER1) \
|
|
|
|
X("dump1", MI_DUMP1) \
|
|
|
|
X("trafficcone", MI_TRAFFICCONE) \
|
|
|
|
X("newsstand1", MI_NEWSSTAND) \
|
|
|
|
X("postbox1", MI_POSTBOX1) \
|
|
|
|
X("bin1", MI_BIN) \
|
|
|
|
X("wastebin", MI_WASTEBIN) \
|
|
|
|
X("phonebooth1", MI_PHONEBOOTH1) \
|
|
|
|
X("parkingmeter", MI_PARKINGMETER) \
|
|
|
|
X("parkingmeterg", MI_PARKINGMETER2) \
|
|
|
|
X("mall_fans", MI_MALLFAN) \
|
|
|
|
X("htl_fan_rotate_nt", MI_HOTELFAN_NIGHT) \
|
|
|
|
X("htl_fan_rotate_dy", MI_HOTELFAN_DAY) \
|
|
|
|
X("hotroomfan", MI_HOTROOMFAN) \
|
|
|
|
X("trafficlight1", MI_TRAFFICLIGHTS) \
|
|
|
|
X("MTraffic4", MI_TRAFFICLIGHTS_VERTICAL) \
|
|
|
|
X("MTraffic1", MI_TRAFFICLIGHTS_MIAMI) \
|
|
|
|
X("MTraffic2", MI_TRAFFICLIGHTS_TWOVERTICAL) \
|
|
|
|
X("lamppost1", MI_SINGLESTREETLIGHTS1) \
|
|
|
|
X("lamppost2", MI_SINGLESTREETLIGHTS2) \
|
|
|
|
X("lamppost3", MI_SINGLESTREETLIGHTS3) \
|
|
|
|
X("doublestreetlght1", MI_DOUBLESTREETLIGHTS) \
|
|
|
|
X("Streetlamp1", MI_STREETLAMP1) \
|
|
|
|
X("Streetlamp2", MI_STREETLAMP2) \
|
|
|
|
X("veg_tree3", MI_TREE2) \
|
|
|
|
X("veg_treea1", MI_TREE3) \
|
|
|
|
X("veg_treeb1", MI_TREE6) \
|
|
|
|
X("veg_treea3", MI_TREE8) \
|
|
|
|
X("doc_crane_cab", MODELID_CRANE_1) \
|
|
|
|
X("doc_crane_cab01", MODELID_CRANE_2) \
|
|
|
|
X("doc_crane_cab02", MODELID_CRANE_3) \
|
|
|
|
X("doc_crane_cab03", MODELID_CRANE_4) \
|
|
|
|
X("boatcranelg0", MODELID_CRANE_5) \
|
|
|
|
X("LODnetopa0", MODELID_CRANE_6) \
|
|
|
|
X("package1", MI_COLLECTABLE1) \
|
|
|
|
X("Money", MI_MONEY) \
|
|
|
|
X("barrel1", MI_CARMINE) \
|
|
|
|
X("dk_paynspraydoor", MI_GARAGEDOOR2) \
|
|
|
|
X("dk_waretankdoor1", MI_GARAGEDOOR3) \
|
|
|
|
X("hav_garagedoor1", MI_GARAGEDOOR4) \
|
|
|
|
X("hav_garagedoor02", MI_GARAGEDOOR5) \
|
|
|
|
X("hav_garagedoor03", MI_GARAGEDOOR6) \
|
|
|
|
X("hav_garagedoor04", MI_GARAGEDOOR7) \
|
|
|
|
X("lh_showdoor03", MI_GARAGEDOOR9) \
|
|
|
|
X("lh_showdoor1", MI_GARAGEDOOR10) \
|
|
|
|
X("lhtankdoor", MI_GARAGEDOOR11) \
|
|
|
|
X("nbtgardoor", MI_GARAGEDOOR12) \
|
|
|
|
X("dk_camjonesdoor", MI_GARAGEDOOR13) \
|
|
|
|
X("nbtgardoor02", MI_GARAGEDOOR14) \
|
|
|
|
X("dt_savedra", MI_GARAGEDOOR15) \
|
|
|
|
X("dt_savedrb", MI_GARAGEDOOR16) \
|
|
|
|
X("dk_bombdoor", MI_GARAGEDOOR18) \
|
|
|
|
X("haiwshpnsdoor", MI_GARAGEDOOR19) \
|
|
|
|
X("wshpnsdoor", MI_GARAGEDOOR20) \
|
|
|
|
X("nbecpnsdoor", MI_GARAGEDOOR21) \
|
|
|
|
X("nbtgardoor03", MI_GARAGEDOOR22) \
|
|
|
|
X("dt_savedrc", MI_GARAGEDOOR23) \
|
|
|
|
X("dt_savedrd", MI_GARAGEDOOR24) \
|
|
|
|
X("man_frntstepGD", MI_GARAGEDOOR25) \
|
|
|
|
X("svegrgedoor", MI_GARAGEDOOR26) \
|
|
|
|
X("barrel2", MI_NAUTICALMINE) \
|
|
|
|
X("briefcase", MI_BRIEFCASE) \
|
|
|
|
X("wglasssmash", MI_GLASS1) \
|
|
|
|
X("glassfx_composh", MI_GLASS8) \
|
|
|
|
X("barrel4", MI_EXPLODINGBARREL) \
|
|
|
|
X("adrenaline", MI_PICKUP_ADRENALINE) \
|
|
|
|
X("bodyarmour", MI_PICKUP_BODYARMOUR) \
|
|
|
|
X("info", MI_PICKUP_INFO) \
|
|
|
|
X("health", MI_PICKUP_HEALTH) \
|
|
|
|
X("bonus", MI_PICKUP_BONUS) \
|
|
|
|
X("bribe", MI_PICKUP_BRIBE) \
|
|
|
|
X("killfrenzy", MI_PICKUP_KILLFRENZY) \
|
|
|
|
X("camerapickup", MI_PICKUP_CAMERA) \
|
|
|
|
X("bigdollar", MI_PICKUP_REVENUE) \
|
|
|
|
X("pickupsave", MI_PICKUP_SAVEGAME) \
|
|
|
|
X("property_locked", MI_PICKUP_PROPERTY) \
|
|
|
|
X("property_fsale", MI_PICKUP_PROPERTY_FORSALE) \
|
|
|
|
X("clothesp", MI_PICKUP_CLOTHES) \
|
|
|
|
X("bollardlight", MI_BOLLARDLIGHT) \
|
|
|
|
X("bar_barrier10", MI_FENCE) \
|
|
|
|
X("bar_barrier12", MI_FENCE2) \
|
|
|
|
X("petrolpump", MI_PETROLPUMP) \
|
|
|
|
X("washgaspump", MI_PETROLPUMP2) \
|
|
|
|
X("bouy", MI_BUOY) \
|
|
|
|
X("parktable1", MI_PARKTABLE) \
|
|
|
|
X("lamppost1", MI_LAMPPOST1) \
|
|
|
|
X("veg_palm04", MI_VEG_PALM01) \
|
|
|
|
X("veg_palwee02", MI_VEG_PALM02) \
|
|
|
|
X("veg_palmkbb11", MI_VEG_PALM03) \
|
|
|
|
X("veg_palmkb4", MI_VEG_PALM04) \
|
|
|
|
X("veg_palm02", MI_VEG_PALM05) \
|
|
|
|
X("veg_palmkb3", MI_VEG_PALM06) \
|
|
|
|
X("veg_palmbig14", MI_VEG_PALM07) \
|
|
|
|
X("veg_palm01", MI_VEG_PALM08) \
|
|
|
|
X("mlamppost", MI_MLAMPPOST) \
|
|
|
|
X("roadworkbarrier1", MI_BARRIER1) \
|
|
|
|
X("littleha_police", MI_LITTLEHA_POLICE) \
|
|
|
|
X("telgrphpole02", MI_TELPOLE02) \
|
|
|
|
X("trafficlight1", MI_TRAFFICLIGHT01) \
|
|
|
|
X("parkbench1", MI_PARKBENCH) \
|
|
|
|
X("plc_stinger", MI_PLC_STINGER) \
|
|
|
|
X("od_lightbeam", MI_LIGHTBEAM) \
|
|
|
|
X("ap_radar1_01", MI_AIRPORTRADAR) \
|
|
|
|
X("rcbomb", MI_RCBOMB) \
|
|
|
|
X("beachball", MI_BEACHBALL) \
|
|
|
|
X("sandcastle1", MI_SANDCASTLE1) \
|
|
|
|
X("sandcastle2", MI_SANDCASTLE2) \
|
|
|
|
X("jellyfish", MI_JELLYFISH) \
|
|
|
|
X("jellyfish01", MI_JELLYFISH01) \
|
|
|
|
X("fish1single", MI_FISH1SINGLE) \
|
|
|
|
X("fish1s", MI_FISH1S) \
|
|
|
|
X("fish2single", MI_FISH2SINGLE) \
|
|
|
|
X("fish2s", MI_FISH2S) \
|
|
|
|
X("fish3single", MI_FISH3SINGLE) \
|
|
|
|
X("fish3s", MI_FISH3S) \
|
|
|
|
X("turtle", MI_TURTLE) \
|
|
|
|
X("dolphin", MI_DOLPHIN) \
|
|
|
|
X("shark", MI_SHARK) \
|
|
|
|
X("submarine", MI_SUBMARINE) \
|
|
|
|
X("Esc_step", MI_ESCALATORSTEP) \
|
|
|
|
X("lounge_wood_up", MI_LOUNGE_WOOD_UP) \
|
|
|
|
X("lounge_towel_up", MI_LOUNGE_TOWEL_UP) \
|
|
|
|
X("lounge_wood_dn", MI_LOUNGE_WOOD_DN) \
|
|
|
|
X("lotion", MI_LOTION) \
|
|
|
|
X("beachtowel01", MI_BEACHTOWEL01) \
|
|
|
|
X("beachtowel02", MI_BEACHTOWEL02) \
|
|
|
|
X("beachtowel03", MI_BEACHTOWEL03) \
|
|
|
|
X("beachtowel04", MI_BEACHTOWEL04) \
|
|
|
|
X("blimp_night", MI_BLIMP_NIGHT) \
|
|
|
|
X("blimp_day", MI_BLIMP_DAY) \
|
|
|
|
X("yt_main_body", MI_YT_MAIN_BODY) \
|
|
|
|
X("yt_main_body2", MI_YT_MAIN_BODY2)
|
2019-05-15 14:52:37 +00:00
|
|
|
|
2020-05-19 18:56:42 +00:00
|
|
|
#define X(name, var) extern int16 var;
|
2019-05-15 14:52:37 +00:00
|
|
|
MODELINDICES
|
|
|
|
#undef X
|
|
|
|
|
|
|
|
// and some hardcoded ones
|
|
|
|
// expand as needed
|
|
|
|
enum
|
|
|
|
{
|
2019-07-09 20:38:05 +00:00
|
|
|
MI_PLAYER = 0,
|
|
|
|
MI_COP,
|
2019-05-15 14:52:37 +00:00
|
|
|
MI_SWAT,
|
|
|
|
MI_FBI,
|
|
|
|
MI_ARMY,
|
|
|
|
MI_MEDIC,
|
|
|
|
MI_FIREMAN,
|
|
|
|
MI_MALE01,
|
2020-05-09 15:05:26 +00:00
|
|
|
|
|
|
|
MI_TAXI_D = 28, // HMOCA
|
2020-05-16 14:00:40 +00:00
|
|
|
|
|
|
|
MI_WFOGO = 63,
|
|
|
|
MI_WMOGO = 64,
|
|
|
|
|
|
|
|
MI_CBA = 83,
|
|
|
|
MI_CBB,
|
|
|
|
MI_HNA,
|
|
|
|
MI_HNB,
|
|
|
|
MI_SGA,
|
|
|
|
MI_SGB,
|
|
|
|
MI_CLA,
|
|
|
|
MI_CLB,
|
|
|
|
MI_GDA,
|
|
|
|
MI_GDB,
|
|
|
|
MI_BKA,
|
|
|
|
MI_BKB,
|
|
|
|
MI_PGA,
|
|
|
|
MI_PGB,
|
|
|
|
MI_VICE1,
|
2020-05-10 09:25:30 +00:00
|
|
|
MI_VICE2,
|
|
|
|
MI_VICE3,
|
|
|
|
MI_VICE4,
|
|
|
|
MI_VICE5,
|
|
|
|
MI_VICE6,
|
|
|
|
MI_VICE7,
|
|
|
|
MI_VICE8,
|
2020-05-09 15:05:26 +00:00
|
|
|
MI_WFYG2 = 106, // last regular ped
|
|
|
|
MI_SPECIAL01 = 109,
|
|
|
|
MI_SPECIAL21 = 129,
|
2019-07-05 12:23:39 +00:00
|
|
|
|
2020-05-19 18:56:42 +00:00
|
|
|
MI_LAST_PED = MI_SPECIAL21,
|
|
|
|
MI_FIRST_VEHICLE,
|
|
|
|
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_LANDSTAL = MI_FIRST_VEHICLE,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_IDAHO,
|
|
|
|
MI_STINGER,
|
|
|
|
MI_LINERUN,
|
|
|
|
MI_PEREN,
|
|
|
|
MI_SENTINEL,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_RIO,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_FIRETRUCK,
|
|
|
|
MI_TRASH,
|
|
|
|
MI_STRETCH,
|
|
|
|
MI_MANANA,
|
|
|
|
MI_INFERNUS,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_VOODOO,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_PONY,
|
|
|
|
MI_MULE,
|
|
|
|
MI_CHEETAH,
|
|
|
|
MI_AMBULAN,
|
|
|
|
MI_FBICAR,
|
|
|
|
MI_MOONBEAM,
|
|
|
|
MI_ESPERANT,
|
|
|
|
MI_TAXI,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_WASHING,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_BOBCAT,
|
|
|
|
MI_MRWHOOP,
|
|
|
|
MI_BFINJECT,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_HUNTER,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_POLICE,
|
|
|
|
MI_ENFORCER,
|
|
|
|
MI_SECURICA,
|
|
|
|
MI_BANSHEE,
|
|
|
|
MI_PREDATOR,
|
|
|
|
MI_BUS,
|
|
|
|
MI_RHINO,
|
|
|
|
MI_BARRACKS,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_CUBAN,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_CHOPPER,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_ANGEL,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_COACH,
|
|
|
|
MI_CABBIE,
|
|
|
|
MI_STALLION,
|
|
|
|
MI_RUMPO,
|
|
|
|
MI_RCBANDIT,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_ROMERO,
|
|
|
|
MI_PACKER,
|
|
|
|
MI_SENTXS,
|
|
|
|
MI_ADMIRAL,
|
|
|
|
MI_SQUALO,
|
|
|
|
MI_SEASPAR,
|
|
|
|
MI_PIZZABOY,
|
|
|
|
MI_GANGBUR,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_AIRTRAIN,
|
|
|
|
MI_DEADDODO,
|
|
|
|
MI_SPEEDER,
|
|
|
|
MI_REEFER,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_TROPIC,
|
2019-06-15 22:20:55 +00:00
|
|
|
MI_FLATBED,
|
|
|
|
MI_YANKEE,
|
2020-05-07 09:33:20 +00:00
|
|
|
MI_CADDY,
|
|
|
|
MI_ZEBRA,
|
|
|
|
MI_TOPFUN,
|
|
|
|
MI_SKIMMER,
|
|
|
|
MI_PCJ600,
|
|
|
|
MI_FAGGIO,
|
|
|
|
MI_FREEWAY,
|
|
|
|
MI_RCBARON,
|
|
|
|
MI_RCRAIDER,
|
|
|
|
MI_GLENDALE,
|
|
|
|
MI_OCEANIC,
|
|
|
|
MI_SANCHEZ,
|
|
|
|
MI_SPARROW,
|
|
|
|
MI_PATRIOT,
|
|
|
|
MI_LOVEFIST,
|
|
|
|
MI_COASTG,
|
|
|
|
MI_DINGHY,
|
|
|
|
MI_HERMES,
|
|
|
|
MI_SABRE,
|
|
|
|
MI_SABRETUR,
|
|
|
|
MI_PHEONIX,
|
|
|
|
MI_WALTON,
|
|
|
|
MI_REGINA,
|
|
|
|
MI_COMET,
|
|
|
|
MI_DELUXO,
|
|
|
|
MI_BURRITO,
|
|
|
|
MI_SPAND,
|
|
|
|
MI_MARQUIS,
|
|
|
|
MI_BAGGAGE,
|
|
|
|
MI_KAUFMAN,
|
|
|
|
MI_MAVERICK,
|
|
|
|
MI_VCNMAV,
|
|
|
|
MI_RANCHER,
|
|
|
|
MI_FBIRANCH,
|
|
|
|
MI_VIRGO,
|
|
|
|
MI_GREENWOO,
|
|
|
|
MI_JETMAX,
|
|
|
|
MI_HOTRING,
|
|
|
|
MI_SANDKING,
|
|
|
|
MI_BLISTAC,
|
|
|
|
MI_POLMAV,
|
|
|
|
MI_BOXVILLE,
|
|
|
|
MI_BENSON,
|
|
|
|
MI_MESA,
|
|
|
|
MI_RCGOBLIN,
|
|
|
|
MI_HOTRINA,
|
|
|
|
MI_HOTRINB,
|
|
|
|
MI_BLOODRA,
|
|
|
|
MI_BLOODRB,
|
|
|
|
MI_VICECHEE,
|
|
|
|
// HACK
|
|
|
|
MI_TRAIN = -1,
|
|
|
|
MI_DODO = -2,
|
2019-07-17 21:58:06 +00:00
|
|
|
|
2020-05-19 14:39:19 +00:00
|
|
|
MI_NIGHTSTICK = 262,
|
2020-05-15 14:30:25 +00:00
|
|
|
MI_BASEBALL_BAT = 264,
|
|
|
|
MI_GRENADE = 270,
|
|
|
|
MI_MOLOTOV = 272,
|
|
|
|
MI_MISSILE = 273,
|
|
|
|
MI_COLT = 274,
|
|
|
|
MI_AK47 = 276,
|
|
|
|
MI_SHOTGUN = 279,
|
|
|
|
MI_M16 = 280,
|
2020-05-17 17:36:48 +00:00
|
|
|
MI_TEC9 = 281,
|
2020-05-15 14:30:25 +00:00
|
|
|
MI_UZI = 282,
|
2020-05-17 17:36:48 +00:00
|
|
|
MI_SILENCEDINGRAM = 283,
|
2020-05-15 14:30:25 +00:00
|
|
|
MI_MP5 = 284,
|
|
|
|
MI_SNIPER = 285,
|
|
|
|
MI_ROCKETLAUNCHER = 287,
|
|
|
|
MI_FLAMETHROWER = 288,
|
|
|
|
MI_BOMB = 291,
|
|
|
|
MI_FINGERS = 293,
|
2019-06-30 19:06:55 +00:00
|
|
|
|
2020-05-06 21:39:38 +00:00
|
|
|
MI_CUTOBJ01 = 295,
|
2019-07-03 22:16:24 +00:00
|
|
|
MI_CUTOBJ02,
|
|
|
|
MI_CUTOBJ03,
|
|
|
|
MI_CUTOBJ04,
|
|
|
|
MI_CUTOBJ05,
|
|
|
|
|
2020-05-06 21:39:38 +00:00
|
|
|
MI_CAR_DOOR = 240,
|
2019-05-17 12:08:18 +00:00
|
|
|
MI_CAR_BUMPER,
|
|
|
|
MI_CAR_PANEL,
|
|
|
|
MI_CAR_BONNET,
|
|
|
|
MI_CAR_BOOT,
|
2019-06-17 08:30:02 +00:00
|
|
|
MI_CAR_WHEEL,
|
2019-05-17 12:08:18 +00:00
|
|
|
MI_BODYPARTA,
|
|
|
|
MI_BODYPARTB,
|
2019-06-17 08:30:02 +00:00
|
|
|
|
2020-05-06 21:39:38 +00:00
|
|
|
MI_AIRTRAIN_VLO = 257,
|
2019-10-06 21:39:25 +00:00
|
|
|
|
2020-05-19 18:56:42 +00:00
|
|
|
NUM_DEFAULT_MODELS = 300
|
2019-05-15 14:52:37 +00:00
|
|
|
};
|
|
|
|
|
2019-07-03 22:16:24 +00:00
|
|
|
enum{
|
|
|
|
NUM_OF_SPECIAL_CHARS = 4,
|
|
|
|
NUM_OF_CUTSCENE_OBJECTS = 5
|
|
|
|
};
|
|
|
|
|
2019-05-15 14:52:37 +00:00
|
|
|
void InitModelIndices(void);
|
|
|
|
void MatchModelString(const char *name, int16 id);
|
2019-10-26 18:25:45 +00:00
|
|
|
void TestModelIndices(void);
|
2019-05-15 14:52:37 +00:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsGlass(int16 id)
|
|
|
|
{
|
2020-05-05 21:27:43 +00:00
|
|
|
CSimpleModelInfo *mi = (CSimpleModelInfo*)CModelInfo::GetModelInfo(id);
|
2020-05-06 19:54:43 +00:00
|
|
|
return mi->IsBuilding() && (mi->m_isCodeGlass || mi->m_isArtistGlass);
|
2019-05-15 14:52:37 +00:00
|
|
|
}
|
2019-05-17 12:08:18 +00:00
|
|
|
|
|
|
|
inline bool
|
2020-05-20 17:10:05 +00:00
|
|
|
IsTrafficLight(int16 id)
|
2019-05-17 12:08:18 +00:00
|
|
|
{
|
2020-05-20 17:10:05 +00:00
|
|
|
return id == MI_TRAFFICLIGHTS ||
|
|
|
|
id == MI_TRAFFICLIGHTS_VERTICAL ||
|
|
|
|
id == MI_TRAFFICLIGHTS_MIAMI ||
|
|
|
|
id == MI_TRAFFICLIGHTS_TWOVERTICAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsLightWithoutShift(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_TRAFFICLIGHTS ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS1 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS2 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS3 ||
|
|
|
|
id == MI_DOUBLESTREETLIGHTS;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsLightWithPreRenderEffects(int16 id)
|
|
|
|
{
|
|
|
|
return IsTrafficLight(id) ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS1 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS2 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS3 ||
|
|
|
|
id == MI_DOUBLESTREETLIGHTS;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsLightThatNeedsRepositioning(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_SINGLESTREETLIGHTS1 ||
|
2019-05-17 12:08:18 +00:00
|
|
|
id == MI_SINGLESTREETLIGHTS2 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS3 ||
|
2020-05-19 18:56:42 +00:00
|
|
|
id == MI_TRAFFICLIGHTS_MIAMI ||
|
|
|
|
id == MI_TRAFFICLIGHTS_TWOVERTICAL ||
|
|
|
|
id == MI_MLAMPPOST ||
|
|
|
|
id == MI_STREETLAMP1 ||
|
|
|
|
id == MI_STREETLAMP2;
|
2019-05-17 12:08:18 +00:00
|
|
|
}
|
|
|
|
|
2020-05-22 12:27:16 +00:00
|
|
|
inline bool
|
|
|
|
IsLightObject(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_TRAFFICLIGHTS_MIAMI ||
|
|
|
|
id == MI_MLAMPPOST ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS1 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS2 ||
|
|
|
|
id == MI_SINGLESTREETLIGHTS3 ||
|
|
|
|
id == MI_DOUBLESTREETLIGHTS ||
|
|
|
|
id == MI_TRAFFICLIGHTS_TWOVERTICAL;
|
|
|
|
}
|
|
|
|
|
2019-05-17 12:08:18 +00:00
|
|
|
inline bool
|
|
|
|
IsBodyPart(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_BODYPARTA || id == MI_BODYPARTB;
|
|
|
|
}
|
2019-05-19 19:28:10 +00:00
|
|
|
|
|
|
|
inline bool
|
2020-05-19 18:56:42 +00:00
|
|
|
IsPedModel(int16 id)
|
2019-05-19 19:28:10 +00:00
|
|
|
{
|
2020-05-19 18:56:42 +00:00
|
|
|
return id >= MI_PLAYER && id <= MI_LAST_PED;
|
2019-05-19 19:28:10 +00:00
|
|
|
}
|
2019-06-12 19:17:02 +00:00
|
|
|
inline bool
|
2020-05-19 18:56:42 +00:00
|
|
|
IsPalmTreeModel(int16 id)
|
2019-06-12 19:17:02 +00:00
|
|
|
{
|
2020-05-19 18:56:42 +00:00
|
|
|
return id == MI_VEG_PALM01 ||
|
|
|
|
id == MI_VEG_PALM02 ||
|
|
|
|
id == MI_VEG_PALM03 ||
|
|
|
|
id == MI_VEG_PALM04 ||
|
|
|
|
id == MI_VEG_PALM05 ||
|
|
|
|
id == MI_VEG_PALM06 ||
|
|
|
|
id == MI_VEG_PALM07 ||
|
|
|
|
id == MI_VEG_PALM08;
|
2019-06-12 19:17:02 +00:00
|
|
|
}
|
2019-06-30 19:06:55 +00:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsTreeModel(int16 id)
|
|
|
|
{
|
2020-05-19 18:56:42 +00:00
|
|
|
return id == MI_TREE2 ||
|
2019-06-30 19:06:55 +00:00
|
|
|
id == MI_TREE3 ||
|
|
|
|
id == MI_TREE6 ||
|
|
|
|
id == MI_TREE8 ||
|
2020-05-19 18:56:42 +00:00
|
|
|
IsPalmTreeModel(id);
|
2019-06-30 19:06:55 +00:00
|
|
|
}
|
2019-07-12 16:01:22 +00:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsPolicePedModel(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_COP ||
|
|
|
|
id == MI_SWAT ||
|
|
|
|
id == MI_FBI ||
|
|
|
|
id == MI_ARMY;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsPoliceVehicleModel(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_CHOPPER ||
|
|
|
|
id == MI_PREDATOR ||
|
|
|
|
id == MI_POLICE ||
|
|
|
|
id == MI_ENFORCER;
|
|
|
|
}
|
2020-04-15 05:03:53 +00:00
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsExplosiveThingModel(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_EXPLODINGBARREL ||
|
2020-05-22 12:27:16 +00:00
|
|
|
id == MI_PETROLPUMP ||
|
|
|
|
id == MI_PETROLPUMP2;
|
2020-04-16 22:20:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsFence(int16 id)
|
|
|
|
{
|
|
|
|
return id == MI_FENCE ||
|
|
|
|
id == MI_FENCE2;
|
2020-04-15 05:03:53 +00:00
|
|
|
}
|