prop_monster_box

From Valve Developer Community
Jump to: navigation, search
Class hierarchy
???
CPhysicsProp
CBreakableProp
CBaseProp
CBaseAnimating
CBaseEntity
In-game screenshot of a prop_monster_box.

prop_monster_box is a point entity available in Portal 2 Portal 2.

It is a "Frankenturret", the result of welding together two turrets and one weighted storage cube. While it can't attack, it can still move on its own under certain conditions. When they press floor buttons, they will switch into the box state.

Icon-Bug.pngBug:If painted, Frankenturrets will not bounce around, slide or otherwise be affected by the gel. Players and other physics objects can be launched by bounce-gelled Frankenturrets.  [todo tested in?]
Icon-Bug.pngBug:Due to limitations of the viewmodel grabbing system, picking up frankenturrets in co-op causes them to freeze in a default pose and lose all their face plates. They return to normal when dropped.  [todo tested in?]

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start As Box (StartAsBox) <boolean>
Start as a cube instead of the extended mode.
Box Switch Speed (BoxSwitchSpeed) <float>
Speed to force switch to a cube.
Allow SilentDissolve input (AllowSilentDissolve) <boolean>
Allow the SilentDissolve input to dissolve this monster.

Inputs

BecomeBox
Force the Frankenturret to become a cube.
BecomeMonster
Allow the Turrets to come out when set down.
BecomeShortcircuit
Short circuit this Frankenturret, forcing it into the cube state and playing spark particle effects.
Icon-Bug.pngBug:In singleplayer, this forces the player to drop the object they are currently holding, even if that object is not the frankenturret itself  [todo tested in?]
Dissolve
Dissolves the Frankenturret.
SilentDissolve
Kills the Frankenturret and fires its OnFizzled output.

Outputs

OnFizzled
Fired when the Frankenturret gets fizzled.