mapvote 1.0.1

Fixed undo key for controllers.
Controllers are now fully supported

Removed the frag/+frag button for the undo option as it wasn't working for controllers

Moved the use/+activate key from the select option (by default F on PC and Square on Playstation controllers) to the undo option instead.

Updated the README to add controller support information and screenshot
This commit is contained in:
Resxt 2022-10-21 18:41:52 +02:00
parent 7af1f486a7
commit 72211fc2a2
6 changed files with 10 additions and 5 deletions

View File

@ -10,7 +10,11 @@ This is heavily inspired by [LastDemon99's IW5 mapvote](https://github.com/LastD
I also re-used some code from [DoktorSAS T6 mapvote](https://github.com/DoktorSAS/PlutoniumT6Mapvote).
Huge thanks to both of them.
![mapvote](images/mapvote.png)
![mapvote1](images/mapvote1.png)
*Mouse and keyboard input. Settings: default*
![mapvote1](images/mapvote2.png)
*Controller input. Settings: red colors, blur level: 5, horizontal spacing: 100, accent mode: max*
## mapvote.gsc
@ -23,6 +27,7 @@ This script can either be installed in the `scripts` folder or in the `scripts\m
- It has separate map and mode choices
- It supports custom gamemode names and custom cfg
- It rotates a completely random map and mode when there are no votes
- Controllers are fully supported and work out of the box
- It has a good level of customization
- It has a debug mode to quickly preview the menu

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 MiB

BIN
mapvote/images/mapvote1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

BIN
mapvote/images/mapvote2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

View File

@ -125,8 +125,8 @@ ListenForVoteInputs()
self notifyonplayercommand("down", "+attack");
self notifyonplayercommand("select", "+gostand");
self notifyonplayercommand("select", "+usereload");
self notifyonplayercommand("select", "+activate");
self notifyonplayercommand("unselect", "+usereload");
self notifyonplayercommand("unselect", "+activate");
self notifyonplayercommand("unselect", "+frag");
if (GetDvarInt("mapvote_debug"))
@ -270,11 +270,11 @@ CreateVoteMenu()
if (level.mapvote["colors"]["help_accent_mode"] == "standard")
{
buttonsHelpMessage = level.mapvote["colors"]["help_text"] + "Press " + level.mapvote["colors"]["help_accent"] + "[{+attack}] " + level.mapvote["colors"]["help_text"] + "to go down - Press " + level.mapvote["colors"]["help_accent"] + "[{+speed_throw}] " + level.mapvote["colors"]["help_text"] + "to go up - Press " + level.mapvote["colors"]["help_accent"] + "[{+gostand}] OR [{+activate}] " + level.mapvote["colors"]["help_text"] + "to select - Press " + level.mapvote["colors"]["help_accent"] + "[{+frag}] " + level.mapvote["colors"]["help_text"] + "to undo";
buttonsHelpMessage = level.mapvote["colors"]["help_text"] + "Press " + level.mapvote["colors"]["help_accent"] + "[{+attack}] " + level.mapvote["colors"]["help_text"] + "to go down - Press " + level.mapvote["colors"]["help_accent"] + "[{+speed_throw}] " + level.mapvote["colors"]["help_text"] + "to go up - Press " + level.mapvote["colors"]["help_accent"] + "[{+gostand}] " + level.mapvote["colors"]["help_text"] + "to select - Press " + level.mapvote["colors"]["help_accent"] + "[{+activate}] " + level.mapvote["colors"]["help_text"] + "to undo";
}
else if(level.mapvote["colors"]["help_accent_mode"] == "max")
{
buttonsHelpMessage = level.mapvote["colors"]["help_text"] + "Press " + level.mapvote["colors"]["help_accent"] + "[{+attack}] " + level.mapvote["colors"]["help_text"] + "to go " + level.mapvote["colors"]["help_accent"] + "down " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+speed_throw}] " + level.mapvote["colors"]["help_text"] + "to go " + level.mapvote["colors"]["help_accent"] + "up " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+gostand}] " + level.mapvote["colors"]["help_accent"] + "OR " + level.mapvote["colors"]["help_accent"] + "[{+activate}] " + level.mapvote["colors"]["help_text"] + "to " + level.mapvote["colors"]["help_accent"] + "select " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+frag}] " + level.mapvote["colors"]["help_text"] + "to " + level.mapvote["colors"]["help_accent"] + "undo";
buttonsHelpMessage = level.mapvote["colors"]["help_text"] + "Press " + level.mapvote["colors"]["help_accent"] + "[{+attack}] " + level.mapvote["colors"]["help_text"] + "to go " + level.mapvote["colors"]["help_accent"] + "down " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+speed_throw}] " + level.mapvote["colors"]["help_text"] + "to go " + level.mapvote["colors"]["help_accent"] + "up " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+gostand}] " + level.mapvote["colors"]["help_text"] + "to " + level.mapvote["colors"]["help_accent"] + "select " + level.mapvote["colors"]["help_text"] + "- Press " + level.mapvote["colors"]["help_accent"] + "[{+activate}] " + level.mapvote["colors"]["help_text"] + "to " + level.mapvote["colors"]["help_accent"] + "undo";
}
if (GetDvarInt("mapvote_debug"))