func_block_charge

From Valve Developer Community
Jump to: navigation, search
English (en)Translate (Translate)
Class hierarchy
CFuncBrush
CBaseEntity
Toolsnodraw.gif

func_block_charge is a brush entity available in Left 4 Dead 2 Left 4 Dead 2. Chargers won't charge at players to which line of sight is blocked by this entity.

Warning.pngWarning:This entity applies its effect based on its AABB instead of its brush model.
PlacementTip.gifPlacement Tip:See through fences, bridges where charger could try charging over a gap diagonally to you
AltNames.pngAltNames: This entity is also tied to func_brush. This entity is just func_brush with classname func_block_charge. It's the charger's behaviour that makes him not start charge through entities with classname func_block_charge
Warning.pngRisk of Confusion:This is not meant to block any sort of movement since it's not a solid brush that would block exclusively charging chargers.

Image demonstration

Func block charge example.png


Func block charge example2.png

FGD Enhancement

Open steamapps\common\Left 4 Dead 2\bin\left4dead2.fgd and replace the func_block_charge section.

@SolidClass base(Targetname) = func_block_charge : "AI Chargers will not charge through this brush. (Based on AABB!)"
[
	Solidity(integer) readonly : "Solidity" : 1 : "Should be always never solid"
]

See Also