Advertisement
Guest User

Untitled

a guest
May 20th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.31 KB | None | 0 0
  1. @name Holo ricer Steering Wheel
  2. @inputs Controller:wirelink [RPM CGear]
  3. @outputs L1 L2 L3 L4 L5 L6 L7
  4. @persist R I
  5.  
  6. if( duped() ){ reset() }
  7.  
  8. if (first()) {
  9. runOnTick(1)
  10.  
  11. # Parent
  12. entity():setAlpha(0)
  13.  
  14. ##################~ Holo Steering Wheel ~##################
  15. I = 0
  16. #Stick
  17. holoCreate(1,entity():toWorld(vec(0+I,0,6)),vec(0.20,0.20,1),entity():toWorld(ang()),vec(50,50,50)+67,"hqcylinder2")
  18. holoMaterial(1,"sprops/textures/sprops_metal1")
  19. holoParent(1,entity())
  20. #Grip
  21. holoCreate(2,entity():toWorld(vec(0+I,0,12.6)),vec(1.3,1.3,1.3),entity():toWorld(ang()),vec(32,32,32),"hq_torus")
  22. holoMaterial(2,"models/props/cs_office/snowmana")
  23. # Middle plate
  24. holoCreate(3,entity():toWorld(vec(0+I,0,12.2)),vec(0.31,0.31,0.09),entity():toWorld(ang()),vec(200,200,200)+30,"hqcylinder2")
  25. holoMaterial(3,"sprops/textures/sprops_metal1")
  26. # Under plate
  27. holoCreate(4,entity():toWorld(vec(3+I,0,12.26)),vec(0.7,0.16,0.04),entity():toWorld(ang(-5,0,0)),vec(200,200,200)+30,"hqcylinder2")
  28. holoMaterial(4,"sprops/textures/sprops_metal1")
  29. # Left plate
  30. holoCreate(5,entity():toWorld(vec(0+I,-3,12.34)),vec(0.7,0.16,0.04),entity():toWorld(ang(5,100,0)),vec(200,200,200)+30,"hqcylinder2")
  31. holoMaterial(5,"sprops/textures/sprops_metal1")
  32. # Right plate
  33. holoCreate(6,entity():toWorld(vec(0+I,3,12.34)),vec(0.7,0.16,0.04),entity():toWorld(ang(-5,80,0)),vec(200,200,200)+30,"hqcylinder2")
  34. holoMaterial(6,"sprops/textures/sprops_metal1")
  35. # Under grip
  36. holoCreate(7,entity():toWorld(vec(4.8+I,0,12.5)),vec(0.25,0.18,0.09),entity():toWorld(ang(-5,0,0)),vec(32,32,32),"hq_rcube_thick")
  37. holoMaterial(7,"models/props/cs_office/snowmana")
  38. # Under Grip 2
  39. holoCreate(8,entity():toWorld(vec(4.9+I,0,12.4)),vec(0.27,0.09,0.2),entity():toWorld(ang(0,-90,95)),vec(32,32,32),"prism")
  40. holoMaterial(8,"models/props/cs_office/snowmana")
  41. # Left grip
  42. holoCreate(9,entity():toWorld(vec(0.36+I,-4.9,12.5)),vec(0.25,0.18,0.09),entity():toWorld(ang(5,100,0)),vec(32,32,32),"hq_rcube_thick")
  43. holoMaterial(9,"models/props/cs_office/snowmana")
  44. # Left Grip 2
  45. holoCreate(10,entity():toWorld(vec(0.26+I,-4.8,12.4)),vec(0.27,0.09,0.2),entity():toWorld(ang(0,14,-95)),vec(32,32,32),"prism")
  46. holoMaterial(10,"models/props/cs_office/snowmana")
  47. # Right grip
  48. holoCreate(11,entity():toWorld(vec(0.36+I,4.9,12.5)),vec(0.25,0.18,0.09),entity():toWorld(ang(-5,80,0)),vec(32,32,32),"hq_rcube_thick")
  49. holoMaterial(11,"models/props/cs_office/snowmana")
  50. # Right Grip 2
  51. holoCreate(12,entity():toWorld(vec(0.26+I,4.8,12.4)),vec(0.27,0.09,0.2),entity():toWorld(ang(0,-14,95)),vec(32,32,32),"prism")
  52. holoMaterial(12,"models/props/cs_office/snowmana")
  53. # Grip indicator 1
  54. holoCreate(13,entity():toWorld(vec(-6.84+I,0,12.6)),vec(0.145,0.14,0.34),entity():toWorld(ang(0,0,90)),vec(255,0,0),"hqtorus2")
  55. holoMaterial(13,"models/debug/debugwhite")
  56. # Middle Graphic plate 2 (Outer-x2 Circle)
  57. holoCreate(14,entity():toWorld(vec(0+I,0,12.75)),vec(0.212,0.212,0.01),entity():toWorld(ang()),vec(45,45,45)+10,"hqcylinder2")
  58. holoMaterial(14,"sprops/textures/sprops_chrome1")
  59. # Middle Graphic plate 2 (Outer Circle)
  60. holoCreate(15,entity():toWorld(vec(0+I,0,12.8)),vec(0.195,0.195,0.01),entity():toWorld(ang()),vec(255,255,255)+10,"hqcylinder2")
  61. holoMaterial(15,"sprops/textures/sprops_chrome1")
  62. # Middle Graphic plate 3 (Inner Circle)
  63. holoCreate(16,entity():toWorld(vec(0+I,0,12.86)),vec(0.175,0.175,0.01),entity():toWorld(ang()),vec(40,40,40)+10,"hqcylinder2")
  64. holoMaterial(16,"sprops/textures/sprops_metal1")
  65. # Bolt 1 (Listed in Clockwise Order)
  66. holoCreate(17,entity():toWorld(vec(-1.57+I,0,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  67. holoMaterial(17,"sprops/textures/sprops_metal1")
  68. # Bolt 2
  69. holoCreate(18,entity():toWorld(vec(-0.9+I,1.3,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  70. holoMaterial(18,"sprops/textures/sprops_metal1")
  71. # Bolt 3
  72. holoCreate(19,entity():toWorld(vec(0.9+I,1.3,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  73. holoMaterial(19,"sprops/textures/sprops_metal1")
  74. # Bolt 4
  75. holoCreate(20,entity():toWorld(vec(1.57+I,0,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  76. holoMaterial(20,"sprops/textures/sprops_metal1")
  77. # Bolt 5
  78. holoCreate(21,entity():toWorld(vec(-0.90+I,-1.3,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  79. holoMaterial(21,"sprops/textures/sprops_metal1")
  80. # Bolt 6
  81. holoCreate(22,entity():toWorld(vec(0.9+I,-1.3,12.7)),vec(0.035,0.035,0.02),entity():toWorld(ang()),vec(25,25,25)+10,"hq_sphere")
  82. holoMaterial(22,"sprops/textures/sprops_metal1")
  83.  
  84.  
  85.  
  86.  
  87. for (S = 2,22) {holoParent(S,1)}
  88. for(Nigger = 23,50){
  89. holoParent(Nigger,entity())}
  90.  
  91. }
  92.  
  93. Left = Controller["A",number]
  94. Right = Controller["D",number]
  95. W = Controller["W",number]
  96.  
  97. # if (Left & !Right){Rotation = 145}
  98. # elseif (!Left & Right){Rotation = -145}
  99. # else {Rotation = 0}
  100. Rotation = Left ? 145 : Right ? -145 : 0
  101.  
  102. # if (R > Rotation){R = R - 7}
  103. # elseif (R < Rotation){R = R + 7}
  104. R += ( R > Rotation ? -7 : R < Rotation ? 7 : 0 )
  105. holoAng(1,entity():toWorld(ang(0,R,0)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement