summaryrefslogtreecommitdiffstats
path: root/src/modelinfo
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-30 21:06:55 +0200
committeraap <aap@papnet.eu>2019-06-30 21:06:55 +0200
commitaf2e764d81d6a5981bab0a0d1fd0c79cf2465f69 (patch)
tree7b3202766bcbe9711d4a0a24952bca3c4e39d6ae /src/modelinfo
parentMerge pull request #79 from Nick007J/master (diff)
downloadre3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.gz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.bz2
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.lz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.xz
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.tar.zst
re3-af2e764d81d6a5981bab0a0d1fd0c79cf2465f69.zip
Diffstat (limited to 'src/modelinfo')
-rw-r--r--src/modelinfo/ModelIndices.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index feafcd40..3a37ac23 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -315,6 +315,21 @@ enum
MI_TOYZ,
MI_GHOST,
+ MI_GRENADE = 170,
+ MI_AK47,
+ MI_BASEBALL_BAT,
+ MI_COLT,
+ MI_MOLOTOV,
+ MI_ROCKETLAUNCHER,
+ MI_SHOTGUN,
+ MI_SNIPER,
+ MI_UZI,
+ MI_MISSILE,
+ MI_M16,
+ MI_FLAMETHROWER,
+ MI_BOMB,
+ MI_FINGERS,
+
MI_CAR_DOOR = 190,
MI_CAR_BUMPER,
MI_CAR_PANEL,
@@ -377,3 +392,65 @@ IsPedModel(int16 id)
{
return id >= 0 && id <= 89;
}
+
+inline bool
+IsTreeModel(int16 id)
+{
+ return id == MI_TREE1 ||
+ id == MI_TREE2 ||
+ id == MI_TREE3 ||
+ id == MI_TREE4 ||
+ id == MI_TREE5 ||
+ id == MI_TREE6 ||
+ id == MI_TREE7 ||
+ id == MI_TREE8 ||
+ id == MI_TREE9 ||
+ id == MI_TREE10 ||
+ id == MI_TREE11 ||
+ id == MI_TREE12 ||
+ id == MI_TREE13 ||
+ id == MI_TREE14;
+}
+
+inline bool
+IsBannerModel(int16 id)
+{
+ return id == MI_CHINABANNER1 ||
+ id == MI_CHINABANNER2 ||
+ id == MI_CHINABANNER3 ||
+ id == MI_CHINABANNER4 ||
+ id == MI_CHINABANNER5 ||
+ id == MI_CHINABANNER6 ||
+ id == MI_CHINABANNER7 ||
+ id == MI_CHINABANNER8 ||
+ id == MI_CHINABANNER9 ||
+ id == MI_CHINABANNER10 ||
+ id == MI_CHINABANNER11 ||
+ id == MI_CHINABANNER12 ||
+ id == MI_ITALYBANNER1 ||
+ id == MI_CHINALANTERN;
+}
+inline bool
+IsPickupModel(int16 id)
+{
+ return id == MI_GRENADE ||
+ id == MI_AK47 ||
+ id == MI_BASEBALL_BAT ||
+ id == MI_COLT ||
+ id == MI_MOLOTOV ||
+ id == MI_ROCKETLAUNCHER ||
+ id == MI_SHOTGUN ||
+ id == MI_SNIPER ||
+ id == MI_UZI ||
+ id == MI_M16 ||
+ id == MI_FLAMETHROWER ||
+ id >= MI_M16 && id <= MI_FLAMETHROWER ||
+ id == MI_PICKUP_ADRENALINE ||
+ id == MI_PICKUP_BODYARMOUR ||
+ id == MI_PICKUP_INFO ||
+ id == MI_PICKUP_HEALTH ||
+ id == MI_PICKUP_BONUS ||
+ id == MI_PICKUP_BRIBE ||
+ id == MI_PICKUP_KILLFRENZY ||
+ id == MI_PICKUP_CAMERA;
+}