Drop gifts when a special infected or a witch/tank killed by survivor.
-
Apply to | 適用於
L4D2 -
Require | 必要安裝
-
How does it work?
- Drop "Standard Gift" when special infected dies
- Drop "Special Gift" when a tank/witch dies
- How to open gift
- Touch the gifts
- Press E
- Gift
- Weapons
- Items
- Health
-
ConVar | 指令
- cfg/sourcemod/l4d2_gifts.cfg
// Enable gifts 0: Disable, 1: Enable l4d2_gifts_enabled "1" // How long the gift stay on ground (seconds) l4d2_gifts_gift_life "30" // Chance (%) of infected drop special standard gift. l4d2_gifts_chance_standard "50" // Chance (%) of tank and witch drop second special gift. l4d2_gifts_chance_special "100" // Increase Infected health if they pick up gift. (0=Off) l4d2_gifts_infected_reward_hp_standard "200" // Increase Infected health if they pick up special gift. (0=Off) l4d2_gifts_infected_reward_hp_special "400" // Notify Server who pickes up gift, and what the gift reward is. (0: Disable, 1:In chat, 2: In Hint Box, 3: In center text) l4d2_gifts_announce_type "3" // If 1, prevent survivors from switching into new weapons and items when they open gifts l4d2_gifts_block_switch "0" // Standard gift - pick up sound file (relative to to sound/, empty=disable) l4d2_gifts_soundfile_standard "level/loud/climber.wav" // Special gift - pick up sound file (relative to to sound/, empty=disable) l4d2_gifts_soundfile_special "level/gnomeftw.wav"
- cfg/sourcemod/l4d2_gifts.cfg
-
Command | 命令
-
Spawn a gift in your position (Adm required: ADMFLAG_CHEATS)
sm_gifts <standard> sm_gifts <special>
-
Reload the config file of gifts (data/l4d2_gifts.cfg)
sm_reloadgifts
-
-
Data Config
- data/l4d2_gifts.cfg
Manual in this file, click for more details...
- data/l4d2_gifts.cfg
-
Translation Support | 支援翻譯
translations/l4d2_gifts.phrases.txt -
Changelog | 版本日誌
-
v3.5 (2024-5-5)
- Now survivors can press E to open gifts
-
v3.4 (2024-2-20)
- Use data file to modify the gift items
- Update Cvars
- Update Translation
-
v3.3 (2023-12-11)
- Remove collect limit
- Remove some cvars
- Update translation and data file
-
v3.2 (2023-6-9)
- Add a convar, prevent survivors from switching into new weapons and items when they open gifts
- Create Fake weapon_drop event
-
v3.0 (2022-12-26)
- Add health gift, survivor could increase or lose health
-
v2.9 (2022-12-2)
- Add cvars to control glow color and range
- Translation Support
-
v2.8
- Remake Code
- Remove rotation, and some static models
- Add L4D2 "The Last Stand" two melee: pitchfork、shovel
- Add All weapons、melee、items
- Add laser、firework crate、ammo、incendiary ammo、explosive_ammo
- Use left4dhooks instead
- Remove points
- Add glow flashing
-
v1.3.6.1
-
殺死特感會掉落禮物盒,會獲得驚喜物品,聖誕嘉年華
-
原理
- 殺死特感掉落"普通禮盒"
- 殺死Tank或Witch掉落"特殊禮盒"
- 如何打開禮物盒
- 人類碰觸到盒
- 按E
- 禮物盒會有各式各樣的武器與物品,也有可能為空或失去血量,驚喜一瞬間
- 特感也能碰禮盒,會自動增加血量
-
指令中文介紹 (點我展開)
- cfg/sourcemod/l4d2_gifts.cfg
// 0=關閉插件, 1=啟動插件 l4d2_gifts_enabled "1" // 禮盒的存活時間,如果沒有人撿起會自動消失 (單位: 秒數) l4d2_gifts_gift_life "30" // 特感掉落普通禮盒的機率 l4d2_gifts_chance_standard "50" // Tank/Witch掉落特殊禮盒的機率 l4d2_gifts_chance_special "100" // 特感撿到普通禮盒所增加的血量. (0=關閉這項功能) l4d2_gifts_infected_reward_hp_standard "200" // 特感撿到特殊禮盒所增加的血量. (0=關閉這項功能) l4d2_gifts_infected_reward_hp_special "400" // 獲得禮物盒的提示該如何顯示. (0: 不提示, 1: 聊天框, 2: 黑底白字框, 3: 螢幕正中間) l4d2_gifts_announce_type "3" // 1=人類撿起禮盒時,物資直接掉在地上 // 0=人類撿起禮盒時,物資直接拿在手上 l4d2_gifts_block_switch "0" // 撿起普通禮盒的音效檔案,路徑相對於sound資料夾 (留白=無音效) l4d2_gifts_soundfile_standard "level/loud/climber.wav" // 撿起特殊禮盒的音效檔案,路徑相對於sound資料夾 (留白=無音效) l4d2_gifts_soundfile_special "level/gnomeftw.wav"
- cfg/sourcemod/l4d2_gifts.cfg
-
命令中文介紹 (點我展開)
-
在準心指向的地方生成禮盒 (權限: ADMFLAG_CHEATS)
sm_gifts <standard> //生成普通禮盒 sm_gifts <special> //生成特殊禮盒
-
重載禮盒的模組設定文件 (data/l4d2_gifts.cfg)
sm_reloadgifts
-
-
文件設定範例
- data/l4d2_gifts.cfg
內有中文說明,可點擊查看
- data/l4d2_gifts.cfg
