X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_damage.qc;h=5cae69239ddfb084153e706e5867a8f91d460565;hb=13719cec41a5a1b20d0fff3fe1b6df449bc2a884;hp=11812f85c139652ed2e143ef74e3dda9e0bce682;hpb=a8cc9eb71b0d0e44e9a968a9cf5554f6226cc838;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_damage.qc b/qcsrc/server/g_damage.qc index 11812f85c..5cae69239 100644 --- a/qcsrc/server/g_damage.qc +++ b/qcsrc/server/g_damage.qc @@ -10,7 +10,7 @@ #include "weapons/accuracy.qh" #include "weapons/csqcprojectile.qh" #include "weapons/selection.qh" -#include "../common/buffs.qh" +#include "../common/buffs/all.qh" #include "../common/constants.qh" #include "../common/deathtypes.qh" #include "../common/notifications.qh" @@ -22,8 +22,8 @@ #include "../csqcmodellib/sv_model.qh" #include "../warpzonelib/common.qh" -float Damage_DamageInfo_SendEntity(entity to, int sf) -{SELFPARAM(); +bool Damage_DamageInfo_SendEntity(entity this, entity to, int sf) +{ WriteByte(MSG_ENTITY, ENT_CLIENT_DAMAGEINFO); WriteShort(MSG_ENTITY, self.projectiledeathtype); WriteCoord(MSG_ENTITY, floor(self.origin.x));