[Release] Black ops II Mapvote for Zombies and Multiplayer
-
Black ops II Mapvote for Zombies and Multiplayer
Developed by DoktorSAS
Special thanks to @ZECxR3ap3r & @JezuzLizard for their contributions to the development. Additional thanks to @John Kramer for image editing and birchy for the LUI starting point.
Introduction
This project, initiated in March 2020, enables players to vote for the next map and/or game mode in upcoming matches. The project does not provide compiled files; if needed, compile the file using the gsc-tool.
Black Ops II: multiplayer
How to setup the mapvote step by step
-
Compile the Script:
Compile themapvote.gsc
file using a GSC Compiler. This step is not required if you are working with the plutonium client. -
Place the Compiled File:
Copy the compiled file into your directory%localappdata%\Plutonium\storage\t6\scripts\mp\
. -
Configure Server File:
Copy the content ofmapvote.cfg
into your server configuration file (e.g.,server.cfg
,dedicated_mp.cfg
,dedicated.cfg
, etc.) that manages the Multiplayer server. -
Edit Dvars for Aesthetic Parameters:
- Set the Dvar
mv_maps
to specify the maps shown in the mapvote. For example:set mv_maps "mp_studio mp_nuketown_2020 mp_carrier mp_drone mp_slums"
- Set the Dvar
mv_enable
to 1 to activate the mapvote on your Multiplayer server. - For random gametypes, set the Dvar
mv_gametypes
specifying the gametype ID (dm, war, sd, etc.) and the file to run if necessary. For example:set mv_gametypes "[email protected] [email protected]"
- Set the Dvar
-
(Plutonium ONLY) LUI UI with mod support:
- Take the content of the folder
T6Mapvote
and place it in your folder%localappdata%\Plutonium\storage\t6\mods\
- Set the dvar
fs_game
in your server configuration file (e.g.,server.cfg
,dedicated_zm.cfg
,dedicated.cfg
, etc.) - Set the dvar
mv_lui
to in your server configuration file (e.g.,server.cfg
,dedicated_zm.cfg
,dedicated.cfg
, etc.)
- Take the content of the folder
-
Run the Server:
Start the server and immerse yourself in the map voting experience. You're done!
Settings: dvars
Dvar Default Value Description mv_enable
1 Enable/Disable the mapvote (1 for enable, 0 for disable). mv_maps
"" List of maps that can be voted on the mapvote; leave empty for all maps. mv_time
20 Time (in seconds) allotted for voting. mv_credits
1 Enable/Disable credits of the mod creator. mv_socialname
"SocialName" Name of the server's social platform (Discord, Twitter, Website, etc.). mv_sentence
"Thanks for playing" Thankful sentence displayed. mv_votecolor
"5" Color of the vote number. mv_arrowcolor
"white" RGB color of the arrows. mv_selectcolor
"lighgreen" RGB color when a map gets voted. mv_backgroundcolor
"grey" RGB color of the map background. mv_blur
"3" Blur effect power. mv_gametypes
"" Dvar to have multiple gametypes with different maps. Specify gametype IDs and associated files. mv_extramaps
0 Enable 6 maps mapvote when set to 1. mv_allowchangevote
1 Enable/Disable the possibility to change vote while the time is still running (1 for enable, 0 for disable). mv_randomoption
1 If set to 1 it will not display which map and which gametype the last option will be (Random) mv_minplayerstovote
1 Set the minimum number of players required to start the mapvote mv_lui
1 If set to 1 it will use the LUA/LUI ui interface (It required the mod support and the lua files) Black ops II: zombies
How to setup the mapvote step by step
-
Compile the Script:
Compile themapvote.gsc
file using a GSC Compiler. This step is not required if you are working with the plutonium client. -
Place the Compiled File:
Copy the file into your directory%localappdata%\Plutonium\storage\t6\scripts\zm\
. -
Configure Server File:
Copy the content ofmapvote.cfg
into your server configuration file (e.g.,server.cfg
,dedicated_zm.cfg
,dedicated.cfg
, etc.) that manages the Zombies server. -
Edit Dvars on your configuration file:
- Set the Dvar
mv_maps
to specify the maps shown in the mapvote. For example:set mv_maps "zm_tomb zm_buried zm_town zm_busdepot zm_farm zm_transit zm_prison zm_highrise zm_nuked"
- Set the Dvar
mv_enable
to 1 to activate the mapvote on your Zombies server.
- Set the Dvar
-
Run the Server:
Start the server and enjoy the map voting experience. You're done!
Download
It is possbile to download either the source code or the released code. The source code is not fully test and could run into issue that need to be reported while the release is tested code that could have some bug not fixed but working as intended.
I highly recommend using the unreleased version and keeping it up to date for implementing features and patching reported bugs.
The following buttons will direct you to the corresponding pages: -
-
Report bugs in the comment of this post
Report all problems and i'll fix it, everytime i'll fix a problem i'll change the version on the Post -
Sorex Thank you so so so much. Any bugs you find will be reported
-
Sorex I found something, it is nothing serious, I already managed and ended up solving it, the problem is basically when the game does not end and none of the teams get the maximum points but there were deaths and therefore there is finalkillcam so what happens is that when the game ends, the mapvote is loaded and when the killcam also ends, there are many solutions, I solved it that when a team obtains points, the mapvote is not executed in ontimelimit
-
Sorex And well something that maybe you already realized but that maybe is difficult to solve is that in ontimelimit the wait at the end if you put 20 or 10 it does not finish 10 or 20 seconds and the game ends, that is, when there is no killcam.
-
alejandrodarz Although as long as there is even one death, the killcam will come out and it is almost always there will be, since as the only one there will not be, there is only 1 player
-
alejandrodarz i'll fix this bugs, i have to make more test on all gamemode. When i can i solve all
-
Sorex Look at how I solved the problem of when the game ends and there is no killcam, and well I also modified the mapvote a bit. I have tested it for the following TDM, GUN, SHRP, KOTH, DM, OIC, and SAS modes:
https://www.youtube.com/watch?v=X6zK7RygEHU
And well here is another video of how the mapvote was modified:
https://www.youtube.com/watch?v=29sZ7zYjpNU -
This post is deleted!
-
alejandrodarz i solved this bug, i made i tiny update, i did not check if there a players with kills. I did not att getkills() for team gamemodes, now all work fine. Can you leave the credits somewhere? I mean, you can keep my signature. Because i worked hard and i want the credits
-
Sorex Of course bro you deserve it, that will be there, don't worry what I taught above is my test server
-
alejandrodarz i added the notification before the game end, on next update i'll fix the text in mid i'll made something better then a normal text
-
Sorex I was going to tell you about another bug but with the notification you solved it and it was that at the end after the killcam the iprint does not appear, that is, it does not appear the maps that the players vote
-
Sorex okok if you need something of what you saw in my video without problem you can tell me, that is to say from my point of view it would not be bad to add the sounds when changing the map or when choosing the map
-
Sorex you can put a fadein and a saclefont so that it is not so rough
-
Sorex I had to put the precacheshader of the gradient in init () below where it was I did not want to load
-
Sorex camera keeps moving when changing map
-
alejandrodarz Have you start the thread to block the angles?
-
Sorex I copied exactly the file you uploaded and it does too
-