Func block charge

From Valve Developer Community
Revision as of 03:01, 14 March 2022 by MrFunreal (talk | contribs) (added a new FGD entry to use instead of the original, broken version.)
Jump to navigation Jump to search
File:Func block charge.gif
Click the GIF to animate it.

Template:L4d2 brush It forbids an AI Charger to charge when obscuring LOS with targeted player. AI Chargers however will still run and punch at targets.

Warning.pngWarning:AABB is used for LOS obscuring, so clipping or rotating brushes does not change a brush's size as one expects.
Note.pngNote:The FGD entry is setup incorrectly!


FGD Edits

Here is a modified FGD Entry that keeps only the parts that seem to be used, based on data that has been filled out in original valve maps. Open steamapps\common\Left 4 Dead 2\bin\left4dead2.fgd and replace the func_block_charge section.

//Func_block_charge edits
@SolidClass base(Targetname, Parentname, Origin, Global, EnableDisable) = func_block_charge : "AI Chargers will not charge through this brush. (Based on Bounding Box!)"
[
	StartDisabled(choices) : "Start Disabled" : 0 =
	[
		0 : "No"
		1 : "Yes"
	]
]

Keyvalues

Inputs

Outputs