Skip to content

Latest commit

 

History

History

l4d2_ty_saveweapons

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Description | 內容

L4D2 coop save weapon when map transition if more than 4 players

  • Require | 必要安裝

    1. left4dhooks
    2. l4d_heartbeat
  • ConVar | 指令
    • cfg\sourcemod\l4d2_ty_saveweapons.cfg
      // If 1, restore 100 full health when end of chapter.
      l4d2_ty_saveweapons_health "0"
      
      // Do not restore weapons and health to a player after survivors have left start safe area for at least x seconds. (0=Always restore)
      l4d2_ty_saveweapons_game_seconds_block "60"
      
      // If 1, save weapons and health for bots as well.
      l4d2_ty_saveweapons_save_bot "1"
      
      // If 1, save health and restore. (can save >100 hp)
      l4d2_ty_saveweapons_save_health "1"
      
      // If 1, save character model and restore.
      l4d2_ty_saveweapons_save_character "0"
  • Related Official ConVar
    • Write down the follong cvars in cfg/server.cfg
      // If 1, survivor bots will be used as placeholders for survivors who are still changing levels
      // If 0, prevent bots from moving, changing weapons, using kits while human survivors are still changing levels
      // Default: 1
      sm_cvar sb_transition 0 
  • Apply to | 適用於

    L4D2 Coop/Realism
    
  • Related | 相關插件
    1. l4dmultislots: Allows additional survivor players in server when 5+ player joins the server

      • 創造5位以上倖存者遊玩伺服器
    2. l4d2_afk_saveweapons: Save Weapons/Items when going AFK

      • 當倖存者玩家閒置或旁觀時,保存攜帶的武器、物資
  • Changelog | 版本日誌
    • v6.3 (2024-10-3)

      • Require l4d_heartbeat
    • v6.2 (2024-7-30)

      • Fixed m_currentReviveCount
    • v6.1 (2023-11-27)

      • Gamedata support
    • v6.0 (2023-6-25)

      • Fixed melee disapear after map transition
    • v5.9 (2022-9-17)

      • AlliedModder Post
      • Remake code
      • Add the last stand two melee
      • Add ConVar and generate cfg
      • Save health
      • Save Character Model
      • Support Bots
      • Support custom melee save
      • Doesn't save if change map in game (ex. vote change new campaign)
      • Compatible with the [ANY] Cheats
    • v4.1


中文說明

當伺服器有5+以上玩家遊玩戰役、寫實時,保存他們過關時的血量以及攜帶的武器、物品

Note 只有當伺服器有5+以上玩家時才需要安裝此插件

  • 原理

    • 抵達終點關下安全門時,插件會保存每一位玩家的資料
      • 武器、物品
      • 人物角色
      • 血量與黑白狀態
    • 當玩家載入到下一關之後,恢复所有資料
  • 指令中文介紹 (點我展開)
    • cfg\sourcemod\l4d2_ty_saveweapons.cfg
      // 為1時,過關時回復所有倖存者的血量
      l4d2_ty_saveweapons_health "0"
      
      // 倖存者出去安全室60秒之後不能再恢复血量與武器 (避免有人載入關卡太慢)
      // 0=永遠恢复上一關保存的血量與武器
      l4d2_ty_saveweapons_game_seconds_block "60"
      
      // 為1時,也幫AI Bots保存武器與血量
      l4d2_ty_saveweapons_save_bot "1"
      
      // 為1時,保存血量與倒地狀態 (可保存超過100HP)
      l4d2_ty_saveweapons_save_health "1"
      
      // 為1時,保存角色與模型
      l4d2_ty_saveweapons_save_character "0"
  • 相關的官方指令中文介紹 (點我展開)
    • 以下指令寫入文件 cfg/server.cfg,可自行調整
      // 為1時, 過關後玩家的Bot會走動並更換身上的武器與物品
      // 為0時, 過關後玩家的Bot不會走動也不會更換身上的武器與物品 (推薦使用)
      // 預設值: 1
      sm_cvar sb_transition 0