mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-04-15 05:52:32 +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 int g_iDefaultHandsSkin;
|
||||
extern int g_iDefaultHandsBody;
|
||||
@ -5460,7 +5460,7 @@ void CBasePlayer::Spawn( void )
|
||||
enginesound->SetPlayerDSP( user, 0, false );
|
||||
|
||||
CreateViewModel();
|
||||
#ifdef MAPBASE
|
||||
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||
CreateHandModel();
|
||||
#endif
|
||||
|
||||
@ -5600,7 +5600,7 @@ void CBasePlayer::Precache( void )
|
||||
m_iTrain = TRAIN_NEW;
|
||||
#endif
|
||||
|
||||
#ifdef MAPBASE
|
||||
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||
PrecacheModel( g_szDefaultHandsModel );
|
||||
#endif
|
||||
|
||||
|
@ -271,7 +271,7 @@ public:
|
||||
void HideViewModels( void );
|
||||
void DestroyViewModels( void );
|
||||
|
||||
#ifdef MAPBASE
|
||||
#if defined(MAPBASE) && defined(HL2_DLL)
|
||||
virtual void CreateHandModel( int viewmodelindex = 1, int iOtherVm = 0 );
|
||||
#endif
|
||||
|
||||
|
@ -762,7 +762,7 @@ bool CBaseViewModel::GetAttachmentVelocity( int number, Vector &originVel, Quate
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef MAPBASE
|
||||
#if defined(MAPBASE) && (defined(HL2_DLL) || defined(HL2_CLIENT_DLL))
|
||||
#if defined( CLIENT_DLL )
|
||||
#define CHandViewModel C_HandViewModel
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user