New Vote System (use L4D built-in votes UI) + Add custom vote
Note
This plugin is private, Please contact me
此為私人插件, 請聯繫本人
-
Apply to | 適用於
L4D1 L4D2
-
How does it work?
- Type
!newvotesto open vote menu -> select -> call a vote -> F1 to yes or F2 to no - Admin can type
!vpto force pass the current vote, or!vcto force cancel the current vote - Automatic parsing of custom maps vpk files - no need to add map names manually,file is in configs/l4d2_vote_change.txt
- 🟥 Don't modify this file
- Customize vote, add more custom vote in data/l4d2_vote_change.cfg
- Manual in this file, click for more details...
- Type
!newmapvote xxxxto filter custom map list. Example:!newmapvote city, filter maps whose names contain "city".
- Type
-
Require | 必要安裝
- left4dhooks
- [INC] Multi Colors
- builtinvotes
- sourcescramble
- l4dtoolz
- l4d2_fix_changelevel: Fix issues due to forced changelevel.
- 修復手動更換地圖會遇到的問題
- l4d2_transition_info_fix: Fix issues after map transitioned, transition info is still retaining when changed new map by other ways.
- 修復中途換地圖的時候(譬如使用Changelevel指令),會遺留上次的過關保存設定,導致滅團後倖存者被傳送到安全室之外或死亡
-
Support | 支援插件
- l4d2_vote_manager3: Unable to call valve vote if player does not have access
- 沒有權限的玩家不能隨意發起官方投票
- l4d2_custom_difficulty: Set your own custom difficulty and damage + vote to change custom difficulty
- 自訂遊戲難度、特感傷害、殭屍傷害、Tank傷害、Witch傷害 + 投票更換自訂的難度
- l4d2_vote_manager3: Unable to call valve vote if player does not have access
-
ConVar | 指令
- cfg/sourcemod/l4d2_vote_change.cfg
// Players with these flags have kick immune. (Empty = Everyone, -1: Nobody) l4d2_vote_change_Kick_immune_flag "z" // Players with these flags have ban immune. (Empty = Everyone, -1: Nobody) l4d2_vote_change_ban_immune_flag "z" // Ban how many minutes. (0 = Permanent) l4d2_vote_change_ban_minutes "0" // Delay to start another vote after vote ends. l4d2_vote_change_delay "60" // 0=Plugin off, 1=Plugin on. l4d2_vote_change_enable "1" // Numbers of real survivor and infected player required to start a vote. l4d2_vote_change_required "1" // If 1, spectator can call a vote l4d2_vote_change_spectator_call_vote "0" // If 1, spectator can participate any vote (vote yes, vote no) l4d2_vote_change_spectator_join_vote "1"
- cfg/sourcemod/l4d2_vote_change.cfg
-
Command | 命令
-
Open New Vote Menu
sm_newvotes sm_votes
-
Open Custom Vote Menu
sm_customvotes
-
Admin can force pass the current vote (Adm Required: ADMFLAG_ROOT)
sm_vp
-
Admin can force cancel the current vote (Adm Required: ADMFLAG_ROOT)
sm_vc
-
Filter custom map name list (fuzzy matching)
newmapvote <string>
-
-
API | 串接
- l4d2_vote_change.inc
library name: l4d2_vote_change
- l4d2_vote_change.inc
-
Translation Support | 支援翻譯
translations/l4d2_vote_change.phrases.txt -
Changelog | 版本日誌
-
v1.7h (2026-1-20)
- Custom map vote supports fuzzy matching, use
!newmapvote <string> - Update translation
- Custom map vote supports fuzzy matching, use
-
v1.6h (2025-2-12)
- Fixed Error
-
v1.5h (2024-8-16)
- Update data file
- Update translation
- Add API and include
- Update menu again
-
v1.4h (2024-8-4)
- Update data file
- Update vote menu
- Add L4D1 support
- Player can now customize vote
- Update translation
-
v1.3h (2024-4-30)
- Add data file to enable/disable each vote option
-
v1.2h (2024-2-8)
- Fixed "Restart Level" not working in versus
-
v1.1h (2023-6-11)
- Initial Release
-
新型的投票系統,可自行新增投票 (使用官方內建的投票)
-
原理
- 輸入
!newvotes-> 選擇項目 -> 發起投票 -> F1同意 或 F2不同意 - 任何人發起投票後,管理員可輸入
!vp一票同意;!vc一票否決。 - 自動添加三方圖,文件位於configs/l4d2_vote_change.txt
- 🟥 不要修改此文件
- 打開文件 data/l4d2_vote_change.cfg 自行增加更多投票
- 內有中文說明,可點擊查看
- 三方圖投票清單支援模糊詞搜尋,譬如輸入
!newmapvote 广,只會出現有"广"名稱的地圖
- 輸入
-
投票選單表
- 請看上方圖示
-
指令中文介紹(點我展開)
- cfg/sourcemod/l4d2_vote_change.cfg
// 擁有這權限的人無法被投票踢出伺服器 (留白 = 任何人無法被踢, -1: 所有人都可以被踢) l4d2_vote_change_Kick_immune_flag "z" // 擁有這權限的人無法被投票永久封禁 (留白 = 任何人無法被永久封禁, -1: 所有人都可以被永久封禁) l4d2_vote_change_ban_immune_flag "z" // 過X秒後才能再發起投票. l4d2_vote_change_delay "60" // 0=插件關閉, 1=插件開啟. l4d2_vote_change_enable "1" // 倖存者與特感隊伍總共要有X位真人玩家在場才能發起投票. l4d2_vote_change_required "1" // 如果為1, 旁觀者可以發起投票 l4d2_vote_change_spectator_call_vote "1" // 如果為1, 旁觀者可以參與投票 (按F1同意, 按F2不同意) l4d2_vote_change_spectator_join_vote "1"
- cfg/sourcemod/l4d2_vote_change.cfg
-
命令中文介紹(點我展開)
-
打開投票主選單
sm_newvotes sm_votes
-
打開"自定義投票"選單
sm_customvotes
-
管理員可以強制通過 (權限: ADMFLAG_ROOT)
sm_vp
-
管理員可以強制否則 (權限: ADMFLAG_ROOT)
sm_vc
-
使用模糊詞過濾地圖清單
sm_newmapvote <string>
-











