mirror of
https://github.com/Resxt/Plutonium-IW5-Scripts.git
synced 2025-04-19 20:52:54 +00:00
mapvote 1.0.2
Added the possibility to have no maps at all in the mapvote_maps dvar. This is useful for when you want to organise your maps dvar and you don't want any MW3 map for example
This commit is contained in:
parent
809c62399f
commit
12fbe10be8
@ -48,7 +48,7 @@ Here are the dvars you can configure:
|
|||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
| mapvote_enable | Toggle whether the mapvote is activated or not. 0 is off and 1 is on | 0 | 0 or 1 |
|
| mapvote_enable | Toggle whether the mapvote is activated or not. 0 is off and 1 is on | 0 | 0 or 1 |
|
||||||
| mapvote_debug | Toggle whether the mapvote runs in debug mode or not. This will display the mapvote menu a few seconds after starting the game. 0 is off and 1 is on | 0 | 0 or 1 |
|
| mapvote_debug | Toggle whether the mapvote runs in debug mode or not. This will display the mapvote menu a few seconds after starting the game. 0 is off and 1 is on | 0 | 0 or 1 |
|
||||||
| mapvote_maps | A list of the maps that are available for rotation | Every maps including DLC maps and Plutonium DLC maps (excluding [Face Off maps](https://callofduty.fandom.com/wiki/Face_Off#Modern_Warfare_3)) | Any text followed by a comma (,) and then the map code name (mapname). Each block is separated with a colon (:) |
|
| mapvote_maps | A list of the maps that are available for rotation | Every maps including DLC maps and Plutonium DLC maps (excluding [Face Off maps](https://callofduty.fandom.com/wiki/Face_Off#Modern_Warfare_3)) | Any text followed by a comma (,) and then the map code name (mapname). Each block is separated with a colon (:). A single space `" "` is also accepted if you don't want any maps for this dvar |
|
||||||
| mapvote_modes | A list of the modes that are available for rotation. The first parameter is how the mode will be displayed, it can be set to anything you like, the second parameter is the name of the DSR file to load | "Team Deathmatch,TDM_default:Domination,DOM_default" | Any text followed by a comma (,) and then the cfg name. Each block is separated with a colon (:) |
|
| mapvote_modes | A list of the modes that are available for rotation. The first parameter is how the mode will be displayed, it can be set to anything you like, the second parameter is the name of the DSR file to load | "Team Deathmatch,TDM_default:Domination,DOM_default" | Any text followed by a comma (,) and then the cfg name. Each block is separated with a colon (:) |
|
||||||
| mapvote_additional_maps_dvars | A list of dvar name(s) that contain additional maps, respecting the `mapvote_maps` format. See [Adding a custom map](#adding-a-custom-map) | "" | Any valid dvar name that has a list of maps as value. Each dvar name is separated with a colon (:) |
|
| mapvote_additional_maps_dvars | A list of dvar name(s) that contain additional maps, respecting the `mapvote_maps` format. See [Adding a custom map](#adding-a-custom-map) | "" | Any valid dvar name that has a list of maps as value. Each dvar name is separated with a colon (:) |
|
||||||
| mapvote_limits_maps | The amount of maps to display. 0 will handle it automatically | 0 | Any plain number from 0 to `mapvote_limits_max` |
|
| mapvote_limits_maps | The amount of maps to display. 0 will handle it automatically | 0 | Any plain number from 0 to `mapvote_limits_max` |
|
||||||
@ -138,6 +138,10 @@ The script will then automatically read all values from `mapvote_maps` and `mapv
|
|||||||
You can simply repeat this process to add even more dvars in case you go up to the characters limit again or if you simply want to organize your maps dvars.
|
You can simply repeat this process to add even more dvars in case you go up to the characters limit again or if you simply want to organize your maps dvars.
|
||||||
For example you could create an additional dvar named `mapvote_maps_bo2` that holds some maps and then add it to the list of dvars like this `mapvote_additional_maps_dvars "mapvote_maps_mw2:mapvote_maps_bo2"`.
|
For example you could create an additional dvar named `mapvote_maps_bo2` that holds some maps and then add it to the list of dvars like this `mapvote_additional_maps_dvars "mapvote_maps_mw2:mapvote_maps_bo2"`.
|
||||||
|
|
||||||
|
Note that you can change the value of `mapvote_maps` to a single space `" "` if you don't want any map in this dvar.
|
||||||
|
It will then only get maps from the additional dvars and will ignore the original dvar.
|
||||||
|
This can be useful to organise your maps dvars.
|
||||||
|
|
||||||
### Notes
|
### Notes
|
||||||
|
|
||||||
- If right click is set to toggle ads then pressing right click will make the player go up by one every 0.25s until he right clicks again.
|
- If right click is set to toggle ads then pressing right click will make the player go up by one every 0.25s until he right clicks again.
|
||||||
|
@ -78,9 +78,16 @@ InitVariables()
|
|||||||
mapsString = GetDvar("mapvote_maps");
|
mapsString = GetDvar("mapvote_maps");
|
||||||
|
|
||||||
foreach (mapDvar in StrTok(GetDvar("mapvote_additional_maps_dvars"), ":"))
|
foreach (mapDvar in StrTok(GetDvar("mapvote_additional_maps_dvars"), ":"))
|
||||||
|
{
|
||||||
|
if (mapsString == " ")
|
||||||
|
{
|
||||||
|
mapsString = GetDvar(mapDvar);
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
mapsString = mapsString + ":" + GetDvar(mapDvar);
|
mapsString = mapsString + ":" + GetDvar(mapDvar);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mapsArray = StrTok(mapsString, ":");
|
mapsArray = StrTok(mapsString, ":");
|
||||||
voteLimits = [];
|
voteLimits = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user