func_pushable

A func_pushable is a brush that players push by walking into it or by holding their use key on it. With the flag
Breakable, it also breaks like a func_breakable, and only then do the breakable keys work.
Attributes
The entity also has these common keys:
- Naming and triggering: Target, KillTarget and Global Entity Name
- Appearance: all except Model scale, Body and Skin
- Compiler keys of brush entities: all of them
targetnameTriggering the entity breaks it if it has the flag Breakable, and with Toggleable push, triggering it switches it between pushable and fixed in place. See Common keys.
delaySets how many seconds pass after it breaks before it fires its Target. With the flag Pressure, it is also how long it holds after a player steps on it, at least 0.1 seconds.
0healthSets how much damage it takes before it breaks. Melee hits deal double damage to it. On a func_pushable, it only matters with the flag Breakable.
If you leave this key empty or set 0, the first hit breaks it.
1materialSets what it is made of. This sets the sounds when it is hit and when it breaks, the gibs it breaks into and the marks that hits leave.The 9 choices
Glass (0)explosionSets which way the gibs fly when it breaks.
- Random (0) - In random directions
- Relative to Attack (1) - Away from the hit that broke it
Random (0)gibmodelSets a model for the broken pieces, used instead of the normal gibs of its Material type.
spawnobjectSets an object that appears where it breaks. You can also type the class name of an item, a weapon or ammo that starts with item_, weapon_ or ammo_, such as weapon_k444 or item_battery. With any other class name, such as a monster's, nothing appears. With developer 1 set in the console, the console then shows an error when the map starts. You can't change this key while the map runs.
- Nothing (0) - Nothing appears
- Battery (1) - A battery
- RPG (14) - A Nuclear RPG
- RPG Clip (15) - RPG ammo
- Hand grenade (17) - A hand grenade
- Tripmine (18) - A mine
- Satchel Charge (19) - A satchel charge
- Pitbull (20) - Pitbulls
Nothing (0)explodemagnitudeMakes it explode when it breaks, with this much damage and a fireball to match. The blast reaches 2.5 times this value in units, and 0 means no explosion.
0Sets how many gibs it breaks into, up to 255. With 0, the game decides, and with -1, it breaks into no gibs.
0Sets the size of the gibs, so 0.5 is half and 2 is double.
If you leave this key empty or set 0, the gibs have their normal size.
The entity fires this at each hit, and passes on a point at the spot of the hit as the activator. That point moves in the direction of the hit, so a locus vector key can read the direction.
Sets the activator that the Target gets when it breaks.
- No (Default) (0) - No activator
- This breakable (1) - The breakable itself
- My attacker or activator (2) - The player or monster that broke it
No (Default) (0)Sets whether it throws sparks when it is hit.
- Default (only computer material) (0) - Only the Computer material throws sparks
- Yes (1) - It sometimes throws sparks and plays a spark sound when a shot, a melee attack or a beam hits it
Default (only computer material) (0)Sets whether its look changes when it is damaged.
- No (0) - It keeps its texture
- Switch to alternate texture (1) - It shows its alternate texture, the
+aframe, once it has half of its Strength or less
No (0)frictionSets how hard it is to push, from 0 up to 399, because players can push it at up to 400 minus this value, in units per second.
If you leave this key empty, it is 0 and players push it at the full 400 units per second.
50buoyancySets how strongly it floats in water, and the value is multiplied by the size of its base.
If you leave this key empty, it is 0 and it sinks.
20Flags
1Only TriggerOnly a trigger breaks it, so damage does nothing, and monster melee attacks don't lower its health either
With Trigger when hit, the entity reverses the horizontal part of the hit direction that it passes on, so the direction points back toward the shooter
128BreakableIt can be broken like a func_breakable, with the Strength, the Material type and the other breakable keys
256Instant CrowbarA melee hit of a player breaks it at once, even when its Strength is high. This flag is set by default
512Explosives OnlyOnly explosions and grenades hurt it, so bullets and melee hits do nothing
Notes
-
If a player started the chain of triggers, a trigger doesn't break the pushable, because the pushable treats the trigger as that player pulling it. A trigger whose activator isn't a player breaks it
-
A pushable can't move with a parent, because it moves on its own, but it rides along on a moving object it stands on. See Moving objects
See also
func_breakable- a brush that breaks- func_pushable on TWHL - the Half-Life entity
Changes since 1.38
- You can use the new key Toggleable push, the new flag Invert Hit Vector and the new breakable keys of
func_breakable - With Gibs Direction "Relative to Attack", the gibs of a broken pushable fly away from the attacker. In SBO 1.38, they flew toward the attacker
- New in SBO 2.1.0: Spawn On Break also takes a class name

