Func block charge: Difference between revisions
Jump to navigation
Jump to search
Warning:AABB is used for LOS obscuring, so clipping or rotating brushes does not change a brush's size as one expects.
Note:The FGD entry is setup incorrectly!
(Rephrasal of description and added a warning, all on Nescius's wishes) |
(added a new FGD entry to use instead of the original, broken version.) |
||
Line 4: | Line 4: | ||
{{warning|[[AABB]] is used for LOS obscuring, so clipping or rotating brushes does not change a brush's size as one expects.}} | {{warning|[[AABB]] is used for LOS obscuring, so clipping or rotating brushes does not change a brush's size as one expects.}} | ||
{{note|The FGD entry is setup incorrectly!}} | {{note|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 <code>steamapps\common\Left 4 Dead 2\bin\left4dead2.fgd</code> and replace the <code>func_block_charge</code> section. | |||
<source lang=js> | |||
//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" | |||
] | |||
]</source> | |||
{{clr}} | {{clr}} | ||
== Keyvalues == | == Keyvalues == |
Revision as of 03:01, 14 March 2022
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.


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"
]
]