Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

readme.md

Description | 內容

Increase gas cans in scavenge events, and to be randomly placed by custom list of gas can locations.

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

  • Apply to | 適用於

     L4D2 Coop/Versus/Realism/Scavenge
    
  • Video | 影片展示

  • Image | 圖示
    • C1m4
      l4d2_remix_gascan_1
      l4d2_remix_gascan_4
      l4d2_remix_gascan_5

    • C6m3
      l4d2_remix_gascan_2

    • C12m2
      l4d2_remix_gascan_3

  • How does it work?
    • In coop/versus/realism mode, C1M4, C6M3, C14M2 map, increase gas cans in scavenge events
    • In scavenge mode, increase gas cans in scavenge events
    • Gascans are randomly placed by custom data file: data/l4d2_remix_gascan.cfg
      • Gas can locations are different every time. (But the total gas cans are still the same)
  • Require | 必要安裝

    1. left4dhooks
  • ConVar | 指令
    • cfg/sourcemod/l4d2_remix_gascan.cfg
       // Determines if gas cans should be scrambled when scavenge events in coop/versus/realism mode.
       l4d2_remix_gascan_scramble_coop "1"
      
       // Determines if a message should be sent when the gas cans are scrambled in Scavenge mode.
       l4d2_remix_gascan_notify_scavenge "0"
      
       // Value = How many Gas Cans to spawn from the pool in coop/versus/realism mode by default.
       l4d2_remix_gascan_count_coop "30"
      
       // Determines if gas cans should be scrambled at the start of a round in Scavenge mode.
       l4d2_remix_gascan_scramble_scavenge "1"
      
       // Determines if a message should be sent when the gas cans are scrambled in coop/versus/realism mode.
       l4d2_remix_gascan_notify_coop "0"
      
       // Value = How many Gas Cans to spawn from the pool in Scavenge mode.
       l4d2_remix_gascan_can_count_scavenge "16"
  • Command | 命令
    • Enters edit mode to allow changing can locations. (Adm required: ADMFLAG_ROOT)

       sm_editcans
    • Stores the current scavenger can locations into a file. (Adm required: ADMFLAG_ROOT)

       sm_savecans
    • Removes all gas cans. (Adm required: ADMFLAG_ROOT)

       sm_removecans
    • Reloads all gas cans from file. (Adm required: ADMFLAG_ROOT)

       sm_reloadcans
    • Adds a gascan in your current position. (Adm required: ADMFLAG_ROOT)

       sm_addcan
    • Deletes a gascan you are looking at. (Adm required: ADMFLAG_ROOT)

       sm_delcan
    • Enters edit mode to allow changing can locations in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_editscavengecans
    • Stores the current scavenger can locations into a file in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_savescavengecans
    • Removes all gas cans in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_removescavengecans
    • Reloads all gas cans from file in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_reloadscavengecans
    • Adds a gascan in your current position in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_addscavengecan
    • Deletes a gascan you are looking at in scavenge mode. (Adm required: ADMFLAG_ROOT)

       sm_delscavengecan
  • Q&A

    • How to spawn gascan
      • Coop/Versus/Realism

        • Change mode to coop, go to map
        • Admin types !editcans to enters edit mode
        • Type !addcan to add a gascan in your current position or !delcan to remove a gascan you are looking at.
        • Type !savecans to stores all gas can locations into a file.
          • The file would be cfg\remix_gascan\coop\xxxxx.txt
          • xxxxx is map name
        • Edit data/l4d2_remix_gascan.cfg and "coop" "XX" to dedcide how many Gas Cans to spawn from the file.
        • Restart Map
      • Scavenge

        • Change mode to scavenge, go to map
        • Admin types !editscavengecans to enters edit mode
        • Type !addscavengecan to add a gascan in your current position or !sm_delscavengecan to remove a gascan you are looking at.
        • Type !savescavengecans to stores all gas can locations into a file.
          • The file would be cfg\remix_gascan\scavenge\xxxxx.txt
          • xxxxx is map name
        • Edit data/l4d2_remix_gascan.cfg and "scavenge" "XX" to dedcide how many Gas Cans to spawn from the file.
        • Restart Map
  • Changelog | 版本日誌
    • v1.0h (2023-5-31)

      • Data Support
      • Remake code, convert code to latest syntax
      • Fix warnings when compiling on SourceMod 1.11.
      • Optimize code and improve performance
      • "coop", "scavenge" files respectively
      • Fixed Edit mode Error
    • Original & Credit


中文說明

汽油桶關卡或清道夫模式可以隨機放置自己想要的汽油桶位置與數量

  • 原理

    • 在戰役/對抗/寫實模式中,C1M4、C6M3、C14M2的汽油桶關卡,可以自由新增汽油桶位置與數量
    • 在清道夫模式中,可以自由新增汽油桶位置與數量
    • 從文件裡挑選汽油桶生成數量: data/l4d2_remix_gascan.cfg
      • 每次生成汽油桶的位置會不一樣 (但數量還是一樣)
  • 指令中文介紹 (點我展開)
    • cfg/sourcemod/l4d2_remix_gascan.cfg
       // 為1時,在戰役/對抗/寫實 模式中打亂汽油桶數量與位置.
       l4d2_remix_gascan_scramble_coop "1"
      
       // 為1時,在戰役/對抗/寫實 模式中提示訊息.
       l4d2_remix_gascan_notify_coop "0"
      
       // 在戰役/對抗/寫實 模式中,從文件裡選擇多少個汽油桶生成? (會隨機挑選)
       l4d2_remix_gascan_count_coop "30"
      
       // 為1時,在清道夫模式中打亂汽油桶數量與位置.
       l4d2_remix_gascan_scramble_scavenge "1"
      
       // 為1時,在清道夫模式中提示訊息.
       l4d2_remix_gascan_notify_scavenge "0"
      
       // 在清道夫模式中,從文件裡選擇多少個汽油桶生成? (會隨機挑選)
       l4d2_remix_gascan_can_count_scavenge "16"
  • Q&A問題

    • 如何自己決定汽油桶位置
      • 戰役/對抗/寫實

        • 遊戲模式換成戰役,然後切換地圖
        • 管理員輸入 !editcans進入編輯模式
        • 輸入 !addcan 在準星上新增汽油桶 或 輸入!delcan 刪除準星指向的汽油桶
        • 輸入 !savecans 儲存所有的汽油桶至文件檔案
          • 文件檔案位於 cfg\remix_gascan\coop\xxxxx.txt
          • xxxxx 是地圖名
        • 編輯文件 data/l4d2_remix_gascan.cfg 寫下 "coop" "XX" 自行決定要生成的數量
        • 重啟地圖
      • 清道夫

        • 遊戲模式換成清道夫,然後切換地圖
        • 管理員輸入 !editscavengecans進入編輯模式
        • 輸入 !addscavengecan 在準星上新增汽油桶 或 輸入!delscavengecan 刪除準星指向的汽油桶
        • 輸入 !savescavengecans 儲存所有的汽油桶至文件檔案
          • 文件檔案位於 cfg\remix_gascan\scavenge\xxxxx.txt
          • xxxxx 是地圖名
        • 編輯文件 data/l4d2_remix_gascan.cfg 寫下 "scavenge" "XX" 自行決定要生成的數量
        • 重啟地圖