]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/dpdefs/progsdefs.qh
Add a TODO note on the new flag line
[xonotic/xonotic-data.pk3dir.git] / qcsrc / dpdefs / progsdefs.qh
index bffacafddc59a928ac76441e89fe284579bb173a..a8d8a4a486a0824cb200182a176ebf856762f8ed 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef PROGSDEFS_H
-#define PROGSDEFS_H
+#pragma once
 
 #pragma noref 1
 
@@ -8,6 +7,9 @@
 #define TRUE _TRUE
 #define FALSE _FALSE
 
+#define spawn _spawn
+#define setmodel _setmodel
+
 #include "upstream/progsdefs.qc"
 
 #undef true
 #undef TRUE
 #undef FALSE
 
+#undef spawn
+#undef setmodel
+
+#define stuffcmd(cl, ...) MACRO_BEGIN \
+    entity _cl = (cl); \
+    if (IS_REAL_CLIENT(_cl)) stuffcmd(_cl, __VA_ARGS__); \
+MACRO_END
+
 #pragma noref 0
 
-#endif
+#define use use1
+.void(entity this, entity actor, entity trigger) use;
+
+// deglobalization:
+
+void(vector ang) _makevectors_hidden = #1;
+//#define makevectors DO_NOT_USE_GLOBALS_PREFER_MAKE_VECTORS_MACRO_INSTEAD
+
+#define aim DO_NOT_USE_GLOBALS // not used anywhere so not wrapped
+
+#define makestatic DO_NOT_USE_GLOBALS // not used anywhere so not wrapped