mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-11 15:38:12 +00:00
Do not show train controls after player death.
This commit is contained in:
parent
53626b9965
commit
556e2647fe
@ -782,6 +782,9 @@ void CBasePlayer::PackDeadPlayerItems( void )
|
|||||||
|
|
||||||
void CBasePlayer::RemoveAllItems( BOOL removeSuit )
|
void CBasePlayer::RemoveAllItems( BOOL removeSuit )
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
|
CBasePlayerItem *pPendingItem;
|
||||||
|
|
||||||
if( m_pActiveItem )
|
if( m_pActiveItem )
|
||||||
{
|
{
|
||||||
ResetAutoaim();
|
ResetAutoaim();
|
||||||
@ -794,8 +797,8 @@ void CBasePlayer::RemoveAllItems( BOOL removeSuit )
|
|||||||
if( m_pTank != 0 )
|
if( m_pTank != 0 )
|
||||||
m_pTank->Use( this, this, USE_OFF, 0 );
|
m_pTank->Use( this, this, USE_OFF, 0 );
|
||||||
|
|
||||||
int i;
|
m_iTrain = TRAIN_NEW; // turn off train
|
||||||
CBasePlayerItem *pPendingItem;
|
|
||||||
for( i = 0; i < MAX_ITEM_TYPES; i++ )
|
for( i = 0; i < MAX_ITEM_TYPES; i++ )
|
||||||
{
|
{
|
||||||
m_pActiveItem = m_rgpPlayerItems[i];
|
m_pActiveItem = m_rgpPlayerItems[i];
|
||||||
|
Loading…
Reference in New Issue
Block a user