mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-04-20 22:15:43 +00:00
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:
parent
7af1f486a7
commit
72211fc2a2
@ -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).
|
I also re-used some code from [DoktorSAS T6 mapvote](https://github.com/DoktorSAS/PlutoniumT6Mapvote).
|
||||||
Huge thanks to both of them.
|
Huge thanks to both of them.
|
||||||
|
|
||||||

|

|
||||||
|
*Mouse and keyboard input. Settings: default*
|
||||||
|
|
||||||
|

|
||||||
|
*Controller input. Settings: red colors, blur level: 5, horizontal spacing: 100, accent mode: max*
|
||||||
|
|
||||||
## mapvote.gsc
|
## 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 has separate map and mode choices
|
||||||
- It supports custom gamemode names and custom cfg
|
- It supports custom gamemode names and custom cfg
|
||||||
- It rotates a completely random map and mode when there are no votes
|
- 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 good level of customization
|
||||||
- It has a debug mode to quickly preview the menu
|
- 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
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
BIN
mapvote/images/mapvote2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.0 MiB |
Binary file not shown.
@ -125,8 +125,8 @@ ListenForVoteInputs()
|
|||||||
|
|
||||||
self notifyonplayercommand("down", "+attack");
|
self notifyonplayercommand("down", "+attack");
|
||||||
self notifyonplayercommand("select", "+gostand");
|
self notifyonplayercommand("select", "+gostand");
|
||||||
self notifyonplayercommand("select", "+usereload");
|
self notifyonplayercommand("unselect", "+usereload");
|
||||||
self notifyonplayercommand("select", "+activate");
|
self notifyonplayercommand("unselect", "+activate");
|
||||||
self notifyonplayercommand("unselect", "+frag");
|
self notifyonplayercommand("unselect", "+frag");
|
||||||
|
|
||||||
if (GetDvarInt("mapvote_debug"))
|
if (GetDvarInt("mapvote_debug"))
|
||||||
@ -270,11 +270,11 @@ CreateVoteMenu()
|
|||||||
|
|
||||||
if (level.mapvote["colors"]["help_accent_mode"] == "standard")
|
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")
|
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"))
|
if (GetDvarInt("mapvote_debug"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user