Squeak Grenade Throw Mechanic

Improved the mechanics of throwing a squeaker
Also, If we aren't mirroring weapons, turn off culling for the viewmodel
This commit is contained in:
Simon committed 2019-09-18 22:09:03 +01:00
1 parent 8f1999f4c9
commit c49179f5ef
2 files changed
+9 -1

No files matched your search

@@ -3761,8 +3761,16 @@ void R_DrawViewModel( void )
cl.weaponstarttime = cl.time;
RI.currententity->curstate.animtime = cl.weaponstarttime;
RI.currententity->curstate.sequence = cl.weaponseq;
//If we aren't mirroring weapons, turn off culling for the viewmodel
if (!g_iBackFaceCull)
pglDisable(GL_CULL_FACE);
pStudioDraw->StudioDrawModel( STUDIO_RENDER | STUDIO_VIEWMODEL );
if (!g_iBackFaceCull)
pglEnable(GL_CULL_FACE);
// restore depth range
pglDepthRange( gldepthmin, gldepthmax );