Raised This Month: $ Target: $400

[L4D2] Gamemode Changer

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
New Member
Join Date: Sep 2023
Old 09-21-2023 , 19: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:
mm_gamemode - same thing as mp_gamemode but better
  • 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:

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

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

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 03:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode