summaryrefslogtreecommitdiffstats
path: root/src/modelinfo/ModelIndices.h
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-20 22:54:22 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-05-20 22:54:22 +0200
commit510261cb058d00bc0388ad58a33b173e5b1536ac (patch)
tree2aa795fe25f5d3bc4fa22d93f7a966838e50b3b5 /src/modelinfo/ModelIndices.h
parentscript revision (diff)
parentPickup and audio fix (diff)
downloadre3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar.gz
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar.bz2
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar.lz
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar.xz
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.tar.zst
re3-510261cb058d00bc0388ad58a33b173e5b1536ac.zip
Diffstat (limited to 'src/modelinfo/ModelIndices.h')
-rw-r--r--src/modelinfo/ModelIndices.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h
index 1d70be3d..b8c6964a 100644
--- a/src/modelinfo/ModelIndices.h
+++ b/src/modelinfo/ModelIndices.h
@@ -358,9 +358,38 @@ IsGlass(int16 id)
}
inline bool
-IsStreetLight(int16 id)
+IsTrafficLight(int16 id)
{
- return id == MI_SINGLESTREETLIGHTS1 ||
+ 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 ||
id == MI_SINGLESTREETLIGHTS2 ||
id == MI_SINGLESTREETLIGHTS3 ||
id == MI_TRAFFICLIGHTS_MIAMI ||