SirPlease / L4D2-Competitive-Rework

Just refreshing and optimizing the core files a bit, eh?
GNU General Public License v3.0
243 stars 132 forks source link

Temporary block on sm_changelevel command #797

Closed altair-sossai closed 1 month ago

altair-sossai commented 2 months ago

This update introduces a temporary lock in the l4d2_changelevel plugin to prevent the sm_changelevel command from being executed multiple times within a short period. Currently, executing the command two or more times simultaneously can cause players to be disconnected, resulting in a client-side crash. This issue often arises when two or more administrators execute the command simultaneously, typically at the end of a campaign to start a new one, leading to players being disconnected from the server.

A1mDev commented 1 month ago

Timers =/

SirPlease commented 1 month ago

I don't think this really fixes anything, a similar issue can occur without the plugin even loaded (using default map switching behavior). A global cooldown on the sm_map command would make more sense, which I'd argue you could try to suggest on the main sourcemod repo.