Func block charge: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Initial creation of func_block_charge article)
 
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.)
 
(31 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{l4d2 brush|func_block_charge}} Chargers will not charge through this brush.
{{LanguageBar}}{{CD|CFuncBrush|CBaseEntity}}
{{stub}}
{{this is a|brush entity|name=func_block_charge|game=Left 4 Dead 2|sprite=Toolsnodraw.gif}} Chargers won't charge at players to which line of sight is blocked by this entity.
==KeyValues==
 
*{{KV Targetname}}
{{AABBwarning}}
*{{KV Parentname}}
{{ModernPlacementTip|See through fences, bridges where charger could try charging over a gap diagonally to you}}
*{{KV Origin}}
{{AltNames|name1=func_brush|misc=This entity is just func_brush with classname func_block_charge. It's the [[charger]]'s behaviour that makes him not start charge through entities with classname func_block_charge}}
*{{KV RenderFXChoices}}
{{ModernConfusion|This is not meant to block any sort of movement since it's not a solid brush that would block exclusively charging chargers.}}
*{{KV RenderFields}}
 
*{{KV DistanceFade}}
== Image demonstration ==
*{{KV_Global}}
[[File:Func block charge example.png|600px|center]]
*{{KV InputFilter}}
 
*{{KV EnableDisable}}
 
*{{ScrollBox|title=disablereceiveshadows|
[[File:Func block charge example2.png|600px|center]]
; Disable Receiving Shadows <code><choices></code>
{{clr}}
}}
== FGD Enhancement ==
*{{KV Minlight}}
Open <code>steamapps\common\Left 4 Dead 2\bin\left4dead2.fgd</code> and replace the <code>func_block_charge</code> section.
*{{ScrollBox|title=Solidity|
<source lang=js>
; Solidity <code><choices></code>
@SolidClass base(Targetname) = func_block_charge : "AI Chargers will not charge through this brush. (Based on AABB!)"
: Used to control the solidity/collision of these brushes.
[
:* 0: Toggle
Solidity(integer) readonly : "Solidity" : 1 : "Should be always never solid"
:* 1: Never Solid
]
:* 2: Always Solid
</source>
}}
 
*{{ScrollBox|title=invert_exclusion|
== See Also ==
; Invert NPC class exclusion <code><choices></code>
* {{ent|charger}}
: If set, then the excluded NPC class will consider this brush solid, and all other NPC classes will consider it non-solid.
}}
*{{ScrollBox|title=solidbsp|
; Solid BSP <code><choices></code>
: Set this if this brush is in heirarchy with a moving object of some kind, and the player can stand on this brush.
}}
*{{ScrollBox|title=vrad_brush_cast_shadows|
; Shadows <code><choices></code>
: Set this if this brush casts lightmap shadows.
}}
{{todo|Look for template for min/max cpu/gpu and disable360}}
==Inputs==
{{I Targetname}}
{{I Parentname}}
{{I EnableDisable}}
{{I Shadow}}
{{todo|Look for template for Alpha (there are two of them), Color, SetExclude, SetInvert}}  
==Outputs==
{{O Targetname}}
==See also==
==External links==
[[category:Left 4 Dead 2]]

Latest revision as of 17:54, 18 July 2025

English (en)Translate (Translate)
C++ Class hierarchy
CFuncBrush
CBaseEntity
Toolsnodraw.gif

func_block_charge is a brush entity available in Left 4 Dead 2 Left 4 Dead 2. Chargers won't charge at players to which line of sight is blocked by this entity.

Warning.pngWarning:This entity applies its effect based on its AABB instead of its brush model. [ Edit ]
PlacementTip.gifPlacement Tip:See through fences, bridges where charger could try charging over a gap diagonally to you
AltNames.pngAltNames: This entity is also tied to func_brush. This entity is just func_brush with classname func_block_charge. It's the charger's behaviour that makes him not start charge through entities with classname func_block_charge
Warning.pngRisk of Confusion:This is not meant to block any sort of movement since it's not a solid brush that would block exclusively charging chargers.

Image demonstration

Func block charge example.png


Func block charge example2.png

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

See Also