Fixed issues with third person player models

This commit is contained in:
Blixibon
2021-11-15 14:48:47 -06:00
parent abc34c0c85
commit 91978b2934
3 changed files with 39 additions and 1 deletions

View File

@@ -509,7 +509,7 @@ int C_BaseCombatWeapon::DrawModel( int flags )
{
// If this isn't the main view, draw the weapon.
view_id_t viewID = CurrentViewID();
if (viewID != VIEW_MAIN && viewID != VIEW_INTRO_CAMERA && (viewID != VIEW_SHADOW_DEPTH_TEXTURE || !localplayer->IsEffectActive(EF_DIMLIGHT)))
if ( (!localplayer->InFirstPersonView() || (viewID != VIEW_MAIN && viewID != VIEW_INTRO_CAMERA)) && (viewID != VIEW_SHADOW_DEPTH_TEXTURE || !localplayer->IsEffectActive(EF_DIMLIGHT)) )
{
// TODO: Is this inefficient?
int nModelIndex = GetModelIndex();