AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Metamod:Source Plugins (https://forums.alliedmods.net/forumdisplay.php?f=76)
-   -   [L4D2] Gamemode Changer (https://forums.alliedmods.net/showthread.php?t=343990)

gudvinr 09-21-2023 18:16

[L4D2] Gamemode Changer
 
1 Attachment(s)
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.


All times are GMT -4. The time now is 19:56.

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