]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/casings.qc
Create common client header
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / casings.qc
index 6c14fc3a2bc5c7b4725c759a2cd3f282f0cf2772..28a8390b0d4c9c4c72caf3de9bc43093c33f287b 100644 (file)
@@ -1,17 +1,18 @@
-#if defined(CSQC)
-       #include "movetypes.qh"
-       #include "prandom.qh"
-       #include "rubble.qh"
+#include "casings.qh"
+#include "_.qh"
 
-       .float cnt;
-       .float alpha;
-       .int state;
-#elif defined(MENUQC)
-#elif defined(SVQC)
-#endif
+#include "movetypes.qh"
+#include "prandom.qh"
+#include "rubble.qh"
 
+#include "../common/util.qh"
 
-.bool silent;
+.float cnt;
+.float alpha;
+.int state;
+
+entityclass(Casing)
+class(Casing) .bool silent;
 
 void Casing_Delete()
 {
@@ -22,7 +23,7 @@ void Casing_Draw()
 {
        if(self.move_flags & FL_ONGROUND)
        {
-               self.move_angles.x = 0;
+               self.move_angles_x = 0;
                self.move_angles_z = 0;
                self.flags &= ~FL_ONGROUND;
        }