X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fantilag.qh;h=ed8f6b3306204a36f3e8c8b38231351895a56a26;hb=59cf121580a8bd0b886ab0809850509d905e385b;hp=c3be5553a946837a3f8e7960121fdc0d0681cb66;hpb=0076d3f631e54b908b7506883c75c6d28f6b9505;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/antilag.qh b/qcsrc/server/antilag.qh index c3be5553a..ed8f6b330 100644 --- a/qcsrc/server/antilag.qh +++ b/qcsrc/server/antilag.qh @@ -1,5 +1,8 @@ #pragma once +int autocvar_g_antilag; +float autocvar_g_antilag_nudge; + void antilag_record(entity e, entity store, float t); vector antilag_takebackorigin(entity e, entity store, float t); void antilag_takeback(entity e, entity store, float t); @@ -9,6 +12,8 @@ void antilag_clear(entity e, entity store); void antilag_takeback_all(entity ignore, float lag); void antilag_restore_all(entity ignore); +float antilag_getlag(entity e); // returns antilag latency for clients, plus any modifiers (such as noantilag) + .float antilag_debug; #define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001)