mirror of
https://github.com/astromaddie/lambda1-vr.git
synced 2026-10-18 22:00:13 +02:00
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:
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 );
|
||||
|
||||
|
||||
Submodule Projects/Android/jni/src/hlsdk-xash3d updated: 0007b4ab00...1873ff9120.
Reference in new issue
Block a user