[RELEASE] Voting system v1.0
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
This voting system includes map and gametype voting (works on dedicated servers and in private match).
You can even decide if you want both or just one of them (map/gametype) to be voted.
It's adjustable by dvar.
The voting system pops-up on map-end with some kind of timer (33 seconds stock...)
Beta1 video (recorded on MAGIC's dedi):
//sorry for that 4:3 ratio, recorded on crt
Dvars (adjustable in server.cfg):
If there are any typing errors in sv_votemaps or sv_votemodes dvar, the server will display an error message when you're connected to it
Mapnames to choose from:
Modes to choose from:
Some config examples:
You want both, map and gametype to be voted:
//Make sure sv_voteAll is set to 1, sv_voteOnly doesn't matter then :
set sv_voteAll "1"
You want map voting only:
set sv_voteAll "0"
set sv_voteOnly "map"
You want gametype voting only
//NOTE: make sure you haven't set gametypes in your maprotation, check sv_maprotation dvar in your server.cfg
and delete the gametypes in front of maps, if needed.
set sv_voteAll "0"
set sv_voteOnly "gametype"
The other dvars should be kinda self-explanatory.
If the server is empty or no one votes for map, a map from sv_votemaps will be chosen randomly.
If gametype and map voting is on, but nobody votes for a gametype, the gametype will stay.
If only gametype voting is on, but no one votes, a gametype will be chosen randomly from sv_votemodes.
Players have 33 seconds to vote by default.
MAGIC's mapvote server: (running beta1)
connect 176.28.52.170:28972
About merging with other mods:
If the mod you want to merge this with isn't modifiying _gamelogic.gsc, you'll just have to copy-paste the folders of this mod to the mod you want to add voting to. (extract the .iwd before of course)
In case your mod does modify _gamelogic.gsc, compare both _gamelogic.gsc's with notepad++ and copy-paste the appropriate lines.
If you need any help, feel free to contact me.
Note:If you want to use this in private match make sure to change setDvar( "sv_changemethod", 1 ); to 0 in _vote_menu.gsc
Credits: iAegle for some of the menu parts, rest to me
Virustotal: https://www.virustotal.com/file/cf4de6d ... 357685804/