78 Commits

Author SHA1 Message Date
Resxt
4e7e2f0cdc get_player_guid 1.0.0 2023-01-08 23:31:29 +01:00
Resxt
0ffa6410a6 mapvote 2.0.1
Handling of disconnecting players added
Now whenever a player disconnects his votes will be removed (both in the vote logic and in the HUD)
2022-12-01 19:04:34 +01:00
Resxt
170ffd8a0f
Update README.md 2022-10-27 15:33:20 +02:00
Resxt
7dbb32be42
Update README.md 2022-10-27 15:19:23 +02:00
Resxt
ff3e41c419 mapvote 2.0.0
Added support for zombies mode.
Using the mapvote_maps dvar players can set a display name, the map name and the cfg name

Added mapvote_limits_maps dvar
Added mapvote_limits_modes dvar
Added mapvote_limits_max dvar
Users can now define maps and/or modes limits to have a precise amount of maps and/or modes on screen even if the available amount is above the max limit. The max limit is now 12 but can be lowered using a dvar

Changed right click listener wait time from 0.35s to 0.25s for a better user experience

Hide the map or mode when there's only one in the mapvote.
It will still rotate to it but it's hidden so that the menu looks cleaner. The menu is centered accordingly

Fixed the menu centering calculation, it's now really centered

Removed the need to write map names in a certain way to work, users can now write map names the way they want
2022-10-27 15:17:27 +02:00
Resxt
6e44160fc1
Update README.md 2022-10-25 16:36:22 +02:00
Resxt
ff74d9561c mapvote 1.1.0
Added mapvote_sounds_menu_enabled dvar.
You can now enable or disable the sounds playing in the menu when selecting an item, moving up or down and canceling a choice

Added mapvote_sounds_timer_enabled dvar.
You can now choose if the timer will start beeping when there's only 5s left or not

Added mapvote_display_wait_time dvar.
Changed the wait time before displaying the menu from 3s to a configurable dvar

Replace most level.mapvote variables with GetDvar instead to avoid setting too much variables when we can simply retrieve the dvar value (try to avoid hitting the variable limit that the game has)

Replace start notify and end function listener with a direct with direct function calls for better compatibility for future updates
2022-10-25 16:30:07 +02:00
Resxt
0b0b4620f1
Update README.md 2022-10-23 11:20:31 +02:00
Resxt
1b72a22a63 mapvote 1.0.4
Fix missing include error in zombies
2022-10-22 15:55:38 +02:00
Resxt
d2c3a04101
Update README.md 2022-10-22 15:35:08 +02:00
Resxt
afd6c6b0f0
Update README.md
Change image clicks to redirect to original size image instead of Github file
2022-10-21 23:34:56 +02:00
Resxt
75855f76bc
Update README.md 2022-10-21 23:27:25 +02:00
Resxt
88d984fc82
Update README.md 2022-10-21 23:24:33 +02:00
Resxt
0ed53a1b8c mapvote 1.0.3
Changed modes mode name and cfg name separator from semi-colon (;) to comma (,) since the semi-colon seems to not be parsed properly when set through a cfg file

Added more debugging prints:
- Most voted map votes and index
- Most voted map votes and index
- Final map name, mode name and mode cfg just before rotation, all separated in multiple prints to detect any empty/wrong string

Removed old comments
2022-10-21 22:53:44 +02:00
Resxt
2dc19c0040
Update README.md
Fix configuration

The example CFG didn't have set "mapvote_enable" 1
Also there were unexpected commas between dvar name and values
2022-10-21 21:52:51 +02:00
Resxt
98d005b57e mapvote 1.0.2
Changed all notifies with the mapvote prefix to avoid conflicts with other scripts

Fixed some typos in the code comments

Removed self notifyonplayercommand("unselect", "+frag"); as it should have been removed in 1.0.1
2022-10-21 21:18:39 +02:00
Resxt
72211fc2a2 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
2022-10-21 18:41:52 +02:00
Resxt
7af1f486a7
Update README.md
typo
2022-10-21 12:10:56 +02:00
Resxt
d71e150ccc
Update README.md 2022-10-21 12:07:55 +02:00
Resxt
403d54a6b8
Update README.md
Remove example values in the DVARs table to allow table to be displayed normally (example values column was out of the screen, a right scroll was needed to display it)
The Configuration section is used for the examples instead
2022-10-21 12:03:25 +02:00
Resxt
92c37b15ea Create mapvote 2022-10-20 22:21:08 +02:00
Resxt
ed74e92e0f
Update README.md 2022-10-20 15:01:49 +02:00
Resxt
2a571b2885
Update README.md 2022-10-20 14:50:40 +02:00
Resxt
1497ca574b
Update README.md 2022-10-20 14:43:08 +02:00
Resxt
bff951c904
Update README.md 2022-10-20 14:41:22 +02:00
Resxt
6c11dcf986
Update README.md 2022-10-20 14:33:34 +02:00
Resxt
1c11413a77
Delete .gitattributes 2022-10-20 14:29:09 +02:00
Resxt
713b61e7f9 Initial commit 2022-10-20 14:26:33 +02:00