@@ -278,6 +278,7 @@ class CLogicPlayerProxy : public CLogicalEntity
278278 CUtlDict<string_t , int > m_QueuedKV;
279279
280280 int m_MaxArmor = 100 ;
281+ int m_SuitZoomFOV = 25 ;
281282#endif
282283
283284 bool PassesDamageFilter ( const CTakeDamageInfo &info );
@@ -1760,7 +1761,11 @@ void CHL2_Player::ToggleZoom(void)
17601761// -----------------------------------------------------------------------------
17611762void CHL2_Player::StartZooming ( void )
17621763{
1764+ #ifdef MAPBASE
1765+ int iFOV = GetPlayerProxy () ? GetPlayerProxy ()->m_SuitZoomFOV : 25 ;
1766+ #else
17631767 int iFOV = 25 ;
1768+ #endif
17641769 if ( SetFOV ( this , iFOV, 0 .4f ) )
17651770 {
17661771 m_HL2Local.m_bZooming = true ;
@@ -4615,6 +4620,7 @@ BEGIN_DATADESC( CLogicPlayerProxy )
46154620 DEFINE_INPUTFUNC( FIELD_STRING , " SetPlayerModel" , InputSetPlayerModel ),
46164621 DEFINE_INPUTFUNC( FIELD_BOOLEAN , " SetPlayerDrawExternally" , InputSetPlayerDrawExternally ),
46174622 DEFINE_INPUT( m_MaxArmor, FIELD_INTEGER , " SetMaxInputArmor" ),
4623+ DEFINE_INPUT( m_SuitZoomFOV, FIELD_INTEGER , " SetSuitZoomFOV" ),
46184624#endif
46194625 DEFINE_FIELD ( m_hPlayer, FIELD_EHANDLE ),
46204626END_DATADESC()
0 commit comments