Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
(MSC) Call Vote Blocker
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts, Miscellaneous
File Size
Posted
Updated
7.116 KB
12 Sep, 2020 @ 12:24am
14 Sep, 2020 @ 3:52am
2 Change Notes ( view )

Subscribe to download
(MSC) Call Vote Blocker

In 1 collection by [FoRcE]army_guy3
(MSC) Scripts
33 items
Description
MSC_ID: MSC_CallVote_Cancel

This is the nineth test script that runs on the Master Script Controller while hosting your own server.

This script is in alpha. Blocking call vote through vscripts is extremely difficult but this script should block ALL callvotes INCLUDING call vote exploits.

The script works by redirecting the vote index to an all talk vote. The vote can still pass but if it does then the worst thing that will happen is all talk toggle before the script reverts the value.


I have also programmed a function that will temporarily re-enable callvotes for 30 seconds. To enable this just type the following in chat:
/callvote


You will notice the callvote looks a bit weird when it blocks a vote but it does work.

UPDATE: This new version now allows you to choose which vote types are not allowed using the callvote_blocktypes.txt file located in your EMS directory.

The script will generate the default all blocked populated file on start up if it does not exist.

You can either remove the type from the list or include // in front of the name to allow that vote type.

Example:
//ChangeDifficulty

//RestartGame

//Kick

//ChangeMission

ReturnToLobby

//ChangeChapter


Would block the return to lobby vote type but allow everything else.


Note: This script requires the Master Script Controller and must be included in the "\Left 4 Dead 2\left4dead2\ems\masterload_scriptlist.txt".

You can subscribe to it here:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2203978515

You can copy the following line and paste it into chat as host to activate this subscript without messing with the files:
/MSC_ADDSCRIPT MSC_CallVote_Cancel

Newly added scripts will not activate until new round.

OR you can do it the old way by:

Copy and paste the following line onto a new line in the file:
MSC_CallVote_Cancel


If you're having trouble finding the ems directory. Go to Library - Left4dead2 - properties - browse local files.. - left4dead2 - ems


Special thanks to my two alpha testers Hyper_Warp and XNinjaRose for helping me alpha test these scripts.
4 Comments
Cody | MusicLockerStudio 14 Jul @ 10:40pm 
can the host still call a vote
_source.tv_ 1 Sep, 2023 @ 8:27am 
i just write exec votes.cfg in console with these commands
sm_cvar sv_vote_creation_timer 0
sm_cvar sv_vote_issue_change_difficulty_allowed 0
sm_cvar sv_vote_issue_change_map_later_allowed 0
sm_cvar sv_vote_issue_change_map_now_allowed 0
sm_cvar sv_vote_issue_change_mission_allowed 0
sm_cvar sv_vote_issue_kick_allowed 0
sm_cvar sv_vote_issue_restart_game_allowed 0
Mirror System X 21 Aug, 2023 @ 7:00am 
How to do that in Left 4 Dead 1?
Cletus 10 Aug, 2023 @ 11:08pm 
doesnt work