From 74db521aeb93d7e706d9e3745dd3462e8d5f90eb Mon Sep 17 00:00:00 2001 From: "Tony J. White" Date: Sat, 9 Dec 2006 05:12:31 +0000 Subject: * (bug 2937) adds cg_projectileNudge. This is originally from Neil Toronto's unlagged project. kevlarman added automatic latency detection so the nudge time doesn't have to be set manually. Defaults to 1 (on). --- src/qcommon/q_shared.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qcommon') diff --git a/src/qcommon/q_shared.h b/src/qcommon/q_shared.h index f7a8b43e..3f0ae9a2 100644 --- a/src/qcommon/q_shared.h +++ b/src/qcommon/q_shared.h @@ -426,6 +426,9 @@ void ByteToDir( int b, vec3_t dir ); #define VectorCopy(a,b) ((b)[0]=(a)[0],(b)[1]=(a)[1],(b)[2]=(a)[2]) #define VectorScale(v, s, o) ((o)[0]=(v)[0]*(s),(o)[1]=(v)[1]*(s),(o)[2]=(v)[2]*(s)) #define VectorMA(v, s, b, o) ((o)[0]=(v)[0]+(b)[0]*(s),(o)[1]=(v)[1]+(b)[1]*(s),(o)[2]=(v)[2]+(b)[2]*(s)) +#define VectorLerp( f, s, e, r ) ((r)[0]=(s)[0]+(f)*((e)[0]-(s)[0]),\ + (r)[1]=(s)[1]+(f)*((e)[1]-(s)[1]),\ + (r)[2]=(s)[2]+(f)*((e)[2]-(s)[2])) #else -- cgit