Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

readme.md

Description | 內容

New Vote System (use L4D built-in votes UI) + Add custom vote

Note
This plugin is private, Please contact me
此為私人插件, 請聯繫本人

  • Apply to | 適用於

     L4D1
     L4D2
    
  • Image
    • Type !newvotes to open vote menu
      l4d2_vote_change_1
    • Menu - "Main Vote"
      l4d2_vote_change_2
    • Menu - "Change Difficulty"
      l4d2_vote_change_3
    • Menu - "Custom Vote", you can add more custom votes
      l4d2_vote_change_4
    • Valve Map + Custom Maps (automatic parsing of custom maps vpk files - no need to add map names manually)
      l4d2_vote_change_5
    • Use L4D built-in votes UI system
      l4d2_vote_change_6
  • How does it work?
    • Type !newvotes to open vote menu -> select -> call a vote -> F1 to yes or F2 to no
    • Admin can type !vp to force pass the current vote, or !vc to 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 xxxx to filter custom map list. Example: !newmapvote city, filter maps whose names contain "city".
      l4d2_vote_change_7
  • Require | 必要安裝

    1. left4dhooks
    2. [INC] Multi Colors
    3. builtinvotes
    4. sourcescramble
    5. l4dtoolz
    6. l4d2_fix_changelevel: Fix issues due to forced changelevel.
      • 修復手動更換地圖會遇到的問題
    7. l4d2_transition_info_fix: Fix issues after map transitioned, transition info is still retaining when changed new map by other ways.
      • 修復中途換地圖的時候(譬如使用Changelevel指令),會遺留上次的過關保存設定,導致滅團後倖存者被傳送到安全室之外或死亡
  • Support | 支援插件
    1. l4d2_vote_manager3: Unable to call valve vote if player does not have access
      • 沒有權限的玩家不能隨意發起官方投票
    2. l4d2_custom_difficulty: Set your own custom difficulty and damage + vote to change custom difficulty
      • 自訂遊戲難度、特感傷害、殭屍傷害、Tank傷害、Witch傷害 + 投票更換自訂的難度
  • 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"
  • 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>
  • 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
    • 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打開投票選單
      zho/l4d2_vote_change_1
    • "主要投票"
      zho/l4d2_vote_change_2
    • "更改難度"
      zho/l4d2_vote_change_3
    • "自定義投票",可自行新增
      zho/l4d2_vote_change_4
    • 官方圖與三方圖可以選擇關卡 (能自動識別並新增三方圖)
      zho/l4d2_vote_change_5
    • 使用官方的內建投票圖形UI
      zho/l4d2_vote_change_6
  • 原理

    • 輸入!newvotes -> 選擇項目 -> 發起投票 -> F1同意 或 F2不同意
    • 任何人發起投票後,管理員可輸入!vp一票同意;!vc一票否決。
    • 自動添加三方圖,文件位於configs/l4d2_vote_change.txt
      • 🟥 不要修改此文件
    • 打開文件 data/l4d2_vote_change.cfg 自行增加更多投票
      • 內有中文說明,可點擊查看
    • 三方圖投票清單支援模糊詞搜尋,譬如輸入!newmapvote 广,只會出現有"广"名稱的地圖
      zho/l4d2_vote_change_7
  • 投票選單表

    • 請看上方圖示
  • 指令中文介紹(點我展開)
    • 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"
  • 命令中文介紹(點我展開)
    • 打開投票主選單

       sm_newvotes
       sm_votes
    • 打開"自定義投票"選單

       sm_customvotes
    • 管理員可以強制通過 (權限: ADMFLAG_ROOT)

       sm_vp
    • 管理員可以強制否則 (權限: ADMFLAG_ROOT)

       sm_vc
    • 使用模糊詞過濾地圖清單

       sm_newmapvote <string>