Closed M60TM closed 11 months ago
In detail:
CapEnableDelay
m_flCapturePointEnableTime
ff2_game_capture_alive
ff2_game_capture_time
void CTFGameRules::SetupOnStalemateStart( void ) { ... CArenaLogic *pArenaLogic = dynamic_cast< CArenaLogic * > (gEntList.FindEntityByClassname( NULL, "tf_logic_arena" ) ); if ( pArenaLogic ) { pArenaLogic->m_OnArenaRoundStart.FireOutput( pArenaLogic, pArenaLogic ); if ( tf_arena_override_cap_enable_time.GetFloat() > 0 ) { m_flCapturePointEnableTime = gpGlobals->curtime + tf_arena_override_cap_enable_time.GetFloat(); } else { m_flCapturePointEnableTime = gpGlobals->curtime + pArenaLogic->m_flTimeToEnableCapPoint; } IGameEvent *event = gameeventmanager->CreateEvent( "arena_round_start" ); if ( event ) { gameeventmanager->FireEvent( event ); } BroadcastSound( 255, "Announcer.AM_RoundStartRandom" ); } ... }
In detail:
CapEnableDelay
is only used for setting tf_gamerules_data'sm_flCapturePointEnableTime
before arena round start.ff2_game_capture_alive
) actually unlock them ifff2_game_capture_time
ConVar value was not setup(ex. 0.0)ff2_game_capture_time
ConVar has positive value, even if the number of people is appropriate, it will not be opened until the time is right.