View Single Post
midnight9
Senior Member
Join Date: Nov 2012
Old 07-14-2018 , 07:22   Re: [L4D2] No Boomer When Tank Spawn
Reply With Quote #6

Quote:
Originally Posted by Visual77 View Post
Maybe a boomer spawned before the tank.

Code:
public Event_TankSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
	SetConVarInt(g_hBoomerLimit, 0);

	for (int i = 1; i <= MaxClients; i++)
	{
		if (IsClientInGame(i) && GetClientTeam(i) == 3 && IsPlayerAlive(i) && GetEntProp(i, Prop_Send, "m_zombieClass") == 2)
		{
			KickClient(i, "releasing boomers"); //or forceplayersuicide. it has to be one that don't spread vomit into survivors.
		}
	}
}
That crossed my mind after i replied. I've tested the plugin for few minutes on coop and not a single boomer spawned while tank was alive.
midnight9 is offline