]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/ent_cs.qc
Offhand hook: migrate to mutator system
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / ent_cs.qc
index f63ca3de224d4daa12abde61b9e215aecde22a37..a3be17bf2bb5c99d5652a099c342c5bf07b3cb4e 100644 (file)
@@ -1,13 +1,7 @@
-#if defined(CSQC)
-#elif defined(MENUQC)
-#elif defined(SVQC)
-       #include "../dpdefs/progsdefs.qc"
-    #include "../dpdefs/dpextensions.qc"
-    #include "../common/constants.qh"
-    #include "constants.qh"
-    #include "defs.qh"
-    #include "mutators/mutators_include.qh"
-#endif
+#include "_all.qh"
+
+#include "defs.qh"
+#include "mutators/mutators_include.qh"
 
 /**
  * The point of these entities is to avoid the problems
 
 void entcs_init()
 {
-       print("Initializing ClientSide information entities\n");
+       LOG_INFO("Initializing ClientSide information entities\n");
 }
 
 float entcs_customize()
-{
+{SELFPARAM();
        entity o;
        o = self.owner;
        if(o.deadflag != DEAD_NO)
@@ -48,8 +42,8 @@ float entcs_customize()
        return true;
 }
 
-float entcs_send(entity to, float sf)
-{
+float entcs_send(entity to, int sf)
+{SELFPARAM();
        WriteByte(MSG_ENTITY, ENT_CLIENT_ENTCS);
        WriteByte(MSG_ENTITY, sf);
        if(sf & 1)
@@ -70,7 +64,7 @@ float entcs_send(entity to, float sf)
 }
 
 void entcs_think()
-{
+{SELFPARAM();
        self.nextthink = time + 0.033333333333; // increase this to like 0.15 once the client can do smoothing
 
        entity o;
@@ -99,7 +93,7 @@ void entcs_think()
 }
 
 entity attach_entcs()
-{
+{SELFPARAM();
        entity ent;
 
        ent = spawn();
@@ -117,7 +111,7 @@ entity attach_entcs()
 }
 
 void detach_entcs()
-{
+{SELFPARAM();
        remove(self.entcs);
        self.entcs = world;
 }