Left 4 Dead 2

Left 4 Dead 2

评价数不足
Custom Boss Spawner
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
文件大小
发表于
更新日期
69.122 KB
7 月 17 日 下午 12:46
10 月 8 日 上午 10:07
11 项改动说明 ( 查看 )

订阅以下载
Custom Boss Spawner

在 skysky199 的 2 个合集中
Script List
131 件物品
Script List <Game Mode>
16 件物品
描述
--僅於區域/專用伺服器生效--
--Works on local/dedicated servers only.--

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

自定義Tank與Witch位置生成器
可分別地圖設定
※位置的單位為相對於地圖長度之百分比
※救援開始後自動關閉

Custom Tanks and Witches location spawner.
Can be configured based on maps.
※The unit of location is a % relative to the map length.
※Automatically disables after finale starts.

Setting file path:
\ems\custombossspawner\settings.tbl
\ems\custombossspawner\maps\(map name).tbl

※優先讀取(map name).tbl
※(map name).tbl is loaded with priority.

設定名
Setting's name
說明
Description
Types
Sitting = sitting witch.
Wandering = wandering witch.
Normal = normal tank.
Ambush = ambush tank (prefer to spawn behind).
Surprising = surprising tank (prefer to spawn inside the rescue closet, do not spawn if none exists).
Sitting = 坐著的 Witch
Wandering = 站著的 Witch
Normal = 一般 Tank
Ambush = 埋伏型 Tank (優先生在後面)
Surprising = 驚喜型 Tank (優先生在復活室 若沒有則不生成)
DisableScript
(Default: false)
If true, script is disabled and tanks/witches will be spawned by director.
And all the settings below are invalid.
如果為true 腳本關閉 並由導演生成 Tank/Witch
並且下面所有設定無效
DisableOnFinale
(Default: 3)
When finale starts:
1 = disable TankSuicideRespawn.
2 = prevent the script from spawning bosses.
Add numbers together.
救援開始時:
1 = 關閉TankSuicideRespawn
2 = 停止腳本生成
將數字加總
DisableDirector
(Default: 3)
1 = prevent the director from spawning witches.
2 = prevent the director from spawning tanks.
4 = partially prevent the director from spawning witches.
8 = partially prevent the director from spawning tanks.
Add numbers together.
1 = 禁止導演生成Witch
2 = 禁止導演生成Tank
4 = 部分禁止導演生成Witch
8 = 部分禁止導演生成Tank
將數字加總
Synchronous
(Default: 0)
Spawn position synchronization.
0 = asynchronous.
1 = according to WitchThreshold.
2 = according to TankThreshold.
同步生成位置
0 = 非同步
1 = 依 WitchThreshold
2 = 依 TankThreshold
TankSuicideRespawn
(Default: 0)
After Tank commits suicide:
0 = do nothing
1 = spawn an ambush Tank
2 = spawn a normal Tank
3 = randomly spawn either type 1 or 2
※Does not take up the spawn limit.
Tank自殺後:
0 = 不做事
1 = 生成埋伏型Tank
2 = 生成普通Tank
3 = 1 2隨機
※不占用生成上限
TankReinforcement
(Default: 0)
0 = all tanks spawn at the same time.
1 = only one tank is spawned initially, and the remaining tanks spawn one by one after it is triggered.
2 = randomly selects one tank currently in game as the initial tank. Once it is triggered, the Tanks will spawn sequentially. If no tank is available, the next spawned tank will be selected instead.
0 = 全部一起生成
1 = 只生成一Tank 其他等該Tank觸發後依序生成
2 = 隨機選取場上一Tank 等該Tank觸發後依序生成 若無則選取下次生成的Tank
OnEscapeRoute
(Default: false)
If true, check whether the bosses are on the escape route (main path) after they spawn.
如果為true 生成後檢查是否在正規路線上
ManualSearch
(Default: false)
If true, the corresponding type will be spawned by manually selecting a suitable location.
如果為true 生成對應類型將會使用手動方式搜尋適合的點生成
SearchDistance
(Default: arrays)
If using manually search, search range in hammer unit (HU).
如果為手動搜尋 搜尋範圍為此 (單位為hammer unit, HU)
RoundLimit
WaveLimit
(Default: 99 for all)
Round and wave amount limit.
回合與每波數量限制
Times
(Default: [0 1])
Number of threshold attempts.
※Setting it to [2 2] does not mean bosses will be spawned 2 times (waves).
※Any positive number guarantees at least one time.
取閥值的次數
※設定為[2 2]不代表Tank/Witch一定會有2波
※任意正數保證有1波
Amount
(Default: [1 2])
Number of tanks/witches to be spawned per wave.
※Sometimes spawning may fail, so the actual number may not match the setting.
每波生成的Tank/Witch數量
※有時候無法生成 所以數量會對不上
Threshold
(Default: [10 90])
Spawn location relative to map length. (in %)
Randomly selected.
生成位置相對於地圖長度(以百分比表示)
隨機選取
MinInterval
(Default: 40)
Minimum required distance (in %) between waves.
波與波之間至少需相隔多遠(以百分比表示)
MercyLevel
(Default: 0)
Spawning depends on health and healing items.
0 = always spawns.
10 = almost never spawns.

Formula: Normalized Health * 5 + Normalized Items * 5
Take floor value.
health = 1, temp health = 0.5
medkit = 1, defib = 0.5
pills = 0.5, adrenaline = 0.25

