View Single Post
Author Message
gudvinr
New Member
Join Date: Sep 2023
Old 09-21-2023 , 18:16   [L4D2] Gamemode Changer
Reply With Quote #1

For additional context on why you might need this, see this post.

In short, you can't use mp_gamemode to select gamemode from an addon.
It is handled by the game before addons are loaded and server scripts don't read this cvar.

This plugin does very simple task. It just overrides mp_gamemode value right before level starts. At this point addons are loaded and you can start any custom gamemode without unpacking addons.

New cvars:
Code:
mm_gamemode - same thing as mp_gamemode but better
Usage:
  • Put VPK with mutation into left4dead2/addons
  • Add +mm_gamemode your_gamemode as srcds_run cli argument

Pre-compiled version is only available for Linux since I don't have Windows system to build but here's source code:
https://bitbucket.org/gudvinr/l4d2_gamemode_mm

l4d_enforce_gametypes can come in handy with this plugin too.
Attached Files
File Type: zip l4d2_gamemode.zip (61.3 KB, 69 views)

Last edited by gudvinr; 09-21-2023 at 18:17. Reason: repo url
gudvinr is offline