Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Func rotating

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Contents

func_rotating

Source(core) Solid Entity


description

A rotating brush entity.


properties

  • Name targetname(target_source)
    The name that other entities refer to this entity by.
  • Parent parentname(target_destination)
    The name of this entity's parent in the movement hierarchy. Entities with parents move with their parent.
  • 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(angle) - default: 0 0 0
    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 Mode rendermode(choices) - default: Used to set a non-standard rendering mode on this entity. See also 'FX Amount' and 'FX Color'.
    • 0 - Normal
    • 1 - Color
    • 2 - Texture
    • 3 - Glow
    • 4 - Solid
    • 5 - Additive
    • 7 - Additive Fractional Frame
    • 9 - World Space Glow
    • 10 - Dont Render
  • FX Amount (0 - 255) renderamt(integer) - default: 255
    The FX amount is used by the selected Render Mode.
  • FX Color (R G B) rendercolor(color255) - default: 255 255 255
    The FX color is used by the selected Render Mode.
  • Disable Receiving Shadows disablereceiveshadows(choices)
    • 0 - No
    • 1 - Yes
  • Disable shadows disableshadows(choices)
    • 0 - No
    • 1 - Yes
  • Max Rotation Speed maxspeed(integer) - default: 100
    The maximum rotation speed of the brushes, in degrees per second.
  • Friction (0 - 100%) fanfriction(integer) - default: 20
    The amount of rotational friction. Value must be between 0 and 100 %.
  • Rotating sound WAV message(sound)
    Sound to play while rotating.
  • Volume (10 = loudest) volume(integer) - default: 10
    The volume of the rotation sound.
  • Minimum Light Level _minlight(string)
    The minimum level of ambient light that hits this brush.
  • Blocking Damage dmg(integer) - default: 0
    Damage done to any entity that blocks the rotation, per frame.
  • Solid Type solidbsp(choices)
    • 0 - VPhysics
    • 1 - BSP


spawn flags

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


inputs

  • Kill(void)
    Removes this entity from the world.
  • KillHierarchy(void)
    Removes this entity and all its children from the world.
  • AddOutput(string)
    Adds an entity I/O connection to this entity. Format
  • FireUser1(void)
    Causes this entity's OnUser1 output to be fired.
  • FireUser2(void)
    Causes this entity's OnUser2 output to be fired.
  • FireUser3(void)
    Causes this entity's OnUser3 output to be fired.
  • FireUser4(void)
    Causes this entity's OnUser4 output to be fired.
  • SetParent(string)
    Changes the entity's parent in the movement hierarchy.
  • SetParentAttachment(string)
    Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
  • ClearParent(void)
    Removes this entity from the the movement hierarchy, leaving it free to move independently.
  • DisableShadow(void)
    Turn shadow off.
  • EnableShadow(void)
    Turn shadow on.
  • SetSpeed(integer)
    Set the speed as a ratio of the specified Max Rotation Speed, where 0 is stopped and 1 is the Max Rotation Speed..
  • Start(void)
    Start the rotator rotating.
  • Stop(void)
    Stop the rotator from rotating.
  • StopAtStartPos(void)
    Stop the rotator from rotating when it gets around to the start position again (on it's rotation axis).
  • StartForward(void)
    Start the rotator rotating forward.
  • StartBackward(void)
    Start the rotator rotating backward.
  • Toggle(void)
    Toggle the rotator between rotating and not rotating.
  • Reverse(void)
    Reverse the direction of rotation of the rotator.

outputs

  • OnUser1(void)
    Fired in response to FireUser1 input.
  • OnUser2(void)
    Fired in response to FireUser2 input.
  • OnUser3(void)
    Fired in response to FireUser3 input.
  • OnUser4(void)
    Fired in response to FireUser4 input.


related tutorials

Rotating fan

Submit your tutorial for func_rotating

Personal tools