Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
SI Spawner
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
134.088 KB
10 Oct, 2024 @ 9:31am
4 Jun @ 10:35am
17 Change Notes ( view )

Subscribe to download
SI Spawner

In 2 collections by skysky199
Script List
118 items
Script List <Game Mode>
16 items
Description
--僅於區域/專用伺服器生效--
--Works on local/dedicated servers only.--

※需要 開啟Scripted Mode
※Requires enable Scripted Mode.

使用 "z_spawn" 基於時間/距離生成特感而非讓導演決定生成 (可選)
僅於戰役類模式生效

Use "z_spawn" to spawn SIs (sepcial infecteds) based on time/distance instead of spawning by director. (Optional)
Effective in campaign type modes only.

Setting file path:
\ems\si spawner\settings.tbl

此腳本的預設設定:
Default settings of this script:
{
MaxSI = 8
FMaxSI = 8
DirMaxSI = 0
FDirMaxSI = 0
TimMaxSI = 8
FTimMaxSI = 8
DisMaxSI = 0
FDisMaxSI = 0
BoomerLimit = 5
ChargerLimit = 5
HunterLimit = 5
JockeyLimit = 5
SmokerLimit = 5
SpitterLimit = 5
Interval = 15
InitialDelay = 30
SIAssault = 2
WithTank = 2
ReCountDown = 0
SpawnSame = false
FinaleSpawnBlock = true
Distance = 1000.0
}

設定說明:
Description of settings:
設定名
Setting's name
說明
Description
Enable
(Default: true)
Can be set to true/false to activate/inactive the script at anytime.
可在任何時候設定為 true啟動/fasle關閉
MaxSI FMaxSI
DirMaxSI FDirMaxSI
TimMaxSI FTimMaxSI
DisMaxSI FDisMaxSI
(Default: max: 8, director: 0, time: 8, distance: 0)
MaxSI: Maximun number of Sis in game.
DirMaxSI: Maximun number of Sis spawned by director per wave.
TimMaxSI: Maximun number of Sis spawned by timer per wave.
DisMaxSI: Maximun number of Sis spawned by distance per wave.
※DirMaxSI+DirMaxSI+DisMaxSI <= MaxSI
※When finale starts, script will use FMaxSI, FDirMaxSI... instead.

Official default is 2.
Max value will be 14 if you don't have L4DToolZ[forums.alliedmods.net].

※If you enable the director mode along with two other method at the same time, the spawning number may exceed the limit.
MaxSI: 最大場上特感存在數
DirMaxSI: 最大特感導演生成數
DirMaxSI: 最大特感計時器生成數
DisMaxSI: 最大特感距離生成數
※DirMaxSI+DirMaxSI+DisMaxSI <= MaxSI
※救援開始後 腳本將會改用 FMaxSI, FDirMaxSI...

官方預設值為2
如果你沒有 L4DToolZ[forums.alliedmods.net], 最大設定值為14

