Left 4 Dead 2

Left 4 Dead 2

54 ratings
Switch to Infected Team on Death
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
47.587 KB
9 Dec, 2024 @ 1:26am
17 Sep @ 7:01am
27 Change Notes ( view )

Subscribe to download
Switch to Infected Team on Death

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

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

當真人倖存者為死亡狀態, 轉換為特感隊伍進行搗蛋
When a human survivor is dead currently, switch to the infected team to play tricks.

※沒有倒數/出生不是幽靈狀態
※如果卡住了 輸入!killme可以自殺

※No countdown/No ghost mode on spawn.
※If you are stuck, type !killme can kill yourself.

Setting file path:
\ems\infectedteamondeath\settings.tbl

設定說明:
Description of settings:
設定名
Setting's name
說明
Description
DamageMul
(Default: 1.0)
Multiplier for damage done by human SIs.
※0~1.0
真人特感造成的傷害加成
※0~1.0
HumanTank
(Default: false)
If true, Tank bots will give control to humans.
如果為 true 電腦Tank會將控制權給人類
Cooldown
(Default: 5.0)
Can not be converted to SI within this many time.
Start to countdown on death.
冷卻時間內無法變為特感
死亡後開始倒數
SwitchTimes
(Default: 99)
Can be converted to SI for this many times.
Reset when you die as a survivor.
※0~any integer
可變為特感的次數
只在你以倖存者死亡時重置
※0~任意整數
EnableTime
(Default: 3)
When to enable the script?
0 = never.
1 = finale has not started (or non-rescue map).
2 = finale has started.
Add numbers together.
何時啟動腳本?
0 = 不要啟動
1 = 救援開始前 (或非救援地圖)
2 = 救援開始後
將數字相加
TeleportOnSpawn
(Default: false)
If true, teleport the human infected to the start area (if exists) on spawn.
Tank is excluded.
※Invalid if SwitchTrigger is set.
如果為 true 傳送玩家特感到初始安全區(如果存在)
Tank除外
※SwitchTrigger有設定時無效
SwitchTrigger
(Default: "")
If you write any word, typing !(word) in chat box will switch your team (if the condition is met) and disable auto SI takeover.
※Tank first
For example:
SwitchTrigger = "inf" → !inf
如果你輸入任何字 聊天欄輸入!(字) 將會切換你的隊伍(如果符合條件)並停用自動切換SI
※Tank優先
例:
SwitchTrigger = "inf" → !inf
AllowChoose
(Default: false)
If true, typing !SwitchTrigger <SI name> will switch to the SI.
For example:
!(word) smoker
!(word) sm

※If not specified, a random non-Tank SI will be selected.
※!(word) tank is only effective if there is a Tank that meets the condition.
如果為true 輸入!SwitchTrigger <SI 名稱> 將切換到該SI
例:
!(word) smoker
!(word) sm

※不指定則為Tank以外隨機
※!(word) tank 必須有符合條件的Tank才有效
AllowVisible
(Default: false)
If true, can be switched within the survivors’ visible range.
如果為true 可以在倖存者可見範圍內切換
MinDistance
(Default: 250.0)
The minimum distance between you and survivors required for switching.
與倖存者至少距離多遠才能切換

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

翻譯詞檔案位於\ems\translations\infectedteamondeath.tbl

Translation phrases file is located at \ems\translations\infectedteamondeath.tbl

API language code:
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}"
Popular Discussions View All (2)
4
11 Dec, 2024 @ 9:07pm
There's a big problem
Jugs
2
10 Dec, 2024 @ 9:05am
Bug
Unsants
75 Comments
KitsuneRen 6 Oct @ 11:18pm 
Sorry for the late reply its working perfectly found out i there is something conflicting with this mod
kouga 18 Sep @ 10:36am 
i noticed the new update earlier and ive been playing around with it for the past 30 minutes. its SPECTACULAR!!! you've genuinely done an amazing job, it's so fun to mess with my bots on singleplayer and i cannot thank you enough
skysky199  [author] 13 Sep @ 7:13am 
@KitsuneRen

And 2 libs too?

@CATSarekittens

There is a manual suicide cmd.
As for afk players, I think just using an admin script to kick them.
CATSarekittens 3 Sep @ 9:27pm 
You should add an auto suicide timer if the player doesn't attack like how the tank has one in case the player is afk or is stuck. and you can customize the time or disable it.
KitsuneRen 3 Sep @ 3:10pm 
does this mod still work ? i have both the enable script and this mod its not doing anything did try on local server by falling but nothing happends if there is a way any help thanks
kouga 21 Aug @ 9:40am 
@skysky199

i can see your point too. but as someone who mainly plays on singleplayer and a lot of the mods i like cant be used on versus, playing as infected especially in the way this mod offers is just a unique experience. anyways, at the end of the day it is your mod, and if you say it will take time, that is fine by me 😁 i hope i dont come across as brash and demanding about it. after all, there are also other mods you are probably working on and i wouldn't want you to burn out👍

thank you!
skysky199  [author] 21 Aug @ 8:04am 
@kouga

I understand what you mean. I just feel like it's better not to go too far beyond what the Campaign mode was originally designed for. If you want to play as infected, Versus mode is more suitable.

It can be added, but it will require some time.
kouga 20 Aug @ 3:19pm 
> player dies
> spectator mode, fly around, decide where to spawn
> script doesnt turn you into infected automatically, you have to do it yourself
> to do so, type !infected
> if cooldown is not done and you try the !infected command, it will prevent you from spawning and return "unable to spawn due to cooldown" in chat
> if cooldown is done and you try !infected, it will spawn you in place of where you are spectating, as random infected

my thought process is that, with the mods current functionality, i am not in control of where i spawn. meaning there are times when i become an infected at an bad moment and just immediately get killed by survivors anyway. since ghost mode is impossible thru vscript, i thought this could be another way to do it, as i do know the mechanic im picturing is possible due to this mod called team switch/ morph script showcasing the same behavior in the third gif
kouga 20 Aug @ 2:57pm 
ahhh, perhaps i worded things in a confusing manner. my suggestion/request specifically also only applies when players are dead, i dont mean it to be switching into infected at any time.
kouga 20 Aug @ 2:54pm 
im not sure how exactly my suggestion is at odds with what you said. 🤔 i just want to be able to decide where i can spawn while im a spectator, type !infected or something along those lines, and revive into an infected. and you shouldnt be able to spam the mechanic unless you have cooldown set to 0, otherwise it will prevent you from spawning