SHARE
TWEET

GB Posing Parameter Pt. 2 .QC Text

ReverendV92 Sep 30th, 2015 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. /////////////////////////////////////////////////
  3. //      Basic functions
  4. /////////////////////////////////////////////////
  5. $mostlyopaque
  6. $modelname      yournamehere/gbtutorial/hl2_buggy
  7. $model  Buggy   reference
  8. $SurfaceProp    metalvehicle
  9. $Contents               solid
  10. $CDMaterials    models/buggy
  11.  
  12. /////////////////////////////////////////////////
  13. //      Defining Bones
  14. /////////////////////////////////////////////////
  15. $definebone "base" "" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  16. $definebone "tyre_fr_lf_st" "base" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  17. $definebone "tyre_fr_rt_st" "base" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  18. $definebone "tyre_fr_lf_rot" "tyre_fr_lf_st" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  19. $definebone "tyre_fr_rt_rot" "tyre_fr_rt_st" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  20. $definebone "tyre_rr_lf_rot" "base" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  21. $definebone "tyre_rr_rt_rot" "base" 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 -0.000000 0.000000 0.000000
  22. $definebone "steeringwheel" "base" 9.139420 18.550600 43.652016 19.545539 -90.000038 89.999983 0.000000 0.000000 0.000000 -0.000000 -0.000000 0.000000
  23.  
  24. /////////////////////////////////////////////////
  25. //      Defining posables
  26. /////////////////////////////////////////////////
  27. $poseparameter "steeringwheel" -60 60 0
  28. $PoseParameter "tyre_rot" -180 180 360
  29.  
  30. /////////////////////////////////////////////////
  31. //      Base
  32. /////////////////////////////////////////////////
  33. $weightlist "weights_steeringwheel" {
  34.         "base" 0
  35.         "steeringwheel" 1
  36.         "tyre_fr_lf_st" 1
  37.         "tyre_fr_rt_st" 1
  38.         "tyre_fr_lf_rot" 0
  39.         "tyre_fr_rt_rot" 0
  40.         "tyre_rr_lf_rot" 0
  41.         "tyre_rr_rt_rot" 0
  42. }
  43.  
  44. $weightlist "weights_tyre_rot" {
  45.         "base" 0
  46.         "steeringwheel" 0
  47.         "tyre_fr_lf_st" 0
  48.         "tyre_fr_rt_st" 0
  49.         "tyre_fr_lf_rot" 1
  50.         "tyre_fr_rt_rot" 1
  51.         "tyre_rr_lf_rot" 1
  52.         "tyre_rr_rt_rot" 1
  53. }
  54.  
  55. $animation "neutral" "neutral" {
  56.         fps 1
  57. }
  58.  
  59. /////////////////////////////////////////////////
  60. //      Steering
  61. /////////////////////////////////////////////////
  62. $animation "anim_turnleft" "turn_left" {
  63.         fps 1
  64.         subtract "neutral" 0
  65.         weightlist "weights_steeringwheel"
  66. }
  67. $animation "anim_turnright" "turn_right" {
  68.         fps 1
  69.         subtract "neutral" 0
  70.         weightlist "weights_steeringwheel"
  71. }
  72.  
  73. /////////////////////////////////////////////////
  74. //      Tyre Rotation
  75. /////////////////////////////////////////////////
  76. $animation "anim_tyre_rot_0" "tyre_0" {
  77.         fps 1
  78.         subtract "neutral" 0
  79.         weightlist "weights_tyre_rot"
  80. }
  81. $animation "anim_tyre_rot_90" "tyre_90" {
  82.         fps 1
  83.         subtract "neutral" 0
  84.         weightlist "weights_tyre_rot"
  85. }
  86.  
  87. $animation "anim_tyre_rot_180" "tyre_180" {
  88.         fps 1
  89.         subtract "neutral" 0
  90.         weightlist "weights_tyre_rot"
  91. }
  92.  
  93. $animation "anim_tyre_rot_270" "tyre_270" {
  94.         fps 1
  95.         subtract "neutral" 0
  96.         weightlist "weights_tyre_rot"
  97. }
  98.  
  99. /////////////////////////////////////////////////
  100. //      Sequences
  101. /////////////////////////////////////////////////
  102.  
  103. $sequence idle neutral {
  104.         fps 1
  105.         activity "ACT_IDLE" 1
  106. }
  107.  
  108. $sequence "steeringwheelseq" {
  109.         "anim_turnleft"
  110.         "anim_turnright"
  111.         fps 1
  112.         delta
  113.         autoplay
  114.         hidden
  115.         blendwidth 2
  116.         blend "steeringwheel" -60 60
  117. }
  118.  
  119. $sequence "tyrerotseq" {
  120.         "anim_tyre_rot_0"
  121.         "anim_tyre_rot_90"
  122.         "anim_tyre_rot_180"
  123.         "anim_tyre_rot_270"
  124.         fps 1
  125.         delta
  126.         autoplay
  127.         hidden
  128.         blendwidth 4
  129.         blend "tyre_rot" -180 180
  130. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top