X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fg_world.qc;h=71c731a308e830ac59d3d3b323b177edc4444e8e;hp=2e7ae5fa754442a6bf18272921ab11306cdd5efc;hb=905ec2fbd2b610eeb2591cdddbf71ce24b7bb3ab;hpb=4d66fbb3a2351be319dd6fc0e481a3dd24e182d4;ds=sidebyside diff --git a/qcsrc/server/g_world.qc b/qcsrc/server/g_world.qc index 2e7ae5fa75..71c731a308 100644 --- a/qcsrc/server/g_world.qc +++ b/qcsrc/server/g_world.qc @@ -2086,6 +2086,8 @@ void EndFrame() entity e = IS_SPEC(it) ? it.enemy : it; if (e.typehitsound) { it.typehit_time = time; + } else if (e.killsound) { + it.kill_time = time; } else if (e.damage_dealt) { it.hit_time = time; it.damage_dealt_total += ceil(e.damage_dealt); @@ -2100,6 +2102,7 @@ void EndFrame() FOREACH_CLIENT(true, { it.typehitsound = false; it.damage_dealt = 0; + it.killsound = false; antilag_record(it, CS(it), altime); }); IL_EACH(g_monsters, true,