Skip to content

Commit

Permalink
etmain: Force first person with binocs/snipers/mounted world mgs
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform committed Nov 23, 2023
1 parent eb85800 commit a68f3ff
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cgame/cg_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,14 @@ void CG_DrawActiveFrame( int serverTime, stereoFrame_t stereoView, qboolean demo
// decide on third person view
cg.renderingThirdPerson = cg_thirdPerson.integer || ( cg.snap->ps.stats[STAT_HEALTH] <= 0 ) || cg.showGameView;

if ( cg.zoomedBinoc || cg.zoomedScope > 0 ) {
cg.renderingThirdPerson = qfalse;
}
// No third person mounted gun (mounted tank gun is fine, as rendering looks okay)
else if ( cg.snap->ps.eFlags & EF_MG42_ACTIVE || cg.snap->ps.eFlags & EF_AAGUN_ACTIVE ) {
cg.renderingThirdPerson = qfalse;
}

// build cg.refdef
inwater = CG_CalcViewValues();
CG_SetupFrustum();
Expand Down

0 comments on commit a68f3ff

Please sign in to comment.