X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fweapons%2Fcsqcprojectile.qc;h=507fc4a413b792d6d5450d3591c6442c6d438036;hb=1217fce596f1b9769ffb6f479e3abbd4f77af5ef;hp=bf09e158585fc630ef23047cff14c91cf79a312c;hpb=6c4f62990980e74d4a0963b7179c7c964f535398;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/weapons/csqcprojectile.qc b/qcsrc/server/weapons/csqcprojectile.qc index bf09e1585..507fc4a41 100644 --- a/qcsrc/server/weapons/csqcprojectile.qc +++ b/qcsrc/server/weapons/csqcprojectile.qc @@ -1,6 +1,16 @@ +#include "csqcprojectile.qh" +#include "../_all.qh" + +#include "../t_items.qh" + +#include "../command/common.qh" + +#include "../../common/constants.qh" +#include "../../common/weapons/all.qh" + .float csqcprojectile_type; -float CSQCProjectile_SendEntity(entity to, float sf) +bool CSQCProjectile_SendEntity(entity to, int sf) { float ft, fr; @@ -55,7 +65,7 @@ float CSQCProjectile_SendEntity(entity to, float sf) if(sf & 2) WriteByte(MSG_ENTITY, self.csqcprojectile_type); // TODO maybe put this into sf? - return 1; + return true; } .vector csqcprojectile_oldorigin; @@ -68,7 +78,7 @@ void CSQCProjectile_Check(entity e) e.csqcprojectile_oldorigin = e.origin; } -void CSQCProjectile(entity e, float clientanimate, float type, float docull) +void CSQCProjectile(entity e, float clientanimate, int type, float docull) { Net_LinkEntity(e, docull, 0, CSQCProjectile_SendEntity);