Left 4 Dead 2

Left 4 Dead 2

117 arvostelua
[VScript] Witches Spawn Off of the Main Path
   
Palkinto
Lisää suosikkeihin
Lisätty suosikkeihin
Poista suosikeista
Game Content: Scripts
Tiedostokoko
Julkaistu
7.827 KB
2.7. klo 15.07
1 muutos ( näytä )

Tilaa ladataksesi
[VScript] Witches Spawn Off of the Main Path

Kuvaus
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/
Suositut keskustelut Näytä kaikki (1)
0
2.7. klo 15.12
TÄRKEÄ: Settings
Witch
28 kommenttia
Poolsup (TH) 26.10. klo 21.45 
but some reason the witch randomizer spawn out the map
macarøni 28.9. klo 16.43 
thanks witch
@Nawis you're a monster
Nawis 30.8. klo 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  [tekijä] 30.8. klo 6.53 
@Nawis vanilla is already like that
Nawis 30.8. klo 6.33 
i was there was a script that did the reverse, make witches spawn more in path
Zombie 18.8. klo 12.55 
could you add a check to make sure the witch doesnt spawn in fire or a kill trigger
Cheetos 11.7. klo 0.04 
This is just incredible
R󠀡F 9.7. klo 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  [tekijä] 9.7. klo 11.49 
@RF I don't know if it's possible to track what's spawning them.