Skip to content

Commit 4bce5b4

Browse files
committedMar 8, 2025
2025-3-8 update
-Delete sm_downloader (Moved to https://github.com/fbef0102/Sourcemod-Plugins/tree/main/sm_downloader) -Update l4d2_mixmap 1.3h
1 parent 03fcdb9 commit 4bce5b4

25 files changed

+58
-653
lines changed
 

‎README.md

-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ Help server to record, make server more fun, and more useful plugins for adm.
6464
* 特感死亡時顯示人類造成的傷害統計
6565
* <b>[l4dffannounce](/l4dffannounce)</b>: Adds Friendly Fire Announcements (who kills teammates).
6666
* 顯示誰他馬TK我
67-
* <b>[sm_downloader](/sm_downloader)</b>: SM File/Folder Downloader and Precacher
68-
* SM 文件下載器 (玩家連線伺服器的時候能下載自製的檔案)
6967
* <b>[tank_witch_spawn_notify](/tank_witch_spawn_notify)</b>: When the tank and witch spawns, it announces itself in chat by making a sound
7068
* Tank/Witch出現有提示與音效
7169
* <b>[trigger_horde_notify](/trigger_horde_notify)</b>: Who called the horde ?
Binary file not shown.

‎l4d2_mixmap/addons/sourcemod/scripting/l4d2_mixmap.sp

+9-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public Plugin myinfo =
2929
name = "[L4D1/L4D2] Mix Map",
3030
author = "Bred, Harry",
3131
description = "Randomly select five maps for versus/coop/realism. Adding for fun",
32-
version = "1.2h-2025/3/1",
32+
version = "1.3h-2025/3/8",
3333
url = "https://github.com/fbef0102/L4D1_2-Plugins/tree/master/l4d2_mixmap"
3434
};
3535

@@ -190,7 +190,7 @@ public void OnLibraryAdded(const char[] name)
190190
// Otherwise nextmap would be stuck and people wouldn't be able to play normal campaigns without the plugin 结束后初始化sm_nextmap的值
191191
public void OnPluginEnd()
192192
{
193-
ServerCommand("sm_nextmap ''");
193+
ServerCommand("sm_nextmap \"\"");
194194
ClearDefault();
195195
}
196196

@@ -220,7 +220,7 @@ public void OnMapStart()
220220
PrecacheSound("ui/beep_error01.wav");
221221
}
222222

223-
ServerCommand("sm_nextmap ''");
223+
ServerCommand("sm_nextmap \"\"");
224224

225225
char buffer[BUF_SZ];
226226

