Save weapons/health when map transition if more than 4 players in l4d1/2
-
Apply to | 適用於
L4D1 Coop L4D2 Coop/Realism -
How does it work?
- When survivors reach the end safe room and map transition
- Save health/incap count
- Save character
- Save weapons
- Save melee weapons (support custom map)
- Restore health and weapons after the level-transitioning (including the level failed and restarted)
- When survivors reach the end safe room and map transition
-
Require | 必要安裝
-
Support | 支援插件
-
l4dmultislots: Allows additional survivor players in server when 5+ player joins the server
- 創造5位以上倖存者遊玩伺服器
-
l4d2_afk_saveweapons: Save Weapons/Items when going AFK
- 當倖存者玩家閒置或旁觀時,保存攜帶的武器、物資
-
-
ConVar | 指令
- cfg/sourcemod/l4d2_ty_saveweapons.cfg
// If 1, restore 100 full health when end of chapter. l4d2_ty_saveweapons_health "0" // 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"
- cfg/sourcemod/l4d2_ty_saveweapons.cfg
-
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 1
- Write down the follong cvars in cfg/server.cfg
-
API | 串接
- l4d2_ty_saveweapons.inc
library name: l4d2_ty_saveweapons
- l4d2_ty_saveweapons.inc
-
Changelog | 版本日誌
-
v6.6 (2026-2-20)
- Try different way to restore health and weapon, rewrite code
- Reqire Transition Restore Fix, Transition Entity
- Update cvar
-
v6.5 (2025-10-12)
- Support L4D1
- Update API
-
v6.4 (2025-3-23)
- Keep holding gascan or cola... after map transition
-
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+以上玩家遊玩戰役、寫實時,保存他們過關時的血量以及攜帶的武器、物品
-
原理
- 抵達終點關下安全門時,插件會保存每一位玩家的資料
- 武器、物品
- 近戰武器 (支援三方圖)
- 人物角色
- 血量與黑白狀態
- 當玩家載入到下一關之後,恢复所有資料
- 下一關滅團並重啟時,也會恢复上一關的所有資料
- 抵達終點關下安全門時,插件會保存每一位玩家的資料
-
指令中文介紹 (點我展開)
- cfg/sourcemod/l4d2_ty_saveweapons.cfg
// 為1時,過關時回復所有倖存者的血量 l4d2_ty_saveweapons_health "0" // 為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/sourcemod/l4d2_ty_saveweapons.cfg
-
相關的官方指令中文介紹 (點我展開)
- 以下指令寫入文件 cfg/server.cfg,可自行調整
// 為1時, 過關後玩家的Bot會走動並更換身上的武器與物品 // 為0時, 過關後玩家的Bot不會走動也不會更換身上的武器與物品 (推薦使用) // 預設值: 1 sm_cvar sb_transition 1
- 以下指令寫入文件 cfg/server.cfg,可自行調整