X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fantilag.qh;h=d57762ccd3899ef8588a560229b39e25ac89210e;hb=2c388a4f68d83c5dd495d6a38e621355b19a7d26;hp=cadb45a14d981fa0d2e9b26449dff0474eb38099;hpb=9226d2a17f8329b6964cf4be5c5433e7e763c240;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/antilag.qh b/qcsrc/server/antilag.qh index cadb45a14..d57762ccd 100644 --- a/qcsrc/server/antilag.qh +++ b/qcsrc/server/antilag.qh @@ -1,9 +1,15 @@ -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); - -#define ANTILAG_LATENCY(e) min(0.4, e.ping * 0.001) +#pragma once + +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); + +void antilag_takeback_all(entity ignore, float lag); +void antilag_restore_all(entity ignore); + +.float antilag_debug; + +#define ANTILAG_LATENCY(e) min(0.4, CS(e).ping * 0.001) // add one ticrate?