This is a port of my MW3 chat_commands script (version 1.3.2)
ba1322b933
The array declarations such as array = ["value"] were changed to use the array function
The tell function (player chat) was changed IPrintLnBold. More explanation in the README
Support for clantags was added. Clantags were changing the player's name which would then make the script fail to find the player when typing his name. This has been tested and fixed. More explanation in the README
Errors and util functions related to camo were removed. The way camo works seems to be really different than MW3 so work is required to implement these again
Just a refactor that doesn't affect any script or add anything new.
Plutonium T6 now supports loading source scripts so compiling them isn't needed anymore
https://plutonium.pw/docs/changelog/#r3408
[Refactor]
Removed all compiled scripts
Moved all source scripts to the main folder instead of a source folder
Renamed all source scripts to remove the source tag at the end
Removed notions of compiled and source scripts in the repository's README
Made it possible to have a default randomized map and mode from a user defined list when the human players count is between two values defined by the user
Added dvar mapvote_default_rotation_maps
Added dvar mapvote_default_rotation_modes (MP only)
Added dvar mapvote_default_rotation_min_players
Added dvar mapvote_default_rotation_max_players
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
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
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
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
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
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