Reference:
Each person has 100 health = 5.
Each person has 1 health, medkits and pills = 5.
Each person has 50 health and medkits = 5.
Each person has 50 health and pills = 4.
依照血量/補品數量決定要不要生成
0 = 100%
10 = 聖母

公式: 歸一化血量*5+歸一化物品*5
向下取整
實血 = 1 虛血 = 0.5
包 = 1 電 = 0.5
藥 = 0.5 針 = 0.25

參考:
每人100血量 = 5
每人1血量且有包藥 = 5
每人50血量且有包 = 5
每人50血量且有藥 = 4

Example:
If you don’t want to use this script in Death Center map 1,
make a copy of the setting file and rename it to c1m1_hotel.tbl.
Then move it to \ems\custombossspawner\maps and set DisableScript = true.

If you only want to use it in Death Center map 1,
make a copy of the setting file and rename it to c1m1_hotel.tbl.
Move it to \ems\custombossspawner\maps.
Set DisableScript = true in \ems\custombossspawner\settings.tbl.

例子:
不想在死亡都心1使用:
複製一份設定並重新命名為c1m1_hotel.tbl
移動到\ems\custombossspawner\maps 並設定 DisableScript= true

只想在死亡都心1使用:
複製一份設定並重新命名為c1m1_hotel.tbl
移動到\ems\custombossspawner\maps
將\ems\custombossspawner\settings.tbl 的 DisableScript = true
36 条留言
Absolute Sucker 10 月 13 日 下午 10:10 
@skysky199

The jockey is the only SI that can do instant damage when pinning a survivor, is there a cvar or a mod that negates their first tick of damage?
skysky199  [作者] 10 月 8 日 上午 10:03 
@Absolute Sucker

[1500 2000]

Added.
Absolute Sucker 10 月 8 日 上午 2:03 
@skysky199

If I set the normal tank's SearchDistance to [0.75 2000] does it function the exact same as the previous TankMaxDistance set to 2000?

There are maps in custom campaigns that has tanks in both set info spawns and random director spawns, ForceProhibitBosses could be useful in these scenarios where DisableDirector won't be if I want to suppress the director tanks whilst keeping the info tanks. This issue is mostly avoided in official campaigns because they already enforced ProhibitBosses to true.
Absolute Sucker 10 月 8 日 上午 2:03 
I also have one last idea I wanted to see, a setting called TankReinforcement. If set to 1, it would prevent multiple tanks in a tank wave from spawning at once, instead the extra tanks would only spawn once the initial tank has seen a survivor. Much like finales that spawns 2 tanks in a row, there would be a delay before each tank spawns, makes them more spread out instead of clustered, extra normal tanks would be set to attack the survivors like ambush tanks. Surprising tanks are exempt from being extras, they can only be the initial tank.

If set to 2, all tanks in a tank wave are extras, requires an initial director tank or info tank to function.
skysky199  [作者] 10 月 7 日 上午 9:15 
@Absolute Sucker

I didn't change the algorithm.
Previously, min was automatically set to max * 0.75.
Now, you can define the search range [min max].

DisableDirector should meet your requirements.
Director will be enabled when the finale starts, which is hard-coded in the script.
Absolute Sucker 10 月 6 日 下午 11:30 
@skysky199

Can you bring back TankMaxDistance? I can't seem to replicate the behavior with the current settings. I also have an idea for a setting called ForceProhibitBosses, can be set to true to disable director spawns without affecting guaranteed map spawns (Info_zombie_spawn).
skysky199  [作者] 10 月 6 日 上午 2:25 
@Absolute Sucker

7.8.
Fixed.

11.
Add one finale setting.
Not adding extra script for now. Will apply it if problems arise.
Absolute Sucker 10 月 5 日 上午 8:15 
@skysky199

11. Allows user curated spawning of tanks and witches in gauntlet finales. While in holdout and scavenge finales, tanks can get stuck and suicide, could use TankSuicideRespawn.

7. 8. Surprising tanks don't seem to spawn in Realism, is it possible to fix?
skysky199  [作者] 10 月 4 日 上午 4:11 
@Absolute Sucker

1. √ 2. √ 3. √ 8. √ 10. √

4. X 5. X 6. X 9. X
Not doable. I’ve tried several methods but I’m not able to force the witch to move to a specific position.

11. X
Specifically, what features are needed?
Only CUSTOM finale type can be modified for Tanks.

7. 8.
Bot Tank decides on its own and will only be visible when it sees a survivor.
Absolute Sucker 9 月 25 日 上午 7:18 
@skysky199

I have a huge list of suggestions for this mod. You can take a look when you're free.

1. Setting that makes certain boss types only spawn on nav units marked with the "escape route" attribute (Default: 0). Surprise Tank is excluded.

2. Removal of AllowTypes in favor of using TotalSpawnLimit to disable boss types (Default: [99 99 99 99 99 99]). From left to right: sitting witch, wandering witch, stalker witch, normal tank, ambush tank, surprise tank.

3. Setting that limits how many witches and tanks can spawn per round regardless of their type (Default: [0 0]).

4. Stalker Witch, wandering witch that pathfinds to the closest reachable survivor. If she can't pathfind to a survivor, she would wander instead. Can spawn behind or ahead of survivors.

5. Setting that makes stalker witch stop moving when she is within a certain distance to a survivor (Default: 100.0).