ReverendV92

Pose Parameter Code Snippet

Jan 13th, 2018
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.71 KB | None | 0 0
  1.  
  2. /////////////////////////////////////////////
  3. // throttle
  4. /////////////////////////////////////////////
  5.  
  6. $poseparameter "throttle" 0 8 0
  7.  
  8. $weightlist "weights_throttle" {
  9.     "root" 0
  10.     "throttle" 1
  11.     "throttledial" 1
  12.     "transitionlever" 0
  13.     "transitiondial" 0
  14.     "reverser" 0
  15.     "trainbrake" 0
  16.     "locobrake" 0
  17. }
  18.  
  19. $animation "anim_throttle_idle" "anim_throttle_idle" {
  20.     fps 1
  21.     subtract "anim_neutral" 0
  22.     weightlist "weights_throttle"
  23. }
  24.  
  25. $animation "anim_throttle_full" "anim_throttle_full" {
  26.     fps 1
  27.     subtract "anim_neutral" 0
  28.     weightlist "weights_throttle"
  29. }
  30.  
  31. $sequence "throttleseq" {
  32.     "anim_throttle_idle"
  33.     "anim_throttle_full"
  34.     fps 1
  35.     delta
  36.     autoplay
  37.     hidden
  38.     blendwidth 2
  39.     blend "throttle" 0 8
  40. }
Advertisement
Add Comment
Please, Sign In to add comment