re: Don't allow repeated connect spamming
I made pq_connectmute <seconds> cvar for mine.
I had to adjust yours just a little, works fine. I defaulted it to 3 (seconds) for dedicated server (0 seconds if not, for single player, etc.). If 3 seconds isn't long enough it can be raised by the server operator.
I made pq_connectmute <seconds> cvar for mine.
I had to adjust yours just a little, works fine. I defaulted it to 3 (seconds) for dedicated server (0 seconds if not, for single player, etc.). If 3 seconds isn't long enough it can be raised by the server operator.
// R00k - dont allow new connecting players to spam obscenities...
if (pq_connectmute.value && (net_time - host_client->netconnection->connecttime) < pq_connectmute.value)
return;
if (pq_connectmute.value && (net_time - host_client->netconnection->connecttime) < pq_connectmute.value)
return;
Comment