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!
(added a new FGD entry to use instead of the original, broken version.) |
(→FGD Edits: added solidity lines, because the entity would compile as solid without them.) |
||
Line 17: | Line 17: | ||
1 : "Yes" | 1 : "Yes" | ||
] | ] | ||
//Solidity added because it compiles solid without these lines. | |||
solidbsp(choices) : "Solid BSP" : 0 : "Set this if this brush is in heirarchy with a moving object of some kind, and the player can stand on this brush." = | |||
[ | |||
0 : "No" | |||
1 : "Yes" | |||
] | |||
Solidity(choices) : "Solidity" : 1 : "Used to control the solidity/collision of these brushes." = | |||
[ | |||
0 : "Toggle" | |||
1 : "Never Solid" | |||
2 : "Always Solid" | |||
] | |||
]</source> | ]</source> | ||
{{clr}} | {{clr}} | ||
== Keyvalues == | == Keyvalues == | ||
{{KV BaseEntity|l4d2=1}} | {{KV BaseEntity|l4d2=1}} |
Revision as of 04:06, 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"
]
//Solidity added because it compiles solid without these lines.
solidbsp(choices) : "Solid BSP" : 0 : "Set this if this brush is in heirarchy with a moving object of some kind, and the player can stand on this brush." =
[
0 : "No"
1 : "Yes"
]
Solidity(choices) : "Solidity" : 1 : "Used to control the solidity/collision of these brushes." =
[
0 : "Toggle"
1 : "Never Solid"
2 : "Always Solid"
]
]