._.
PHP Code:
else if ((mode == MODE_NONE && (!preventconsecutive || g_lastmode != MODE_WALK) && random_num(1, get_pcvar_num(cvar_walkchance)) == get_pcvar_num(cvar_walk) && floatround((iPlayersnum-2)*get_pcvar_float(cvar_walkratio), floatround_ceil) >= 1 && iPlayersnum >= get_pcvar_num(cvar_walkminplayers)) || mode == MODE_WALK)
{
//Walk Mode
g_plagueround = true
g_walkround = true
// Turn someone into a Survivor, Predator, Wesker, Sniper, Ninja, Leon
id = fnGetRandomAlive(random_num(1, iPlayersnum))
humanme(id, 1,1,0,0,0,1,1)
// Turn someone into a Nemesis (not the survivor!)
while (g_survivor[id]) id = fnGetRandomAlive(random_num(1, iPlayersnum));
zombieme(id, 0, 1, 1,1,1)
// iMaxZombies is rounded up, in case there aren't enough players
iMaxZombies = floatround((iPlayersnum-2)*get_pcvar_float(cvar_plagueratio), floatround_ceil)
iZombies = 0
// Randomly turn iMaxZombies players into zombies
while (iZombies < iMaxZombies)
{
if (id < g_maxplayers)
id++
else
id = 1
// Dead or already a zombie or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue;
// Random chance
if (random_num(0, 1))
{
// Turn into a nemesis, assasin, hunter
zombieme(id, 0, 1, 1,1,1)
iZombies++
}
}
// Turn the rest of players into humans
for (id = 1; id <= g_maxplayers; id++)
{
// Only those of them who arent zombies or survivor
if (!is_user_alive(id) || g_zombie[id] || g_survivor[id])
continue
// Remove previous tasks and make them survivors
remove_task(id+TASK_TEAM)
humanme(id, 1,1,0,0,0,1,1)
/* Switch to CT
if (fm_get_user_team(id) != CS_TEAM_CT) // need to change team?
{
fm_set_user_team(id, CS_TEAM_CT)
set_task(0.1+g_teams_i, "fm_set_user_team_msg", id+TASK_TEAM)
g_teams_i += 0.1; // increase teams task counter
}*/
}
// Play plague sound
PlaySound(sound_plague[random_num(0, sizeof sound_plague -1)]);
// Show Plague HUD notice
set_hudmessage(0, 50, 200, -1.0, 0.17, 1, 0.0, 5.0, 1.0, 1.0, -1)
ShowSyncHudMsg(0, g_MsgSync, "%L", LANG_PLAYER, "NOTICE_WALK")
// Round start forward
ExecuteForward(g_fwRoundStart, g_fwDummyResult, MODE_WALK, 0);
}