- Different types of Cooldown(timeout) are available.
- All vote types are supported.
- All original features of L4D Vote Manager 2 by madcap are kept
New method of comparing access flag strings with a client's flag string(someone correct me if there's an easier way)
- Translations are now used.*cough*looking for translators*cough*
- Logs to its own file and/or console.(log file for this plugin is in logs/votemanager.txt
- Complies with SM 1.3.0+ coding standards.
Simple. The reason this one was made is because valve broke the events for voting back in 2010. This crippled madcap's original plugin because now it couldn't tell when votes ended/passed/failed. This version hooks into usermessages valve implemented some time ago. This is a completely working rewrite.
Setting up admin_overrides.cfg:
- sm_veto and sm_pass
- sm_customvote <team or use 0 for all teams> <custom issue> <optional command to run>
Version 1.1 now uses admin overrides instead of access cvars, add this block of code to your admin_overrides.cfg in sourcemod\configs\
Place the code in between the brackets. Please update your .cfg after updating to 1.2
Added kick_immunity override on version 1.2.2
Now you can edit the flag values to what you want.
auto created config by the name of l4d2_votemanager
// This file was auto-generated by SourceMod (v1.4.0-dev)
// ConVars for plugin "l4d2_vote_manager3 1.2.smx"
// Clients can call votes after this many seconds
// Default: "15.0"
// 0=cooldown is shared 1=cooldown is independant
// Default: "1"
// 1=Log vote info to files 2=Log vote info to server; add the values together if you want
// Default: "3"
// Respect admin immunity levels in kick votes(only when admin kicking admin)
// Default: "1"
// Tanks have immunity against kick votes
// Default: "1"
- Implement custom votes(no idea if they will even work)
- Translations for console logging?
1.0 - Initial release
1.1 - Fixed a few things, now uses command overrides for access instead of cvars.
1.2 - Changed ClientHasAccess stock to change the string that gets passed through to all lower case to prevent bypassing CheckCommandAccess, please change your admin_overrides.cfg to comply with this*look above*
1.2.2 - Made some changes to veto/pass commands, VoteFail and VotePass usermessages are no longer intercepted and are now just read. added "kick immunity" override(look above). People with kick_immunity flags can only be vote kicked by other players with the kick_immunity flags. Added true as the 4th variable for CheckCommandAccess. Update your phrases as well.
Please notify me if you still have problems with veto/pass or wrong players being kicked after a kick vote passes.
1.2.3 - Fixed dumbest mistake ever, which automatically disallowed all pass/veto commands.
1.2.4 - Fixed kick votes not switching VOTE_STATUS to VOTE_POLLING(thanks ilyaadminman
1.2.5 - Fixed issues regarding strings. Kick votes now clear vote strings if they are intercepted preventing a bug with future kick votes.
1.2.6 - Fixed tank kick checking not checking team, which would lead to false positives.
1.2.7 - Fixed "callvote kick" bug/exploit
1.3.0 - Added sm_customvote to call custom votes, "custom" access flag is needed to call custom votes. Veto and Pass will now not run if a vote will not successfully veto or pass. Example admin_overrides is now included with plugin.
1.3.1 - Fixed strings not getting set to lower case which caused admin_overrides problems. Added third parameter to sm_customvote that is for an optional command. Ex: sm_customvote 0 "Slay Everyone" "sm_slay @all" when the vote passes "sm_slay @all" will run from the client who started the vote, it will not override any access flags.
Added German translations, thanks to Dont Fear The Reaper
Please update your translations as they have changed.
1.3.2 - Fixed spectator bug reported by ilyaadminman
1.3.3 - Fixed GetClientByName formatting and checking wrong strings
(12/9/11) Re-uploaded to fix warnings with translations
1.3.4 - Fixed veto passing votes by mistake.
1.3.5 - Translations fixed to actually work. ilyaadminman's has improved his Russian translations.
The current beta can be found HERE
1.3.0 rc1(status: done): sm_customvote was added. Uses "custom" admin override. Please give some feedback.
1.3.0 rc2(status: done): All team custom votes have been fixed. An example admin_overrides.cfg is now packaged with the plugin.
: Helped me iron out some bad bugs. He deserves bacon.
Dont Fear The Reaper
: Contributed German translations.
: Contributed Russian translations.