X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fclient.qc;h=5047334f0a4e9025d2b54d9da8527b06c0200626;hb=e12b0503854a3db83f9ddcda6285b6c343c0741a;hp=fe2952711f9cd8970ad815f6fa7fd091cbe7ee9c;hpb=e875ef0ccd65ad36b9c1e87a2f759378d501b205;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/client.qc b/qcsrc/server/client.qc index fe2952711..5047334f0 100644 --- a/qcsrc/server/client.qc +++ b/qcsrc/server/client.qc @@ -20,6 +20,7 @@ #include "clientkill.qh" #include "cheats.qh" #include "g_world.qh" +#include #include "race.qh" #include "antilag.qh" #include "campaign.qh" @@ -2474,7 +2475,8 @@ void PlayerPreThink (entity this) { STAT(REVIVE_PROGRESS, this) = bound(0, STAT(REVIVE_PROGRESS, this) + frametime * this.revive_speed, 1); SetResourceExplicit(this, RES_HEALTH, max(1, STAT(REVIVE_PROGRESS, this) * start_health)); - this.iceblock.alpha = bound(0.2, 1 - STAT(REVIVE_PROGRESS, this), 1); + if (this.iceblock) + this.iceblock.alpha = bound(0.2, 1 - STAT(REVIVE_PROGRESS, this), 1); if (STAT(REVIVE_PROGRESS, this) >= 1) Unfreeze(this, false); @@ -2711,6 +2713,9 @@ void PlayerPostThink (entity this) this.solid = SOLID_NOT; this.takedamage = DAMAGE_NO; set_movetype(this, MOVETYPE_NONE); + CS(this).teamkill_complain = 0; + CS(this).teamkill_soundtime = 0; + CS(this).teamkill_soundsource = NULL; } if (IS_PLAYER(this)) {