Func block charge: Difference between revisions
Jump to navigation
Jump to search

Placement Tip:See through fences, bridges where charger could try charging over a gap diagonally to you
Note:This entity in code is most likely just func_brush with classname keyvalue changed to func_block_charge. For example firing AddOutput "classname func_block_charge" on a func_brush makes it behave like func_block_charge
m (swapped templates for modern counterparts. Also reworded AABB warning) |
(-classname is probably CFuncBrush) |
||
Line 1: | Line 1: | ||
{{lang|title=func_block_charge}} | {{lang|title=func_block_charge}} | ||
{{ | {{CD|CFuncBrush|CBaseEntity}} | ||
{{entity|func_block_charge|type=e2|game=Left 4 Dead 2}} It forbids an AI Charger to charge when obscuring LOS with targeted player. AI Chargers however will still run and punch at targets. | {{entity|func_block_charge|type=e2|game=Left 4 Dead 2}} It forbids an AI Charger to charge when obscuring LOS with targeted player. AI Chargers however will still run and punch at targets. | ||
Line 7: | Line 7: | ||
If you need a large diagonal brush, you must create multiple small square entities aligned diagonally.}} | If you need a large diagonal brush, you must create multiple small square entities aligned diagonally.}} | ||
{{ModernPlacementTip|See through fences, bridges where charger could try charging over a gap diagonally to you}} | {{ModernPlacementTip|See through fences, bridges where charger could try charging over a gap diagonally to you}} | ||
{{Note|This entity in code is most likely just func_brush with classname keyvalue changed to func_block_charge. For example firing AddOutput "classname func_block_charge" on a func_brush makes it behave like func_block_charge}} | |||
== Keyvalues == | == Keyvalues == |
Revision as of 07:07, 3 August 2023


![]() |
---|
CFuncBrush |
Template:Entity It forbids an AI Charger to charge when obscuring LOS with targeted player. AI Chargers however will still run and punch at targets.


Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
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"
]