diff options
author | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 21:36:53 +0200 |
---|---|---|
committer | eray orçunus <erayorcunus@gmail.com> | 2019-06-30 21:36:53 +0200 |
commit | 99295827f79ccffa9d3976af2b9a19920d7d8bde (patch) | |
tree | e61ef805296e034766fca5e852224c6e522f8854 /src/modelinfo/ModelIndices.h | |
parent | Merge branch 'master' of git://github.com/GTAmodding/re3 into erorcun (diff) | |
parent | Merge pull request #80 from ShFil119/special (diff) | |
download | re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.gz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.bz2 re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.lz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.xz re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.tar.zst re3-99295827f79ccffa9d3976af2b9a19920d7d8bde.zip |
Diffstat (limited to 'src/modelinfo/ModelIndices.h')
-rw-r--r-- | src/modelinfo/ModelIndices.h | 77 |
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; +} |