Prop weighted cube: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Added entity data)
(Updated with data from the official portal2.fgd)
Line 9: Line 9:


==Keyvalues==
==Keyvalues==
{{KV BasePropPhysics}}
{{KV Targetname}}
{{KV RenderFields}}
{{KV Angles}}
{{KV|Allow Funnelling|boolean}}
{{KV Reflection}}
{{KV|Type of cube|choices}}
{{KV|Skin (OLD)|choices}}
:* 0 : Normal
:* 0 : Standard
:* 1 : Companion
:* 1 : Companion
:* 2 : Redirection
:* 2 : Standard Activated
:* 3 : Ball
:* 3 : Reflective
:* 4 : Under
:* 4 : Sphere
{{KV|New skins|integer}}
:* 5 : Antique
{{KV|Paint power|choices}}
{{KV|Cube Type|choices}}
:* 0 : Bouncy
:* 0 : Standard
:* 1 : Normal
:* 1 : Companion
:* 2 : Speedy
:* 2 : Reflective
 
:* 3 : Sphere
==Flags==
:* 4 : Antique
{{Fl BasePropPhysics}}
{{KV|Skin Type|choices}}
:* 0 : Clean
:* 1 : Rusted
{{KV|Paint Power|choices|The paint power of the cube.}}
:* 0 : Bounce
:* 2 : Speed
:* 3 : Portal
:* 4 : None
{{KV|Use new skins|boolean|Use the values in the Cube Type and Skin Type fields instead of the Skin(OLD) field.}}
{{KV|Allow Portal Funneling|boolean|Whether or not this object should auto-funnel into a portal.}}


==Inputs==
==Inputs==
{{I BasePropPhysics}}
{{I Targetname}}
{{I RenderFields}}
{{I Reflection}}


==Outputs==
==Outputs==
{{O BasePropPhysics}}
{{O Targetname}}
{{O RenderFields}}
{{IO|OnFizzled|Fired when a cube is fizzled.}}
{{IO|OnOrangePickUp|Orange picked up the cube.}}
{{IO|OnBluePickUp|Blue picked up the cube.}}
{{IO|OnPlayerPickup|Player picked up the cube.}}
{{IO|OnPhysGunDrop|Player dropped the cube.}}
{{IO|OnPainted|Cube got painted.}}

Revision as of 02:39, 11 May 2011

Weighted Pivot Cube

Template:Portal2 point



Entity description

The various kinds of Weighted storage cubes, including the Weighted Pivot Cube (also known as Discouragement Redirection Cubes) that redirects Thermal Discouragement Beams. Not to be confused with the Frankenturrets.

Keyvalues

Name (targetname) <string>[ Edit ]
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

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 Portal 2)
If enabled, this entity will render in fast water reflections (i.e. when a water material specifies $reflectonlymarkedentities) and in the world impostor pass.
Skin (OLD) ([todo internal name (i)]) <choices>
  • 0 : Standard
  • 1 : Companion
  • 2 : Standard Activated
  • 3 : Reflective
  • 4 : Sphere
  • 5 : Antique
Cube Type ([todo internal name (i)]) <choices>
  • 0 : Standard
  • 1 : Companion
  • 2 : Reflective
  • 3 : Sphere
  • 4 : Antique
Skin Type ([todo internal name (i)]) <choices>
  • 0 : Clean
  • 1 : Rusted
Paint Power ([todo internal name (i)]) <choices>
The paint power of the cube.
  • 0 : Bounce
  • 2 : Speed
  • 3 : Portal
  • 4 : None
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.

Inputs

Reflection:

DisableDrawInFastReflection  (in all games since Portal 2)
Turns off rendering of this entity in reflections when using $reflectonlymarkedentities in water material.
EnableDrawInFastReflection  (in all games since Portal 2)
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
Cube got painted.