STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
STEAM GROUP
Left 4 Dead 2 Workshop Beta L4D2WSB
1
IN-GAME
21
ONLINE
Founded
15 October, 2012
func_nav_blocker entity to block specific enemies.
I want to block a path (nav) for common infected, boomers, chargers, hunters, jockeys, spitters and smokers. However the same path (nav) should not be blocked for tanks, witches and all survivors. The block should not affect flow and should be turned on/off (BlockNav/UnblockNav).

func_nav_blocker entity can only block teams: Either all survivors, all infected or everyone.
Last edited by SeriouS_Samurai; 13 Mar, 2013 @ 10:44am
< >
Showing 1-2 of 2 comments
Neil - 119 13 Mar, 2013 @ 2:31pm 
Write a script to fire OnTouch of a trigger_multiple. Get the entity's classname. If the entity's classname is NOT "witch" && GetZombieType() is NOT tank && ent index > 4 then get the ent's forward vector, normalize the forward vector, scale the vector, and negate the vector and set its velocity vector to the result. That's how I would do it, since many brushes aren't networked, but trigger_multiple is :P As for turning the block on and off, just use a global boolean flag and set that to true/false.
shotgunefx 14 Mar, 2013 @ 2:20pm 
There is the "TANK_ONLY" attribute, not sure if you can set it manually though. Also might not compute flow through it
< >
Showing 1-2 of 2 comments
Per page: 1530 50