View Single Post
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 03-07-2020 , 15:12   Re: [L4D] Map changer with rating system
Reply With Quote #12

Fixed L4D2 support.

Updated.

Quote:
v.1.11 (11-Apr-2019)
- Fixed security issue in admin check
- Added restriction for repeated vote (interval: 1 min.)
- Added logging of all map changing vote actions to logs/vote_map.log
- Map change is now only allowed for admins with flag "k" (ADMFLAG_VOTE), or when only 1 player exists on server.

v.1.12 (10-May-2019)
- Added ability to choose vote access flag for default and for custom map.
- Added ability to rename (append campaign name) to server name, when current map is changed to custom.
// (???) - Added safer way to change map, using entity (thanks to Lux).
- Now, to inform players, center screen message is appearing for 5 sec. before actual changing the map (if number of players > 1).
- Added "callvote" redirection to sm_maps

v.1.13
- Converted to methodmaps

v.1.14 (19-Feb-2020)
- Added "l4d_mapchanger_delay" ConVar: Minimum delay (in sec.) allowed between votes
- Added "l4d_mapchanger_timeout" ConVar: How long (in sec.) does the vote last
- Added "l4d_mapchanger_announcedelay" ConVar: Delay (in sec.) between announce and vote menu appearing
- Added "l4d_mapchanger_allow_custom" ConVar: Display custom maps menu items? (1 - Yes, 0 - No)
- Added "l4d_mapchanger_servername_short" ConVar: Short name of your server (specify it, if you want custom campaign name will be prepended to it)
- Added "l4d_mapchanger_votemark_minplayers" ConVar: Minimum number of players to allow starting the vote for mark
- Added "l4d_mapchanger_default_voteaccess" ConVar: Flag allowed to access the vote for change to default maps. By default: "k" (StartVote)
- Added "l4d_mapchanger_custom_voteaccess" ConVar: Flag allowed to access the vote for change to custom maps. By default: "k" (StartVote)
- Fixed sm_veto, sm_votepass
- optimizations
- Added "Proper change level" to prevent memory leak in L4D2 (by Lux), added similar fix for L4D1 just in case
- new #define PRIVATE_STUFF 1 - to unlock some private options, e.g. specify nicknames for disallow voting.

v.1.15 (07-Mar-2020)
- Removed "Proper change level" method from l4d1 since it produce some strange behaviour.
- Config files are renamed and splitted: configs/MapChanger.txt =>
* MapChanger.l4d1.txt
* MapChanger.l4d2.txt
- L4D1 custom maps config is appended with a lot of campaigns.
- L4D2 custom maps config is filled with campaigns from "Installer Extra Campaigns" tool by dr.lex:
https://www.gamemaps.com/details/21899

// TODO:
- Sigs for changelevel Windows L4D1 and try to figure out why this method is bugged in l4d1.
- improve server host name renamer
- remove custom map configs and replace with direct reading from mission files (or use Rikka's ACS API).
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 03-07-2020 at 15:13.
Dragokas is offline