X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_violence.qc;h=2a885f901ab2f0b7100326430fa6963ea31c6855;hb=a97b89297fa91ae42b9d56c262662eb34ede3e45;hp=fdff4a66f369bf8c9e8cf45709e146395ad0f2d7;hpb=e3507f4fdbc2b3e15b663365e57e0aa60f3cf1a6;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/g_violence.qc b/qcsrc/server/g_violence.qc index fdff4a66f..2a885f901 100644 --- a/qcsrc/server/g_violence.qc +++ b/qcsrc/server/g_violence.qc @@ -1,6 +1,7 @@ #include "g_violence.qh" +#include "_all.qh" -float Violence_GibSplash_SendEntity(entity to, float sf) +bool Violence_GibSplash_SendEntity(entity this, entity to, int sf) { WriteByte(MSG_ENTITY, ENT_CLIENT_GIBSPLASH); WriteByte(MSG_ENTITY, self.state); // actually type @@ -14,7 +15,7 @@ float Violence_GibSplash_SendEntity(entity to, float sf) // TODO maybe convert this to a TE? void Violence_GibSplash_At(vector org, vector dir, float type, float amount, entity gibowner, entity attacker) -{ +{SELFPARAM(); if(g_cts) // no gibs in CTS return;