mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Merge b95c79e1fa
into 65aa7c910e
This commit is contained in:
commit
0b95e9aed0
1 changed files with 12 additions and 0 deletions
|
@ -21536,6 +21536,18 @@ CTFPlayer *CTFPlayer::FindPartnerTauntInitiator( void )
|
|||
continue;
|
||||
}
|
||||
|
||||
// Check if: 1. the initiator is inside a respawnroom and 2. the round has not ended,
|
||||
// to not execute when players can already enter the enemy respawnroom.
|
||||
// This should be an easy way to fix players entering spawnrooms with partner taunts
|
||||
if( PointInRespawnRoom( pPlayer, pPlayer->WorldSpaceCenter() ) && TFGameRules()->State_Get() != GR_STATE_TEAM_WIN)
|
||||
{
|
||||
if ( tf_highfive_debug.GetBool() )
|
||||
Msg( " - but %s is inside their spawn room and the round hasn't ended.\n", pPlayer->GetPlayerName() );
|
||||
|
||||
//no trolling
|
||||
continue;
|
||||
}
|
||||
|
||||
// update to closer target player
|
||||
if ( flDistSqrToPlayer < flDistSqrToTargetInitiator )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue