Func rotating: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (categorise - brushmodel entities)
Line 4: Line 4:
==Entity Description==
==Entity Description==
A rotating [[brush entity]].
A rotating [[brush entity]].
{{brushmodel}}


==Keyvalues==
==Keyvalues==

Revision as of 17:13, 10 May 2008

Template:Wrongtitle Template:Base brush

Entity Description

A rotating brush entity. Template:Brushmodel

Keyvalues

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

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