Okay, so I'm experimenting with different ways of hiding
Friendly players from non-Friendly players. One thing that was suggested a while back was SetTransmit provided by SDKHooks.
Code:
public Action:Hook_SetTransmit(client, entity) {
if (cvar_settransmit == 0 || !IsValidClient(client) || !IsValidClient(entity)) {
return Plugin_Continue;
}
if (cvar_settransmit > 0 && !IsFriendly[entity] && IsFriendly[client]) {
return Plugin_Handled;
}
if (cvar_settransmit == 2 && IsFriendly[entity] && !IsFriendly[client]) {
return Plugin_Handled;
}
return Plugin_Continue;
}
This seems to work pretty well. Even silences footsteps. (Voice commands and attacks are still audible, but I'll tackle that myself later.)
However, it doesn't seem to work if the player in question has a minigun equipped? Why is this? Is there some other known issue that causes this? How can I fix this, short of actually removing the weapon from the Friendly Heavy?
I have unloaded all other plugins to test this. The issue still occurs.
Server info: