]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/client/casings.qc
Improve comments
[xonotic/xonotic-data.pk3dir.git] / qcsrc / client / casings.qc
index 5b74e11b50af47a03f712fc26a2d80aa5a63a9b3..6068a799f752892a2d1dc8f86b7d412537c0644c 100644 (file)
@@ -1,3 +1,16 @@
+#if defined(CSQC)
+       #include "movetypes.qh"
+       #include "prandom.qh"
+       #include "rubble.qh"
+
+       .float cnt;
+       .float alpha;
+       .int state;
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
+
 .bool silent;
 
 void Casing_Delete()
@@ -44,7 +57,7 @@ void Casing_Touch()
                        if(time >= self.nextthink)
                        {
                                string s;
-                               int f = floor(prandom() * 3) + 1;;
+                               int f = floor(prandom() * 3) + 1;
 
                                switch(self.state)
                                {
@@ -66,8 +79,8 @@ void Casing_Touch()
 
 void Casing_Damage(float thisdmg, int hittype, vector org, vector thisforce)
 {
-       if(thisforce_z < 0)
-               thisforce_z = 0;
+       if(thisforce.z < 0)
+               thisforce.z = 0;
        self.move_velocity = self.move_velocity + thisforce + '0 0 100';
        self.move_flags &= ~FL_ONGROUND;
 }