summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelIndices.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-07-12 18:01:22 +0200
committeraap <aap@papnet.eu>2019-07-12 18:01:22 +0200
commit60711154baf5477d6f4c12add1ecdd0a24c0c116 (patch)
tree460199051422d03a6a70a1e57f9c8d2d588c85b6 /src/modelinfo/ModelIndices.h
parentCAutomobile::ProcessControlInputs (diff)
downloadre3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar.gz
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar.bz2
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar.lz
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar.xz
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.tar.zst
re3-60711154baf5477d6f4c12add1ecdd0a24c0c116.zip
Diffstat (limited to '')
-rw-r--r--src/modelinfo/ModelIndices.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index 0d9ffb53..135f3424 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -465,3 +465,21 @@ IsPickupModel(int16 id)
id == MI_PICKUP_KILLFRENZY ||
id == MI_PICKUP_CAMERA;
}
+
+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;
+}