Func rotating

From Valve Developer Community
Jump to navigation Jump to search

Template:Wrongtitle Template:Base brush

Entity Description

A rotating brush entity. Template:Brushmodel

Note.pngNote:Func_rotating behaves strangely in TF2. If you parent an entity to a func_rotating it will not work.

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

Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
  • Origin:
Origin (X Y Z) (origin) <origin>
The position of this entity's center in the world. Rotating entities typically rotate around their origin.
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.
  • RenderFields:


Render Mode (rendermode) <byte choices>
Set a non-standard rendering mode on this entity.
Render Modes
  • 0: Normal
  • 1: Color
  • 2: Texture
  • 3: Glow
  • 4: Solid/Alphatest Obsolete
  • 5: Additive
  • 6: Removed, does nothing Obsolete
  • 7: Additive Fractional Frame
  • 8: Alpha Add
  • 9: World Space Glow
  • 10: Don't Render
Render FX (renderfx) <byte choices>
Various somewhat legacy alpha effects. See render effects.
Render Amount / Transparency (renderamt) <byte>
Transparency amount, requires a Render Mode other than Normal. 0 is invisible, 255 is fully visible.
Render Color (R G B) (rendercolor) <color255>
Color tint.
  • disablereceiveshadows <boolean>
  • disableshadows <boolean>
  • maxspeed <integer>
The maximum rotation speed of the brushes, in degrees per second.
  • fanfriction <integer>
The amount of rotational friction. Value must be between 0 and 100 %.
  • message <sound>
Sound to play while rotating.
  • volume <integer>
The volume of the rotation sound. 0–10, where 10 is loudest.
  • _minlight <string>
The minimum level of ambient light that hits this brush.
  • dmg <integer>
Damage done to any entity that blocks the rotation, per frame.

Flags

  • 1 : Start ON
  • 2 : Reverse Direction
  • 4 : X Axis
  • 8 : Y Axis
  • 16: Acc/Dcc
  • 32: Fan Pain
  • 64: Not Solid
  • 128: Small Sound Radius
  • 256: Medium Sound Radius
  • 512: Large Sound Radius

Inputs

Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <stringRedirectInput/string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • DisableShadow
Turn shadow off.
  • EnableShadow
Turn shadow on.
  • SetSpeed <integer>
Set the speed as a ratio of the specified Max Rotation Speed, where 0 is stopped and 1 is maxspeed.
  • Start
Start the rotator rotating.
  • Stop
Stop the rotator from rotating.
  • StopAtStartPos
Stop the rotator from rotating when it gets around to the start position again (on its rotation axis).
  • StartForward
Start the rotator rotating forward.
  • StartBackward
Start the rotator rotating backward.
  • Toggle
Toggle the rotator between rotating and not rotating.
  • Reverse
Reverse the direction of rotation of the rotator.

Outputs