From: Rudolf Polzer Date: Thu, 6 Sep 2012 18:06:06 +0000 (+0200) Subject: add a comment about AddIncrementally to explain why it works for hook but virtually... X-Git-Tag: xonotic-v0.7.0~251 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=65910c53f780ff3dc3bbdd5dbadee90a076f667d;p=xonotic%2Fxonotic-data.pk3dir.git add a comment about AddIncrementally to explain why it works for hook but virtually nothing else --- diff --git a/qcsrc/warpzonelib/common.qh b/qcsrc/warpzonelib/common.qh index 81a04e312..e7cf23908 100644 --- a/qcsrc/warpzonelib/common.qh +++ b/qcsrc/warpzonelib/common.qh @@ -69,6 +69,9 @@ void WarpZone_RefSys_AddTransform(entity me, vector t, vector s); // me.R := [t void WarpZone_RefSys_AddInverseTransform(entity me, vector t, vector s); // me.R := [t s]^-1 me.R // makes this reference system track ref's changes +// NOTE: this is ONLY sensible if WarpZone_RefSys_Add is no longer called on "me" while doing this +// To achieve this, make sure no touch events on warpzone are raised by this entity +// or set a movetype that causes no warpzoning (e.g. MOVETYPE_NONE, MOVETYPE_FOLLOW) void WarpZone_RefSys_AddIncrementally(entity me, entity ref); // me.R := ref.R me.Rref^-1 me.R; me.Rref := ref.R void WarpZone_RefSys_BeginAddingIncrementally(entity me, entity ref); // me.Rref := ref.R