-#if defined(CSQC)
- #include "movetypes.qh"
- #include "prandom.qh"
- #include "rubble.qh"
+#include "casings.qh"
+#include "_.qh"
- .float cnt;
- .float alpha;
- .float 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()
{
void Casing_Damage(float thisdmg, int hittype, vector org, vector thisforce)
{
if(thisforce.z < 0)
- thisforce_z = 0;
+ thisforce.z = 0;
self.move_velocity = self.move_velocity + thisforce + '0 0 100';
self.move_flags &= ~FL_ONGROUND;
}