mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-08 21:14:14 +00:00
Fix wrong state in deathmatch, fix skipdefaults
This commit is contained in:
parent
e920c98659
commit
0750a76fb5
@ -654,13 +654,16 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer )
|
||||
return;
|
||||
}
|
||||
|
||||
if( mp_coop.value && pPlayer->m_state == STATE_POINT_SELECT && !(pPlayer->pev->flags & FL_SPECTATOR) )
|
||||
if( mp_coop_changelevel.value && pPlayer->m_state == STATE_POINT_SELECT && !(pPlayer->pev->flags & FL_SPECTATOR) )
|
||||
{
|
||||
pPlayer->RemoveAllItems( TRUE );
|
||||
UTIL_BecomeSpectator( pPlayer );
|
||||
return;
|
||||
}
|
||||
|
||||
if( !mp_coop_changelevel.value )
|
||||
pPlayer->m_state = STATE_SPAWNED;
|
||||
|
||||
g_fPause = false;
|
||||
|
||||
pPlayer->pev->weapons |= ( 1 << WEAPON_SUIT );
|
||||
@ -687,9 +690,10 @@ void CHalfLifeMultiplay::PlayerSpawn( CBasePlayer *pPlayer )
|
||||
pPlayer->GiveAmmo( cvar_ar2_balls.value, "AR2grenades", 3 );
|
||||
}
|
||||
pPlayer->GiveAmmo( 68, "9mm", _9MM_MAX_CARRY );// 4 full reloads
|
||||
if(mp_coop.value)
|
||||
g_WeaponList.GiveToPlayer(pPlayer);
|
||||
|
||||
}
|
||||
if(mp_coop.value)
|
||||
g_WeaponList.GiveToPlayer(pPlayer);
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user