kaloczikvn / kPM

Promod for Venice Unleashed
https://community.veniceunleashed.net/t/promod-the-competetive-bf3-experience/1143
10 stars 2 forks source link

Start warmup automatically #46

Closed turbopasi closed 3 years ago

turbopasi commented 3 years ago

The Warmup (And the beginning of a new round) now only start if someone types " !warmup " in the chat. Shouldn't this be automatic when for example enough player have joined the server ? And if there are too many ppl still missing then it should display a message "waiting for more players for warmup" or something similiar.

kaloczikvn commented 3 years ago
local s_PlayerCount = PlayerManager:GetPlayerCount()
    if self.m_GameState == GameStates.None and s_PlayerCount >= kPMConfig.MinPlayerCount then
        self:ChangeGameState(GameStates.Warmup)
    end

Added this logic, should auto start now when the player count is equals or greater than the kPMConfig.MinPlayerCount! The waiting for warmup text is still missing, will add it soon!

kaloczikvn commented 3 years ago

Fixed in 7edf1bfd59e0f6fdfa2839fcc9c88e944f4fd8a2