X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fclientkill.qc;h=9b29273a65b2f65edd5c2c3830e1230a64d20c29;hb=0d7640b411a07f42106e6ef5d4220ac2a47a57f7;hp=73ccb383d40fe3f2c355b325c3eb3846f15e8541;hpb=77a72b8a1d5686ac0ee30d5019f512086bcbaf3e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/clientkill.qc b/qcsrc/server/clientkill.qc index 73ccb383d..9b29273a6 100644 --- a/qcsrc/server/clientkill.qc +++ b/qcsrc/server/clientkill.qc @@ -1,17 +1,18 @@ #include "clientkill.qh" -#include -#include -#include -#include - -#include "damage.qh" -#include "teamplay.qh" - -#include +#include +#include #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include void ClientKill_Now_TeamChange(entity this) { @@ -23,7 +24,7 @@ void ClientKill_Now_TeamChange(entity this) { if (blockSpectators) Send_Notification(NOTIF_ONE_ONLY, this, MSG_INFO, INFO_SPECTATE_WARNING, autocvar_g_maxplayers_spectator_blocktime); - PutObserverInServer(this); + PutObserverInServer(this, false); } else { @@ -129,7 +130,7 @@ void ClientKill_TeamChange(entity this, float targetteam) // 0 = don't change, - { float starttime = max(time, clientkilltime); - this.killindicator = spawn(); + this.killindicator = new(killindicator); this.killindicator.owner = this; this.killindicator.scale = 0.5; setattachment(this.killindicator, this, ""); @@ -143,7 +144,7 @@ void ClientKill_TeamChange(entity this, float targetteam) // 0 = don't change, - IL_EACH(g_clones, it.enemy == this && !(it.effects & CSQCMODEL_EF_RESPAWNGHOST) && !it.killindicator, { - it.killindicator = spawn(); + it.killindicator = new(killindicator); it.killindicator.owner = it; it.killindicator.scale = 0.5; setattachment(it.killindicator, it, ""); @@ -187,7 +188,7 @@ void ClientKill_TeamChange(entity this, float targetteam) // 0 = don't change, - void ClientKill_Silent(entity this, float _delay) { - this.killindicator = spawn(); + this.killindicator = new(killindicator); this.killindicator.owner = this; setthink(this.killindicator, KillIndicator_Think); this.killindicator.nextthink = time + (this.lip) * 0.05;