]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/playerdemo.qc
Merge branch 'master' into terencehill/weapon_panel_fix
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / playerdemo.qc
index e334de72e8ef28d5e32740812eccefbd95a5057e..4d58a95f6ff0bc82da280d6f60bc22628d389f4b 100644 (file)
@@ -1,10 +1,19 @@
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+       #include "../dpdefs/progsdefs.qh"
+    #include "../dpdefs/dpextensions.qh"
+    #include "defs.qh"
+    #include "playerdemo.qh"
+#endif
+
 .float playerdemo_fh;
 .float playerdemo_mode;
 .float playerdemo_starttime;
 .float playerdemo_time;
-#define PLAYERDEMO_MODE_OFF 0
-#define PLAYERDEMO_MODE_READING 1
-#define PLAYERDEMO_MODE_WRITING 2
+const float PLAYERDEMO_MODE_OFF = 0;
+const float PLAYERDEMO_MODE_READING = 1;
+const float PLAYERDEMO_MODE_WRITING = 2;
 void playerdemo_init()
 {
        self.playerdemo_mode = PLAYERDEMO_MODE_OFF;
@@ -49,7 +58,6 @@ void playerdemo_open_write(string f)
        PLAYERDEMO_FIELD(func,string,playermodel) \
        PLAYERDEMO_FIELD(func,float,skin) \
        PLAYERDEMO_FIELD(func,string,playerskin) \
-       PLAYERDEMO_FIELD(func,float,impulse) \
        PLAYERDEMO_FIELD(func,float,frame) \
        PLAYERDEMO_FIELD(func,float,effects) \
        PLAYERDEMO_FIELD(func,float,switchweapon) \
@@ -57,6 +65,7 @@ void playerdemo_open_write(string f)
        PLAYERDEMO_FIELD(func,float,BUTTON_ATCK2) \
        PLAYERDEMO_FIELD(func,float,BUTTON_CROUCH) \
        PLAYERDEMO_FIELD(func,float,BUTTON_HOOK) \
+       PLAYERDEMO_FIELD(func,float,BUTTON_USE) \
        PLAYERDEMO_FIELD(func,float,flags) \
        // end of list