Left 4 Dead 2

Left 4 Dead 2

117 个评价
[VScript] Witches Spawn Off of the Main Path
   
奖励
收藏
已收藏
取消收藏
Game Content: Scripts
文件大小
发表于
7.827 KB
7 月 2 日 下午 3:07
1 项改动说明 ( 查看 )

订阅以下载
[VScript] Witches Spawn Off of the Main Path

描述
It is as the title says. The days of being forced to kill the infected you're meant to avoid are over.

Whenever Yours Truly spawns, the script will automatically relocate her to a new, more suitable spawn location if she's too close to the main path.

The main path is identified through navigation mesh attributes. If a nav area containing the attribute "ESCAPE_ROUTE" (meaning this nav area is part of the fastest possible route from start to the end of the level, thus the main path) is found, that's how the spawned witch is considered too close to it.

The nav mesh's main path may differ from the path you take, depending on the map you're playing. If a witch is spawned in what you consider to be the main path, it means there is another route that the game considers to be the main one.

SETTINGS
Here's the fun part: I included multiple options that you can configure based on your needs. Do you think the witch still spawns too close to the main path still? You can change that. Want the witch to be as far as she can be from your eyes? You can do that too, I guess.

Settings are located in left4dead2/ems/witches_spawn_off_path/settings.txt. Here's an overview of each of them:
https://psteamcommunity.yuanyoumao.com/workshop/filedetails/discussion/3514969443/598531176428236316/
热门讨论 查看全部(1)
0
7 月 2 日 下午 3:12
置顶: Settings
Witch
28 条留言
Poolsup (TH) 10 月 26 日 下午 9:45 
but some reason the witch randomizer spawn out the map
macarøni 9 月 28 日 下午 4:43 
thanks witch
Friendly Neighborhood Combine 8 月 30 日 上午 10:11 
@Nawis you're a monster
Nawis 8 月 30 日 上午 6:59 
nah, very often the witch is put in a place easily avoidable, however if u put her sometimes in front of saferoom, rescue doors or narrw paths etc.
Witch  [作者] 8 月 30 日 上午 6:53 
@Nawis vanilla is already like that
Nawis 8 月 30 日 上午 6:33 
i was there was a script that did the reverse, make witches spawn more in path
Zombie 8 月 18 日 下午 12:55 
could you add a check to make sure the witch doesnt spawn in fire or a kill trigger
Cheetos 7 月 11 日 上午 12:04 
This is just incredible
R󠀡F 7 月 9 日 下午 12:00 
@Witch I use this in some of my scripts to check manual spawns.

local IsSpawner = false;
if(Entities.FindByClassnameWithin(null, "commentary_zombie_spawner", witch.GetOrigin(), 50.0))
IsSpawner = true;
else if(Entities.FindByClassnameWithin(null, "info_zombie_spawn", witch.GetOrigin(), 50.0))
IsSpawner = true;
if(!IsSpawner etc etc)

Chat formatting be damned.
Witch  [作者] 7 月 9 日 上午 11:49 
@RF I don't know if it's possible to track what's spawning them.