CRotButton

From Source Entities
(Redirected from Func rot button)
Jump to navigation Jump to search

Code classes:

CRotButton is a base class for button entities which rotate when interacted with.

Classnames:

  • func_rot_button - Rotates to an activated position when pressed.

Flags[edit | edit source]

  • 64: X Axis - Makes the entity rotate on its X axis. (Default is Z axis.)
  • 128: Y Axis - Makes the entity rotate on its Y axis.

Keyvalues[edit | edit source]

Distance (deg) (distance) <float>
How much the brush should rotate in degrees.
Sounds (sounds) <choices>
Make this button emit a sound when pressed. Note: The list below was made for Half-Life 2. All games support this keyvalue, but some don't have a number of these sound files. To edit these sounds, look for Buttons.snd (followed by a number from the Value column in this table) in hl2/scripts/game_sounds_world.txt or your game's appropriate soundscript file.
Value Description Default Sound
0 None (Silent) common/null.wav
21 Squeaky buttons/lever1.wav
22 Squeaky Pneumatic buttons/lever2.wav
23 Ratchet Groan buttons/lever3.wav
24 Clean Ratchet buttons/lever4.wav
25 Gas Clunk buttons/lever5.wav