X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fent_cs.qc;h=a3be17bf2bb5c99d5652a099c342c5bf07b3cb4e;hb=fb9267ffab37eae0bcbc4ac42a8a45a1ad864c0b;hp=f63ca3de224d4daa12abde61b9e215aecde22a37;hpb=ba0988ca930f50286f8cf3b6c114ebc6584964af;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/ent_cs.qc b/qcsrc/server/ent_cs.qc index f63ca3de2..a3be17bf2 100644 --- a/qcsrc/server/ent_cs.qc +++ b/qcsrc/server/ent_cs.qc @@ -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 @@ -28,11 +22,11 @@ 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; }