Raised This Month: $12 Target: $400
 3% 

[L4D2] Gamemode Changer


Post New Thread Reply   
 
Thread Tools Display Modes
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, 51 views)

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


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 08:41.


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