@@ -428,6 +428,12 @@ Action Mixmap_Cmd(int client, int args)
428428
{
429429
if (IsClientAndInGame(client))
430430
{
431+
if(L4D_IsSurvivalMode() || (g_bL4D2Version && L4D2_IsScavengeMode()))
432+
{
433+
CPrintToChat(client, "%T", "Mode not support", client);
434+
return Plugin_Handled;
435+
}
436+
431437
if(g_ReadyUpAvailable && g_bRoundIsLive)
432438
{
433439
CPrintToChat(client, "%T", "Round is live", client);

‎l4d2_mixmap/addons/sourcemod/translations/l4d2_mixmap.phrases.txt

+6
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,11 @@
205205
"en" "You can't call this vote once round is live"
206206
"zho" "只有在準備階段才能發起投票"
207207
"chi" "只有在准备阶段才能发起投票"
208+
}
209+
"Mode not support"
210+
{
211+
"en" "Not support Survival/Scavenge"
212+
"zho" "不支援生存/清道夫模式"
213+
"chi" "不支援生存/清道夫模式"
208214
}
209215
}

‎l4d2_mixmap/readme.md

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# Description | 內容
22
Randomly select five maps for versus/coop/realism. Adding for fun
33

4-
* Image | 圖示
5-
<br/>![l4d2_mixmap_1](image/l4d2_mixmap_1.jpg)
6-
74
* Apply to | 適用於
85
```
9-
L4D1
10-
L4D2
6+
L4D1 Survival/Coop/Versus
7+
L4D2 Survival/Coop/Versus/Realism
118
```
129

10+
* Image | 圖示
11+
<br/>![l4d2_mixmap_1](image/l4d2_mixmap_1.jpg)
12+
1313
* <details><summary>How does it work?</summary>
1414

1515
* Type ```!mixmap``` or ```!mixmap <xxxxx>``` to vote to start a mixmap
@@ -126,6 +126,9 @@ Randomly select five maps for versus/coop/realism. Adding for fun
126126

127127
* <details><summary>Changelog | 版本日誌</summary>
128128

129+
* v1.3h (2025-3-8)
130+
* Fixed server unable to change map in survival/scavenge
131+
129132
* v1.2h (2025-3-1)
130133
* Add more api
131134

‎l4d_MusicMapStart/readme.md

+26-21
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,35 @@
11
# Description | 內容
22
Download and play custom music in game
33

4+
* Apply to | 適用於
5+
```
6+
L4D1
7+
L4D2
8+
```
9+
410
* [Video | 影片展示](https://youtu.be/PqnBI-G-kOk)
511

612
* Image
713
<br/>![l4d_MusicMapStart_1](image/l4d_MusicMapStart_1.jpg)
814
<br/>![l4d_MusicMapStart_2](image/l4d_MusicMapStart_2.jpg)
915

16+
* <details><summary>How does it work?</summary>
17+
18+
* Play custom music when player joins server
19+
* Play custom music on new round starts.
20+
* Type ```!music``` to play custom music
21+
</details>
22+
1023
* Require | 必要安裝
11-
1. [[INC] Multi Colors](https://github.com/fbef0102/L4D1_2-Plugins/releases/tag/Multi-Colors)
24+
1. 🟥 Prepare [your content-server for FastDL](https://developer.valvesoftware.com/wiki/FastDL), othersie this plugin will not work
25+
* 🟥 需[自備網空且支援FastDL](https://developer.valvesoftware.com/wiki/Zh/FastDL),否則此插件會無效 (不知道什麼是FastDL請自行Google)
26+
2. [[INC] Multi Colors](https://github.com/fbef0102/L4D1_2-Plugins/releases/tag/Multi-Colors)
1227

13-
* Notice
14-
* 🟥 Prepare [your content-server for FastDL](https://developer.valvesoftware.com/wiki/FastDL), othersie this plugin will not work
15-
* If you don't know what "FastDL" is, please google it
28+
* <details><summary>Support | 支援插件</summary>
29+
30+
1. [l4d_force_client_custom_download](https://github.com/fbef0102/Game-Private_Plugin/tree/main/L4D_%E6%8F%92%E4%BB%B6/Player_%E7%8E%A9%E5%AE%B6/l4d_force_client_custom_download): Force player to download your server's custom content
31+
* 強制玩家打開設置下載伺服器自製的檔案
32+
</details>
1633

1734
* <details><summary>ConVar | 指令</summary>
1835

@@ -135,26 +152,15 @@ Download and play custom music in game
135152
* Connect to server.
136153
* Type ```!music``` in chatbox.
137154

138-
6. Players should download dance files when connecting to your server
155+
6. Players should download dance files when connecting to your server (They need to set Options-> Multiplayer -> CUSTOM SERVER CONTENT -> Allow All)
139156
<br/>![l4d_MusicMapStart_3](image/l4d_MusicMapStart_3.jpg)
140157
</details>
141158

142-
* Apply to | 適用於
159+
* Translation Support | 支援翻譯
143160
```
144-
L4D1
145-
L4D2
161+
translations/MusicMapStart.phrases.txt
146162
```
147163

148-
* <details><summary>Translation Support | 支援翻譯</summary>
149-
150-
```
151-
English
152-
繁體中文
153-
简体中文
154-
Russian
155-
```
156-
</details>
157-
158164
* <details><summary>Changelog | 版本日誌</summary>
159165

160166
* 1.5h (2024-1-8)
@@ -184,8 +190,7 @@ Download and play custom music in game
184190

185191
* 原理
186192
* 播放MP3歌曲,可以播放自製的音樂
187-
* 也可以輸入!music使用點歌系統,全體玩家能聽到
188-
* 🟥 需[自備網空且支援FastDL](https://developer.valvesoftware.com/wiki/Zh/FastDL),客戶端才能下載音樂檔案 (不知道什麼是FastDL請自行Google)
193+
* 也可以輸入```!music```使用點歌系統,全體玩家能聽到
189194

190195
* <details><summary>指令中文介紹 (點我展開)</summary>
191196

@@ -311,7 +316,7 @@ Download and play custom music in game
311316
* 連線到伺服器
312317
* 在聊天視窗輸入```!music```
313318

314-
6. 玩家加入伺服器時,會自動下載自製的音樂檔案
319+
6. 玩家加入伺服器時,會自動下載自製的音樂檔案 (玩家必須自己打開選項->多人連線->自訂伺服器內容->全部允許)
315320
<br/>![l4d_MusicMapStart_3](image/l4d_MusicMapStart_3.jpg)
316321
</details>
317322

‎l4d_fastdl_delay_downloader/readme.md

+9-18
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,20 @@ Downloading fastdl custom files only when map change/transition
99

1010
* <details><summary>How does it work?</summary>
1111

12-
* 🟥 Use this plugin only when you have [fastdl set](https://developer.valvesoftware.com/wiki/FastDL)
1312
* (Before) Downloading custom files when player connecting to server
1413
* (After) Only downloading custom files when map change/transition
14+
* Get all exclude list from cfg which doesn't affect by this plugin: [data/l4d_fastdl_delay_downloader.cfg](data/l4d_fastdl_delay_downloader.cfg)
1515
</details>
1616

1717
* Require | 必要安裝
18-
1. [[INC] stringtables_data](https://forums.alliedmods.net/showthread.php?t=319828)
18+
1. 🟥 Use this plugin only when you have [fastdl set](https://developer.valvesoftware.com/wiki/FastDL)
19+
* 🟥 有使用自己準備的[網空支援Fastdl](https://developer.valvesoftware.com/wiki/Zh/FastDL),才需要安裝此插件
20+
2. [[INC] stringtables_data](https://forums.alliedmods.net/showthread.php?t=319828)
1921

20-
* <details><summary>ConVar | 指令</summary>
22+
* <details><summary>Support | 支援插件</summary>
2123

22-
None
24+
1. [l4d_force_client_custom_download](https://github.com/fbef0102/Game-Private_Plugin/tree/main/L4D_%E6%8F%92%E4%BB%B6/Player_%E7%8E%A9%E5%AE%B6/l4d_force_client_custom_download): Force player to download your server's custom content
25+
* 強制玩家打開設置下載伺服器自製的檔案
2326
</details>
2427

2528
* <details><summary>Command | 命令</summary>
@@ -35,15 +38,9 @@ Downloading fastdl custom files only when map change/transition
3538
```
3639
</details>
3740

38-
* <details><summary>Data Config</summary>
39-
40-
* [data/l4d_fastdl_delay_downloader.cfg](data/l4d_fastdl_delay_downloader.cfg)
41-
> Manual in this file, click for more details...
42-
</details>
43-
4441
* <details><summary>Related | 相關插件</summary>
4542

46-
1. [sm_downloader](/sm_downloader): SM File/Folder Downloader and Precacher
43+
1. [sm_downloader](https://github.com/fbef0102/Sourcemod-Plugins/tree/main/sm_downloader): SM File/Folder Downloader and Precacher
4744
* SM 文件下載器 (玩家連線伺服器的時候能下載自製的檔案)
4845
2. [l4d_MusicMapStart](/l4d_MusicMapStart): Download and play custom musics
4946
* 下載自製音樂
@@ -71,13 +68,13 @@ Downloading fastdl custom files only when map change/transition
7168
只有在換圖或過關時,才讓玩家下載Fastdl自製的檔案
7269

7370
* 原理
74-
* 🟥 有使用自己準備的[網空支援Fastdl](https://developer.valvesoftware.com/wiki/Zh/FastDL),才需要安裝此插件
7571
* [什麼是自訂伺服器內容?](https://github.com/fbef0102/Game-Private_Plugin/tree/main/Tutorial_%E6%95%99%E5%AD%B8%E5%8D%80/Chinese_%E7%B9%81%E9%AB%94%E4%B8%AD%E6%96%87/Game#%E4%B8%8B%E8%BC%89%E8%87%AA%E8%A8%82%E4%BC%BA%E6%9C%8D%E5%99%A8%E5%85%A7%E5%AE%B9)
7672
* (安裝此插件之前) 玩家連線到伺服器必須下載所有伺服器的自製檔案
7773
* 下載過程漫長且玩家螢幕會黑屏
7874
* 玩家通常沒有耐心等待,而且看到螢幕黑屏以為遊戲卡住,導致大部分玩家直接離開,反覆循環
7975
* (安裝此插件之後) 換圖/過關時才會下載伺服器的自製檔案
8076
* 玩家感受不會那麼差
77+
* 排除下載列表的文件: [data/l4d_fastdl_delay_downloader.cfg](data/l4d_fastdl_delay_downloader.cfg)
8178

8279
* <details><summary>命令中文介紹 (點我展開)</summary>
8380

@@ -90,10 +87,4 @@ Downloading fastdl custom files only when map change/transition
9087
```php
9188
sm_restore_st
9289
```
93-
</details>
94-
95-
* <details><summary>文件設定範例</summary>
96-
97-
* [data/l4d_fastdl_delay_downloader.cfg](data/l4d_fastdl_delay_downloader.cfg)
98-
> 內有中文說明,可點擊查看
9990
</details>

‎sm_downloader/addons/sourcemod/configs/sm_downloader/downloads_normal.ini

-11
This file was deleted.

‎sm_downloader/addons/sourcemod/configs/sm_downloader/downloads_normal_example(範例).ini

-33
This file was deleted.

‎sm_downloader/addons/sourcemod/configs/sm_downloader/downloads_simple.ini

-6
This file was deleted.

‎sm_downloader/addons/sourcemod/configs/sm_downloader/downloads_simple_example(範例).ini

-30
This file was deleted.
Binary file not shown.

‎sm_downloader/addons/sourcemod/scripting/sm_downloader.sp

-291
This file was deleted.
-113 KB
Binary file not shown.
-22.3 KB
Binary file not shown.
-74.2 KB
Binary file not shown.
-18.8 KB
Binary file not shown.
-178 KB
Binary file not shown.
-50.8 KB
Binary file not shown.
-268 KB
Binary file not shown.
-84.5 KB
Binary file not shown.

‎sm_downloader/readme.md

-233
This file was deleted.
-25.1 KB
Binary file not shown.
-25.1 KB
Binary file not shown.
-25.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.