Advertisement
ReverendV92

bunker_gun01_l4d2.qc

Apr 13th, 2020
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 3.16 KB | None | 0 0
  1.  
  2. $ambientboost
  3. $mostlyopaque
  4.  
  5. $modelname props_combine/bunker_gun01
  6. // $modelname valve/weapons/50cal
  7.  
  8. // $bodygroup Tripod
  9. // {
  10.     // blank
  11.     // studio ref_tripod
  12. // }
  13.  
  14. $model M2 ref_50cal
  15. // $model Mount ref_yaw
  16. // $model Grip ref_handles_l4d2
  17. // $model "Charging Handle" ref_charger
  18.  
  19. $lod 32
  20. {
  21.     replacebone "Bunker_Gun.L_hand" "Bunker_Gun.Gun_Pitch"
  22.     replacebone "Bunker_Gun.R_hand" "Bunker_Gun.Gun_Pitch"
  23.     nofacial
  24. }
  25.  
  26. $contents solid
  27.  
  28. $illumposition 0 2 10
  29.  
  30. $cdmaterials models/valve/weapons/50cal
  31. $cdmaterials models/w_models/50cal
  32.  
  33. $attachment "muzzle" "Bunker_Gun.Flash1" 0 0 0 rotate 0 0 0
  34. $attachment "Shell" "Shell_Eject" 0 0 0 rotate 60 180 180
  35. $attachment "light" "Bunker_Gun.Flash1" 0 0 0 rotate 0 0 0
  36. $attachment "Link" "Link_Eject" 0 0 0 rotate 0 45 0
  37. $attachment "R_hand" "Bunker_Gun.R_hand" -1.5 0 2 rotate 0 0 0
  38. $attachment "L_hand" "Bunker_Gun.L_hand" -1.5 0 -2 rotate 0 0 0
  39. $attachment "aimrotation" "Weapon" 0 15 0 rotate -83 90 180
  40.  
  41. $weightlist "aim" {
  42.     "Bunker_Gun.Base" 0
  43.     "Weapon" 0
  44.     "Bunker_Gun.Gun_Yaw" 1
  45.     "Bunker_Gun.Gun_Pitch" 1
  46.     "Bunker_Gun.L_hand" 1
  47.     "Bunker_Gun.R_hand" 1
  48.     "Bunker_Gun.Flash1" 1
  49.     "Link_Eject" 1
  50.     "Shell_Eject" 1
  51.     // "Tripod" 0
  52.     // "Pivot_Mount" 1
  53.     "Gun" 1
  54.     // "Ammo_Mount" 1
  55.     // "charging" 1
  56. }
  57.  
  58. $poseparameter "aim_yaw" -60 60 loop 0
  59. $poseparameter "aim_pitch" -35 50 loop 0
  60.  
  61. $surfaceprop weapon
  62.  
  63. $hboxset default
  64.  
  65. $hbox 0 "Bunker_Gun.Base"      -12.00  -12.00   20.00    12.00   12.00   44.00
  66. $hbox 1 "Bunker_Gun.Gun_Yaw"        -8.00   -8.00   -8.00     8.00    8.00    8.00
  67. $hbox 2 "Bunker_Gun.Gun_Pitch"     -24.00  -24.00  -40.00    24.00   24.00   40.00
  68.  
  69. $animation neutral s_idle fps 1
  70.  
  71. $animation aim_c a_aim_c fps 1 subtract neutral 0
  72.  
  73. $animation aim_ne a_aim_ne fps 1 subtract neutral 0
  74. $animation aim_nw a_aim_nw fps 1 subtract neutral 0
  75.  
  76. $animation aim_se a_aim_se fps 1 subtract neutral 0
  77. $animation aim_sw a_aim_sw fps 1 subtract neutral 0
  78.  
  79. $animation aim_w a_aim_w fps 1 subtract neutral 0
  80. $animation aim_n a_aim_n fps 1 subtract neutral 0
  81. $animation aim_e a_aim_e fps 1 subtract neutral 0
  82. $animation aim_s a_aim_s fps 1 subtract neutral 0
  83.  
  84. $sequence idle {
  85.     s_idle
  86.     activity "ACT_BUNKER_GUN_ACTIVE_IDLE" 1
  87.     fps 30
  88.     loop
  89. }
  90.  
  91. $sequence activate {
  92.     // s_activate
  93.     s_idle
  94.     activity "ACT_BUNKER_GUN_ACTIVATE" 1
  95.     fadein 0.2
  96.     fadeout 0.2
  97.     fps 30
  98. }
  99.  
  100. $sequence "fire" {
  101.     s_idle
  102.     activity "ACT_BUNKER_GUN_FIRE" 1
  103.     { event 6001 0 "1" }
  104.     { event 5001 0 "SMG2 MUZZLE" }
  105.     { event 5003 0 "SMG2 MUZZLE" }
  106.     fadein 0.2
  107.     fadeout 0.2
  108.     fps 30
  109. }
  110.  
  111. $sequence "retract" {
  112.     s_idle
  113.     activity "ACT_BUNKER_GUN_RETRACT" 1
  114.     fadein 0.2
  115.     fadeout 0.2
  116.     fps 30
  117. }
  118.  
  119. $sequence "idle_inactive" {
  120.     s_idle
  121.     activity "ACT_BUNKER_GUN_INACTIVE_IDLE" 1
  122.     fadein 0.2
  123.     fadeout 0.2
  124.     fps 30
  125. }
  126.  
  127. $sequence "aim" {
  128.     "aim_ne"
  129.     "aim_n"
  130.     "aim_nw"
  131.     "aim_e"
  132.     "aim_c"
  133.     "aim_w"
  134.     "aim_se"
  135.     "aim_s"
  136.     "aim_sw"
  137.     autoplay
  138.     blend "aim_yaw" -60 60
  139.     blend "aim_pitch" -35 50
  140.     delta
  141.     fadein 0.2
  142.     fadeout 0.2
  143.     hidden
  144. }
  145.  
  146. $collisionjoints physics
  147. {
  148.  
  149.     $mass 15
  150.     $inertia 1
  151.     $damping 0
  152.     $rotdamping 0
  153.     $rootbone " "
  154.     $concave
  155.  
  156. }
  157.  
  158. $keyvalues
  159. {
  160.     bone_followers
  161.     {
  162.         bone Bunker_Gun.Gun_Pitch
  163.     }
  164. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement