Prop weighted cube: Difference between revisions
Jump to navigation
Jump to search
Note:Frankenturrets are their own entity, prop_monster_box.
Tip:TeamSpen210's Hammer Addons allow this entity to accurately display all cube types in Hammer, as well as custom models.
No edit summary |
(→Inputs: PreDissolveJoke actually is functional, but is a (useless) special case for a specific campaign map.) |
||
Line 42: | Line 42: | ||
{{IO|Dissolve|Dissolves the cube.}} | {{IO|Dissolve|Dissolves the cube.}} | ||
{{IO|SilentDissolve|Kills the cube and fires its OnFizzled output.}} | {{IO|SilentDissolve|Kills the cube and fires its OnFizzled output.}} | ||
{{IO|PreDissolveJoke| | {{IO|PreDissolveJoke|Calls the VScript function <code>CoopCubeFizzle()</code> on <code>@glados</code>. Used in <code>mp_coop_multifling_1</code> when the cubes fall in the goo. Seemingly useless, as this could have been done by using FireUser inputs or just directly calling the function from the trigger.}} | ||
{{IO|ExitDisabledState|Exits the disabled state of a reflective cube.}} | {{IO|ExitDisabledState|Exits the disabled state of a reflective cube.}} | ||
{{IO|EmitLaser|Turn laser on or off. Pass {{boolean}} 0 or 1 as parameter.|only={{P2CE}}}} | {{IO|EmitLaser|Turn laser on or off. Pass {{boolean}} 0 or 1 as parameter.|only={{P2CE}}}} |
Revision as of 20:55, 24 September 2020
Template:Portal2 point It represents the various kinds of Weighted storage cubes, including the Discouragement Redirection Cube that redirects Thermal Discouragement Beams. It can be painted with gel.


Keyvalues
- Cube Type ([todo internal name (i)]) <choices>
- Cube model type.
- 0 : Standard
- 1 : Companion
- 2 : Reflective
- 3 : Sphere
- 4 : Antique
- 5 : Schrödinger's Cube (only in
)
- 6 : Custom model (!FGD)
- Skin Type ([todo internal name (i)]) <choices>
- Which skin variant to use. Only Standard and Reflection cubes have rusted skins.
- 0 : Clean
- 1 : Rusted
- model ([todo internal name (i)]) <string> !FGD
- If Cube Type is set to 6, this is the model to use. Swap to a normal type OnMapSpawn using AddOutput to ensure gel skins behave correctly.
- Paint Power ([todo internal name (i)]) <choices>
- The cube's starting paint type.
- 0 : Bounce
- 2 : Speed
- 3 : Portal
- 4 : None
- Skin (OLD) ([todo internal name (i)]) <choices>
- Cube skin, old method. Deprecated; use Cube Type instead. This appears to just set specific Cube Types on spawn.
- 0 : Standard
- 1 : Companion
- 2 : Standard Activated
Bug:Non-functional. Produces a companion cube. [todo tested in ?]
- 3 : Reflective
- 4 : Sphere
- 5 : Antique
- Use new skins ([todo internal name (i)]) <boolean>
- Use the values in the Cube Type and Skin Type fields instead of the Skin(OLD) field.
- Allow Portal Funneling ([todo internal name (i)]) <boolean>
- Whether or not this object should auto-funnel into a portal.
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Pitch Yaw Roll (Y Z X) (angles) <QAngle>
- This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.
- Render in Fast Reflections (drawinfastreflection) <boolean> (in all games since
)
- If enabled, this entity will render in fast water reflections (i.e. when a water material specifies
$reflectonlymarkedentities
) and in the world impostor pass.
Inputs
- EnablePortalFunnel
- Enable portal funneling behavior.
- DisablePortalFunnel
- Disable portal funneling behavior.
- Dissolve
- Dissolves the cube.
- SilentDissolve
- Kills the cube and fires its OnFizzled output.
- PreDissolveJoke
- Calls the VScript function
CoopCubeFizzle()
on@glados
. Used inmp_coop_multifling_1
when the cubes fall in the goo. Seemingly useless, as this could have been done by using FireUser inputs or just directly calling the function from the trigger.
- ExitDisabledState
- Exits the disabled state of a reflective cube.
- EmitLaser (only in
)
- Turn laser on or off. Pass <boolean> 0 or 1 as parameter.
Reflection:
- DisableDrawInFastReflection (in all games since
)
- Turns off rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
- EnableDrawInFastReflection (in all games since
)
- Turn on rendering of this entity in reflections when using
$reflectonlymarkedentities
in water material.
Outputs
- OnFizzled
- Fired when a cube is fizzled.
- OnOrangePickUp
- Orange picked up the cube.
- OnBluePickUp
- Blue picked up the cube.
- OnPlayerPickup
- Player picked up the cube.
- OnPhysGunDrop
- Player dropped the cube.
- OnPainted
- Fired when the cube is painted with gel.