This article's documentation is for the "GoldSrc" engine. Click here for more information.
This article relates to the game "Half-Life". Click here for more information.

Func pushable (GoldSrc): Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(intn, split)
Line 1: Line 1:
{{HL1 topicon}}
{{HL1 topicon}}
{{tabs|func_pushable|goldsrc=1|source=1}}
{{tabs|func_pushable|goldsrc=1|source=1}}
{{split|[[func_pushable (GoldSrc)]] and [[func_pushable (Source)]]}}
{{this is a|brush entity|name=func_pushable|engine=goldsrc}}
{{this is a|brush entity|name=func_pushable|engine=GoldSrc|engine1=Source}}
A pushable brush object with very primitive physics.
A pushable brush object with very primitive physics. It can be thought of as the predecessor to [[func_physbox]]. It is used in {{hl|4}} and {{hls|4}}.


== Flags ==
== Flags ==
{{fl|128|Breakable}} - Allow the brush to be broken like [[func_breakable]].
{{fl|128|Breakable}} - Allow the brush to be broken like [[func_breakable]].
{{fl|256|No Use}} {{only|{{hls|4}}}} {{!fgd}} - Prevent the player from picking up the brush with [[+use]].


== Key Values ==
== Key Values ==
{{KV|Friction|float|The amount of friction in the brush.}}
{{KV|Friction|intn=friction|float|The amount of friction in the brush.}}
{{KV|Buoyancy|float|The amount of buoyancy in the brush.}}
{{KV|Buoyancy|intn=buoyancy|float|The amount of buoyancy in the brush.}}
{{KV|Hull size|choices|The size of the brushes' hull}}
{{KV|Hull size|intn=size|choices|The size of the brushes' hull}}
:{| class=standard-table
:{| class=standard-table
! Value || Description
! Value || Description
Line 25: Line 22:
| <code>3</code> || Player duck
| <code>3</code> || Player duck
|}
|}
{{KV|Spawn on break|string|What entity to spawn when this brush breaks.}}
{{KV|Spawn on break|intn=spawnobject|string|What entity to spawn when this brush breaks.}}
{{KV|Target on break|target_destination|What entity to fire an input to when this brush breaks.}}
{{KV|Target on break|intn=target|target_destination|What entity to fire an input to when this brush breaks.}}
{{KV|Explosion magnitude|float|How large should an explosion be when this brush breaks (if any)?}}
{{KV|Explosion magnitude|intn=explodemagnitude|float|How large should an explosion be when this brush breaks (if any)?}}
{{KV|Material type|choices|What material this brush uses. Will affect what kind of gibs are produced.}}
{{KV|Material type|intn=material|choices|What material this brush uses. Will affect what kind of gibs are produced.}}
:{| class=standard-table
:{| class=standard-table
! Value || Description
! Value || Description
Line 50: Line 47:
| <code>8</code> || Rock
| <code>8</code> || Rock
|}
|}
{{KV|Gib model|string|Used to specify a custom model to use when this brush breaks.}}
{{KV|Gib model|intn=gibmodel|string|Used to specify a custom model to use when this brush breaks.}}


[[Category:Entities]]
[[Category:Entities]]

Revision as of 10:12, 27 June 2024

func_pushable is a brush entity available in all GoldSrc GoldSrc games.

Warning.pngWarning:
  • The {{{engine}}} parameter is inconsistent with the name defined by the {{goldsrc}} template. This can most likely be fixed by setting the value of the {{{engine}}} parameter to GoldSrc.
    If a parameter is consistent but you're still seeing this warning, it may be an issue with the template itself. Please discuss it on the template's talk page.

A pushable brush object with very primitive physics.

Flags

Breakable : [128] - Allow the brush to be broken like func_breakable.

Key Values

Friction (friction) <float>
The amount of friction in the brush.
Buoyancy (buoyancy) <float>
The amount of buoyancy in the brush.
Hull size (size) <choices>
The size of the brushes' hull
Value Description
0 Point size
1 Player size
2 Big size
3 Player duck
Spawn on break (spawnobject) <string>
What entity to spawn when this brush breaks.
Target on break (target) <targetname>
What entity to fire an input to when this brush breaks.
Explosion magnitude (explodemagnitude) <float>
How large should an explosion be when this brush breaks (if any)?
Material type (material) <choices>
What material this brush uses. Will affect what kind of gibs are produced.
Value Description
0 Glass
1 Wood
2 Metal
3 Flesh
4 Cinder block
5 Ceiling tile
6 Computer
7 Unbreakable glass
8 Rock
Gib model (gibmodel) <string>
Used to specify a custom model to use when this brush breaks.