diff options
author | Zedwaitch (Zachary) Wibowanto <ultrarandomvirus@hotmail.com> | 2013-09-14 17:46:43 +0800 |
---|---|---|
committer | Zedwaitch (Zachary) Wibowanto <ultrarandomvirus@hotmail.com> | 2013-09-14 17:46:43 +0800 |
commit | 3c9a5c2408d05cb1663b5fe81f34d9a8a255a218 (patch) | |
tree | aa1be7abf7b25de53b9347ccc55df81b5e481819 /src/cgame | |
parent | 09460bd0361b0ad85ea890de6780476cc5fd8a16 (diff) |
Updated cg_projectilenudge
1: Default, except it won't be used if cg_unlagged is disabled
2: Previous default
3: Used for those who have think/know that their unlagged is inaccurate on the server
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_ents.c | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/src/cgame/cg_ents.c b/src/cgame/cg_ents.c index a68c5eb..339cd8e 100644 --- a/src/cgame/cg_ents.c +++ b/src/cgame/cg_ents.c @@ -939,12 +939,24 @@ static void CG_CalcEntityLerpPositions( centity_t *cent ) return; } - if( cg_projectileNudge.integer && - !cg.demoPlayback && - cent->currentState.eType == ET_MISSILE && + if( cent->currentState.eType == ET_MISSILE && !( cg.snap->ps.pm_flags & PMF_FOLLOW ) ) { + //Default setting, people don't like having to see + //projectilenudge with lagged as it screws up their aim + if(cg_projectileNudge.integer == 1 && + !cg.demoPlayback && cg_unlagged.integer) timeshift = cg.ping; + //Previous default + if(cg_projectileNudge.integer == 2 && + !cg.demoPlayback) + timeshift = cg.ping; + //Extrapolate using the value instead of ping + //for those who think their ping isn't 'real' + else if( cg_projectileNudge.integer > 2) + timeshift = cg_projectileNudge.integer; + + else timeshift = 0; } // just use the current frame and evaluate as best we can |