X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fantilag.qh;h=6cf392eed5ae1e8bd2bc125b3a19aa5b9e70d6dd;hb=5149aaa004721dba4947df89026a1c4b59506122;hp=cadb45a14d981fa0d2e9b26449dff0474eb38099;hpb=26ec33d6d19e627b43ac2cb51f83f890b5176293;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/antilag.qh b/qcsrc/server/antilag.qh index cadb45a14..6cf392eed 100644 --- a/qcsrc/server/antilag.qh +++ b/qcsrc/server/antilag.qh @@ -1,9 +1,12 @@ -void antilag_record(entity e, float t); -vector antilag_takebackorigin(entity e, float t); -vector antilag_takebackavgvelocity(entity e, float t0, float t1); -void antilag_takeback(entity e, float t); -void antilag_restore(entity e); -void antilag_clear(entity e); +#pragma once -#define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001) +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); +void antilag_restore(entity e, entity store); +void antilag_clear(entity e, entity store); + +.float antilag_debug; + +#define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001) // add one ticrate?