func_button

Last-modified: 2009-09-18 (金) 11:53:33

Func button

説明

このブラシエンティティはボタンのように押すことの出来るブラシです。押すためにはこのブラシに照準をあわせ通常はデフォルトEキーを押せば、ボタンが動き最後まで動ききったときにイベントが発生します。

Keyvalues

  • targetname :ターゲットネーム。
  • parentname :このエンティティの親をtargetnameで指定する。動くボタンが作れる
  • origin :
  • renderfx :ブラシのボタンの表示の仕方
    0 Normal
    1 Slow Pulse
    2 Fast Pulse
    3 Slow Wide Pulse
    4 Fast Wide Pulse
    5 Slow Fade Away
    6 Fast Fade Away
    7 Slow Become Solid
    8 Fast Become Solid
    9 Slow Strobe
    10 Fast Strobe
    11 Faster Strobe
    12 Slow Flicker
    13 Fast Flicker
    14 Constant Glow
    15 Distort
    16 Hologram (Distort + fade)
    17 Scale up
    22 Spotlight FX
    23 Cull By Distance (TEST)
    24 Fade Wider Pulse
  • rendermode :
    0 Normal Default rendering.
    1 Color Obsolete.
    2 Texture Plain opacity.
    3 Glow No Z buffer checks. Fixed size on screen.
    4 Solid / Alphatest Obsolete. (Use alphatest capabilities in materials instead.)
    5 Additive Obsolete. Add this entity's color to what's behind it.
    7 Additive Fractional Frame Obsolete? Blend between animation frames.
    8 Alpha Add (Not in FGD.) Add alpha.
    9 World Space Glow No Z buffer checks. Fixed size in world (as opposed to on screen).
    10 Dont Render / None Don't render.
  • renderamt :<integer> FX Amount (0 - 255) - How opaque the entity will be rendered. (0 is fully transparent, while 255 is fully opaque). Will not work if the rendermode keyvalue is set to Normal or Dont Render.
  • rendercolor :<color255> FX Color - What color the entity will be rendered in (to the degree of the opacity set with renderamt).
  • movedir :押したときに進む方向。
  • speed :押すスピード
  • health :flagで'Damage Activates'にチェックが入っているときにどれだけのダメージがあったら押されるかの耐久度
  • lip :<integer> The amount, in inches, of the button to leave sticking out of the wall it recedes into when pressed. Negative values make the button recede even further into the wall. Use a negative value to make it go further.
  • sounds :押したときのサウンド
    0 None (Silent)
    1 Big zap & Warmup
    2 Access Denied
    3 Access Granted
    4 Quick Combolock
    5 Power Deadbolt 1
    6 Power Deadbolt 2
    7 Plunger*
    8 Small zap
    9 Keycard Sound
    10 Buzz
    11 Buzz Off*
    12 latch locked
    13 Latch Unlocked
    14 Lightswitch
    15 small bleek
    16 small deny
    17 small doop
    18 small tech deny
    19 click and combine screen fuzz
    20 roomy beep*
    21 lever or wheel: turn + move sqeek
    22 lever or wheel: latch + release gas
    23 lever or wheel: ratchet + sqeek
    24 lever or wheel: large ratchet
    25 lever or wheel: clanky + gas release
    26 lever or wheel: latch + large metal thud
    27 lever or wheel: smaller ratchet
    28 lever or wheel: smaller lever move
    31 shock buzz*
    32 clickbeep*
    33 tech blip*
    34 clickbeepbeep open
    35 small high blip*
    36 small tech fuzz blip*
    37 small click bleep (change to lightswitch)
    40 combine door lock - locked
    41 combine blip growl
    42 combine squick growl
    43 combine whine purr
    44 combine click talk*
    45 combine click growl fizz
    46 combine click fizz (deny)*
    47 combine click talker
  • wait :<integer> Amount of time, in seconds, after the button has been pressed before it returns to the starting position. Once it has returned, it can be used again. If the value is set to -1, the button never returns.
  • locked_sound :ボタンをロックしたときのサウンド。
    0 None
    2 Access Denied
    8 Small zap
    10 Buzz
    11 Buzz Off
    12 Latch Locked
  • unlocked_sound :ボタンを解除したときのサウンド。
    0 None
    1 Big zap & Warmup
    3 Access Granted
    4 Quick Combolock
    5 Power Deadbolt 1
    6 Power Deadbolt 2
    7 Plunger
    8 Small zap
    9 Keycard Sound
    10 Buzz
    13 Latch Unlocked
    14 Lightswitch
  • locked_sentence :<choices> A sentence played when the player tries to use the button, and fails because it's locked.
    Literal Value Description
    0 None
    1 Gen. Access Denied
    2 Security Lockout
    3 Blast Door
    4 Fire Door
    5 Chemical Door
    6 Radiation Door
    7 Gen. Containment
    8 Maintenance Door
    9 Broken Shut Door
  • unlocked_sentence :<choices> A sentence played when the button is unlocked.
    Literal Value Description
    0 None
    1 Gen. Access Granted
    2 Security Disengaged
    3 Blast Door
    4 Fire Door
    5 Chemical Door
    6 Radiation Door
    7 Gen. Containment
    8 Maintenance area
  • _minlight :<float> The minimum level of ambient light that hits this brush.

Flags

  • Don't move :このボタンは押しても動かない。
  • Toggle :一回押すと押され、もう一回押すと戻るボタン。
  • Touch Activates :USEキーを使わずに触っただけで起動。
  • Damage Activates :武器などのダメージで起動する。
  • Use Activates :USEキーを使ったときに起動する
  • Starts locked :このボタンはスタート時にはロックされていて押せない。
  • Sparks :押したときに火花を散らす。

Inputs

  • Kill :ボタンを消します。
  • KillHierarchy :
  • AddOutput :
  • Color : ボタンの色を設定
  • Alpha :ボタンの透明度を設定
  • SetParent :親にします。
  • SetParentAttachment <string> :
  • SetParentAttachmentMaintainOffset :
  • ClearParent :親指定を解除します。
  • Lock :ボタンをロックします。
  • Unlock :ボタンのロックを解除します。
  • Press :ボタンを押します、

Outputs

  • OnDamaged :ボタンがダメージを受けたとき
  • OnPressed :ボタンが押されたとき。
  • OnUseLocked :ボタンがロックされたとき
  • OnIn :
  • OnOut :