Func block charge
Jump to navigation
Jump to search
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.


Keyvalues

- Solidity (Solidity) <choices>
- Used to control the solidity/collision of these brushes.
- 0: Toggle - The solidity can be toggled together with its visibility.
- 1: Never Solid
- 2: Always Solid
- Solid BSP (solidbsp) <boolean>
- Set this to BSP if the player seems to rotate oddly relative to the surface.
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"
]
]