View Single Post
Author Message
pan0s
Senior Member
Join Date: Nov 2017
Old 05-03-2021 , 19:46   [L4D2] Random / Next Map [v1.1 | 8 May 2021]
Reply With Quote #1

Description:
It is a very simple plugin for changing random /next map when the end of the finale chapter.
Notice: You can add maps into the source only, no .txt/.cfg map list provided for editing.

Update Log:
Code:
v1.1 (8 May 2021)
- Added repeating random maps detection - Added random custom/official or both of custom/official maps
v1.0 (4 May 2021)
- Initialize plugin
Admin commands
  • Type !rm to change a random map immediately.
  • Type !nm to change a next map immediately. (on the finale chapter only, if not, it will use a random map.)

ConVars:
PHP Code:
// This file was auto-generated by SourceMod (v1.11.0.6675)
// ConVars for plugin "l4d2_nextmap.smx"


// Random map including official maps?
// 0=Off, 1=On
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
14d2_random_offical_on "1"

// How many random maps changed, then allow repeating changed maps?
// 0=Never until all map changed once
// -
// Default: "0"
// Minimum: "0.000000"
l4d2_custom_random_repeat_num "0"

// How many seconds does it wait for the changing map after finale win?
// -
// Default: "5.0"
// Minimum: "0.000000"
l4d2_maps_delay "5.0"

// Next map is random?
// 0=Off, 1=On
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_maps_random_on "1"

// L4D2 auto change next map version
// -
// Default: "v1.1"
l4d2_maps_version "v1.1"

// Random map including custom maps?
// 0=Off, 1=On
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d2_random_custom_on "1" 
Notice:
If you found anybugs, please feel free to let me know.

Pre-Installation:
Nope.

Installation:
unzip .zip to sourcemod directory.

Translations:
Only en, chi, zho
Attached Files
File Type: zip l4d2_nextmap_v1.1.zip (19.2 KB, 1092 views)
__________________

Last edited by pan0s; 03-24-2022 at 08:29.
pan0s is offline