Hello!
I have a modded server (versus only, l4d2 only, linux), and it has a problem with death broadcast (I am talking about the text showing on the left side of the player screen such as "Rochelle killed Hunter".
What could be the possible reasons?
I don't see any errors in the console regarding any plugins.
I don't have any plugin that sets event.BroadcastDisabled = true on `player_death` event hook.
I tried the following debugging code, and I cannot see anything wrong:
PHP Code:
public void OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath, EventHookMode_Pre);
}
public Action Event_PlayerDeath(Event event, const char[] name, bool dontBroadcast)
{
int victim = GetClientOfUserId(event.GetInt("userid"));
int attacker = GetClientOfUserId(event.GetInt("attacker"));
if (IsValidClient(attacker) && IsValidClient(victim))
{
PrintToChatAll("[DEBUG] victim: %N, attacker: %N, dontBroadcast: %b", victim, attacker, dontBroadcast);
}
return Plugin_Continue;
}
Output:
Code:
[DEBUG] victim: Hunter, attacker: (1)Ellis, dontBroadcast: 0
[DEBUG] victim: Spitter, attacker: (2)Rochelle, dontBroadcast: 0
[DEBUG] victim: Charger, attacker: (2)Rochelle, dontBroadcast: 0
I would appreciate if anyone can suggest where to start to look. Thanks!