summaryrefslogtreecommitdiffstats
path: root/src/control/Script.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-11-24 01:15:57 +0100
committerSergeanur <s.anureev@yandex.ua>2020-11-24 11:58:11 +0100
commitbd3d09fef53680389bd6ef856eb0669e31fba1d7 (patch)
tree5a5c8b6138dd41f2179e401504021339fb31dfd4 /src/control/Script.h
parentAdd some TODO stubs for unused code to be reversed (diff)
downloadre3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar.gz
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar.bz2
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar.lz
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar.xz
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.tar.zst
re3-bd3d09fef53680389bd6ef856eb0669e31fba1d7.zip
Diffstat (limited to 'src/control/Script.h')
-rw-r--r--src/control/Script.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/control/Script.h b/src/control/Script.h
index c9e92129..12f3233f 100644
--- a/src/control/Script.h
+++ b/src/control/Script.h
@@ -13,6 +13,29 @@ class CPlayerInfo;
class CRunningScript;
+extern int32 ScriptParams[32];
+
+void FlushLog();
+#define script_assert(_Expression) FlushLog(); assert(_Expression);
+
+#define PICKUP_PLACEMENT_OFFSET 0.5f
+#define PED_FIND_Z_OFFSET 5.0f
+
+#define SPHERE_MARKER_R 0
+#define SPHERE_MARKER_G 128
+#define SPHERE_MARKER_B 255
+#define SPHERE_MARKER_A 128
+#define SPHERE_MARKER_PULSE_PERIOD 2048
+#define SPHERE_MARKER_PULSE_FRACTION 0.1f
+
+#ifdef USE_PRECISE_MEASUREMENT_CONVERTION
+#define METERS_IN_FOOT 0.3048f
+#define FEET_IN_METER 3.28084f
+#else
+#define METERS_IN_FOOT 0.3f
+#define FEET_IN_METER 3.33f
+#endif
+
#define KEY_LENGTH_IN_SCRIPT 8
struct intro_script_rectangle