func_guntarget
Jump to navigation
Jump to search
Code classes:
CGunTarget
CBaseToggle
CBaseEntity
(all ents)
func_guntarget
is a brush entity present in all Source games. It's a breakable brush that can move along path_track
s.
Keyvalues[edit | edit source]
- Speed (units per second)
(speed)
<float>
- How fast the entity moves, in units per second.
- First stop target
(target)
<target_destination>
- Name of the first
path_track
in the path this entity should take. - Damage to Take
(health)
<integer>
- How much health the entity has.
- Shadows (Not in FGD)
(vrad_brush_cast_shadows)
<choices>
- Determines if this entity will cast lightmap shadows.
- 0: No shadows
- 1: Cast shadows
- Render Mode
(rendermode)
<choices>
- A special rendering mode to use on this entity.
- Render Amount/Transparency
(renderamt)
<integer>
- Transparency amount, requires a Render Mode
(rendermode)
other than Normal. 0 is invisible, 255 is fully visible.
- Render Color (R G B)
(rendercolor)
<color255>
- Color channel filter to add to this entity's texture(s). Bug: Broken for brush entities.
- Render FX
(renderfx)
<choices>
- Preset appearance effects. Partially supported in , completely non-functional in . Bug: Sometimes functions incorrectly if changed with AddOutput, but is the only way to change effects other than making multiple versions of the object.
- Minimum Light
(_minlight)
<float>
- Minimum amount of light to hit this brush. 0 is none, 1 is "fullbright". Useful because the lightmaps will not update as the entity moves.
- Render in Fast Reflections
(drawinfastreflection)
<boolean>
(available in all games since ) - Makes the entity be rendered in reflections from water materials using
$reflectonlymarkedentities
.
Inputs[edit | edit source]
- Start
- Makes the brush start moving.
- Stop
- Makes the brush stop moving.
- Toggle
- Switches brush between moving and not moving.
- Alpha
<integer>
- Sets Render Amount/Transparency
(renderamt)
.
- Color
<color255>
- Sets the Render Color
(rendercolor)
.
- EnableDrawInFastReflection (available in all games since )
- Sets Render in Fast Reflections to true.
- DisableDrawInFastReflection (available in all games since )
- Sets Render in Fast Reflections to false.
Outputs[edit | edit source]
- OnDeath
- Fires when the entity is broken.
!activator
is the damage inflictor.