※如果你同時開啟導演與另2個生成方式 數量可能會超過
BoomerLimit
ChargerLimit
HunterLimit
JockeyLimit
SmokerLimit
SpitterLimit
(Default: 2)
Maximun number of individual Sis per wave.
Sum of them must >= MaxSI.
最大個別特感生成數/每波
加總必須 >= MaxSI
Interval
(Default: 15)
Time in seconds of the spawning countdown.
Official default is 45. (10 in finales)
生成的倒數秒數 單位為秒
官方預設值為45 (救援為10)
InitialDelay
(Default: 30)
Time in seconds of the first-spawn countdown.
Official default is 30~60
第一波生成的倒數秒數 單位為秒
官方預設值為 30~60
SIAssault
(Default: 2)
Should SIs assault?
0 = No
1 = SpecialInfectedAssault = true
2 = SpecialInfectedAssault = true, cm_AggressiveSpecials = true
特感主動進攻?
0 = 不要
1 = SpecialInfectedAssault = true
2 = SpecialInfectedAssault = true, cm_AggressiveSpecials = true
WithTank
(Default: 2)
When Tank is in game
0 = Stop countdown (don't spawn SIs)
1 = Stop countdown (spawn SIs by director)
2 = Do nothing
有Tank在場上時
0 = 停止倒數 (不生成特感)
1 = 停止倒數 (由導演生成特感)
2 = 繼續倒數
ReCountDown
(Default: 0)
When to reset the countdown timer?
0 = When finishing spawning all SIs.
1 = When one SI got killed.
2 = When all SIs got killed.
何時重置倒數計時器
0 = 當特感生成完成時
1 = 當有特感死亡時
2 = 當所有特感都死亡時
SpawnSame
(Default: false)
If true, all SIs will be the same type per wave.

For example, if you set MaxSI = 8, BoomerLimit = 5, ChargerLimit = 8, and others = 0, spawning will only be one of the following 2 results:
1. 8 chargers + 0 boomers.
2. 3 chargers + 5 boomers.
如果 = true, 生成的特感種類會一樣/每波

舉例來說, 假設你設定 MaxSI = 8, BoomerLimit = 5, ChargerLimit = 8, 其他Limit = 0, 生成結果會是以下2個其一:
1. 8 chargers + 0 boomers.
2. 3 chargers + 5 boomers.
FinaleSpawnBlock
(Default: true)
If true, stop countdown if all survivors are in finale area and finale has not started.
如果 = true, 所有人在救援區且救援未開始時, 停止倒數
Distance
(Default: 1000.0)
If DisMaxSI > 0, when the survivor moves forward and the distance exceeds this value, spawn SIs.
如果DisMaxSI > 0, 當倖存者向前移動並距離超過此值時 生成特感

指令:
Chat triggers:
!si
(scripted_user_func si)
See the current settings of MaxSI and Interval.
查看目前 MaxSI 與 Interval 的設定
!si list
(scripted_user_func si,list)
List all settings in the settings file.
Require Admin permission.
列出在 settings file 中的所有設定
需要管理員權限
!si <setting's name> <new value>
(scripted_user_func si,<>,<>)
Modify the value of <setting's name> to <new value>.
Require Admin permission.
變更 <設定名> 的數值為 <新數值>
需要管理員權限

===========================================================================

翻譯詞可自定義 (類似於SourceMod), 檔案位於\ems\translations\si spawner.tbl
所有可用的API 語言碼可在下面的網址找到

Translation phrases can be customized (like SourceMod), file is located at \ems\translations\si spawner.tbl
All valid API language code can be found at
https://partner.steamgames.com/doc/store/localization/languages

顏色代碼:
Color Codes:
Beige (default color) = "\x01" = "{default}"
Bright green = "\x03" = "{lightgreen}"
Orange = "\x04" = "{orange}"
Olive green = "\x05" = "{olive}"
28 Comments
Absolute Sucker 13 Jul @ 11:51am 
@skysky199

Highly customisable boss spawner, supports multiple presets that gets used depending on the map.

A preset consists of at least one encounter or more, each encounter would have a random distance threshold, bosses only spawn when a survivor reaches their threshold, similar to how bosses are spawned in vanilla. Distance between thresholds are randomised but the minimum can be set. Thresholds are reshuffled upon a restart.

An encounter can be assigned as a witch, wandering witch, tank, ambush tank or a mixture of any. It could use a numbering system like this (1 = sitting witch, 2 = wandering witch, 4 = tank, 8 = ambush tank). Ambush tanks would spawn behind the survivors on the map flow.

Then an encounter can be assigned a minimum map progress requirement. If an encounter is set "50%" then their threshold would be placed in the latter half of the map.
Absolute Sucker 13 Jul @ 11:50am 
An encounter can also be assigned a number for the "Mercy" system. If set to "5" then it'll check for the survivor team's level before spawning when their threshold is reached. The team level is based on items being carried and each survivor's current non-buffer health, 50 health or more = 1 level, 1 medkit = 1 level, 1 pain pills or adrenaline = 0.5 level. 4 full health survivors with kits and pills = level 10 (this causes the boss to spawn). 2 full health survivors with only pills = level 3 (this either skips the boss or set their threshold further down if possible).

Lastly, the encounter can have a set chance of happening. For an extra layer of randomisation. Encounters removed by chance won't have their threshold on the map.

Final step is to specify which map this preset can work in. New presets can probably co-exists within the same file but idk.

If you have any questions/suggestions do tell me.
skysky199  [author] 12 Jul @ 9:09am 
@Absolute Sucker

You can just send it here since not many people comment anyway.
Absolute Sucker 12 Jul @ 6:56am 
@skysky199

I want to pitch an idea to you but the writing/explanation for it is rather extensive, unless you don't mind me flooding this comment thread, do you have a suggestion as to where I can forward it to you?
skysky199  [author] 6 Jun @ 12:56pm 
@Unwishing Death

...\Steam\steamapps\common\Left 4 Dead 2\left4dead2\ems\
Unwishing Death 6 Jun @ 12:24pm 
I cant find the ems settings path, where is it ???
Absolute Sucker 26 May @ 5:25am 
Can't wait for the update! <3
skysky199  [author] 26 May @ 2:33am 
@Absolute Sucker

The distance method is something I wrote causally.
Original thought is to use it with director or time method.
Maybe add a setting of auto-change method in finale in next update.
Absolute Sucker 26 May @ 12:51am 
@skysky199

Is it possible to have SI spawn in Holdout Finales even if the method is distance without changing it through chat commands?
Absolute Sucker 24 Jan @ 9:01pm 
Got it, thanks!