mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-16 22:42:31 +03:00
Fix TF2 crash caused by hand viewmodel meant for HL2
This commit is contained in:
parent
8fa677c27c
commit
ae139c1194
@ -650,7 +650,7 @@ void CBasePlayer::DestroyViewModels( void )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MAPBASE
|
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||||
extern char g_szDefaultHandsModel[MAX_PATH];
|
extern char g_szDefaultHandsModel[MAX_PATH];
|
||||||
extern int g_iDefaultHandsSkin;
|
extern int g_iDefaultHandsSkin;
|
||||||
extern int g_iDefaultHandsBody;
|
extern int g_iDefaultHandsBody;
|
||||||
@ -5460,7 +5460,7 @@ void CBasePlayer::Spawn( void )
|
|||||||
enginesound->SetPlayerDSP( user, 0, false );
|
enginesound->SetPlayerDSP( user, 0, false );
|
||||||
|
|
||||||
CreateViewModel();
|
CreateViewModel();
|
||||||
#ifdef MAPBASE
|
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||||
CreateHandModel();
|
CreateHandModel();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -5600,7 +5600,7 @@ void CBasePlayer::Precache( void )
|
|||||||
m_iTrain = TRAIN_NEW;
|
m_iTrain = TRAIN_NEW;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAPBASE
|
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||||
PrecacheModel( g_szDefaultHandsModel );
|
PrecacheModel( g_szDefaultHandsModel );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ public:
|
|||||||
void HideViewModels( void );
|
void HideViewModels( void );
|
||||||
void DestroyViewModels( void );
|
void DestroyViewModels( void );
|
||||||
|
|
||||||
#ifdef MAPBASE
|
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||||
virtual void CreateHandModel( int viewmodelindex = 1, int iOtherVm = 0 );
|
virtual void CreateHandModel( int viewmodelindex = 1, int iOtherVm = 0 );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -762,7 +762,7 @@ bool CBaseViewModel::GetAttachmentVelocity( int number, Vector &originVel, Quate
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MAPBASE
|
#if defined(MAPBASE) && (defined(HL2_DLL) || defined(HL2_CLIENT_DLL))
|
||||||
#if defined( CLIENT_DLL )
|
#if defined( CLIENT_DLL )
|
||||||
#define CHandViewModel C_HandViewModel
|
#define CHandViewModel C_HandViewModel
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user