Guest User

Untitled

a guest
Aug 21st, 2014
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.64 KB | None | 0 0
  1. #[
  2. CRESCENT ROSE
  3.  
  4. High Caliber Sniper-Scythe
  5.  
  6. REQUIRES:
  7. HoloModelAny
  8. PropCore
  9. SetVelocity
  10. Particle
  11. TF2 (Sniper knife)
  12. CS:S (Sounds)
  13. A crowbar and a crossbow
  14.  
  15. rwby.wikia.com/wiki/Crescent_Rose
  16.  
  17. Written by Alix
  18. ]#
  19.  
  20.  
  21. @name Crescent Rose
  22. @persist [Base Pivot Trailer PlayerTarget]:entity
  23. @persist [Hold M1 M2 Anim SMAnim T Cd]
  24. @persist [Light Dark Red Black]:vector
  25. runOnTick(1)
  26.  
  27. if(T<10000)
  28. {
  29. T+=100 #If some holograms fail to spawn, lower this number
  30. }
  31. if(first())
  32. {
  33. PlayerTarget = owner()
  34.  
  35. entity():setAlpha(0)
  36. Red = vec(120,0,0)
  37. Dark = vec(40,40,40)
  38. Black = vec(1,1,1)
  39. Light = vec(150,150,150)
  40. Pivot = holoCreate(-1) holoAlpha(-1,0)
  41.  
  42. #Centre
  43. Base = holoCreate(0,entity():toWorld(vec(0,0,0)),vec(2,0.2,0.3),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(0,Pivot)
  44.  
  45. #Trim underneath
  46. holoCreate(1,entity():toWorld(vec(-6,0,-1.5)),vec(1,0.25,0.15),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(1,Base)
  47. holoCreate(2,entity():toWorld(vec(-12,0,0)),vec(0.37,0.25,0.15),entity():toWorld(ang(70,0,0)),Dark,"cube") holoParent(2,Base)
  48. holoCreate(3,entity():toWorld(vec(-22,0,0)),vec(1.6,0.25,0.1),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(3,Base)
  49. holoCreate(4,entity():toWorld(vec(-31,0,0)),vec(0.3,0.25,0.05),entity():toWorld(ang(70,0,0)),Dark,"cube") holoParent(4,Base)
  50.  
  51. #Centre 2
  52. holoCreate(5,entity():toWorld(vec(-22,0,0)),vec(1.6,0.15,0.25),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(5,Base)
  53.  
  54. #Tail
  55. holoCreate(6,entity():toWorld(vec(15,0,-0.8)),vec(0.14,0.14,0.5),entity():toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(6,Base)
  56. holoCreate(7,entity():toWorld(vec(24,0,-0.8)),vec(0.1,0.1,1.8),entity():toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(7,Base)
  57. holoCreate(8,entity():toWorld(vec(35,0,-0.8)),vec(0.25,0.1,0.2),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(8,Base)
  58. holoCreate(9,entity():toWorld(vec(37.7,0,-0.8)),vec(0.2,0.05,0.2),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(9,Base)
  59.  
  60. #Taper
  61. holoCreate(10,entity():toWorld(vec(41.3,0,-0.8)),vec(0.2,0.05,0.4),entity():toWorld(ang(90,0,0)),Dark,"pyramid") holoParent(10,Base)
  62. holoCreate(11,entity():toWorld(vec(38.5,0,-0.8)),vec(0.4,0.06,0.02),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(11,Base)
  63.  
  64. #Scope
  65. holoCreate(12,entity():toWorld(vec(6,0,2)),vec(0.2,0.06,0.2),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(12,Base)
  66. holoCreate(13,entity():toWorld(vec(6,0,3.5)),vec(0.1,0.1,0.3),entity():toWorld(ang(90,0,0)),Red,"cylinder") holoParent(13,Base)
  67. holoCreate(14,entity():toWorld(vec(7.5,0,3.5)),vec(0.11,0.11,0.04),entity():toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(14,Base)
  68. holoCreate(15,entity():toWorld(vec(4.5,0,3.5)),vec(0.11,0.11,0.04),entity():toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(15,Base)
  69.  
  70. #Barrel
  71. holoCreate(16,entity():toWorld(vec(-40,0,0)),vec(1.8,0.1,0.18),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(16,Base)
  72. holoCreate(17,entity():toWorld(vec(-50,0,0)),vec(0.38,0.2,0.4),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(17,16)
  73.  
  74. #Magazine
  75. holoCreate(18,entity():toWorld(vec(-2,0,-4)),vec(0.7,0.12,0.4),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(18,Base)
  76. holoCreate(19,entity():toWorld(vec(-2,0,-6.4)),vec(0.4,0.12,0.695),entity():toWorld(ang(90,0,0)),Red,"prism") holoParent(19,Base)
  77.  
  78. #Bridge
  79. holoCreate(20,entity():toWorld(vec(-47,0,-1)),vec(0.25,0.25,0.65),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(20,16)
  80. holoCreate(21,entity():toWorld(vec(-47,0,2)),vec(0.1,0.1,0.1),entity():toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(21,16) holoAlpha(21,0)#Hinge
  81. holoCreate(22,entity():toWorld(vec(-47,-1.6,7)),vec(0.2,0.08,0.8),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(22,21)
  82. holoCreate(220,entity():toWorld(vec(-47,1.6,7)),vec(0.2,0.08,0.8),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(220,21)
  83.  
  84. holoCreate(23,entity():toWorld(vec(-49.5,1.6,7)),vec(0.07,0.6,0.25),entity():toWorld(ang(0,-90,90)),Dark,"prism") holoParent(23,22)
  85. holoCreate(24,entity():toWorld(vec(-44.3,-1.6,7)),vec(0.07,0.6,0.25),entity():toWorld(ang(0,90,90)),Dark,"prism") holoParent(24,22)
  86. holoCreate(231,entity():toWorld(vec(-49.5,-1.6,7)),vec(0.07,0.6,0.25),entity():toWorld(ang(0,-90,90)),Dark,"prism") holoParent(231,22) #THIS SHIT IS BAD DO NOT DO IT
  87. holoCreate(241,entity():toWorld(vec(-44.3,1.6,7)),vec(0.07,0.6,0.25),entity():toWorld(ang(0,90,90)),Dark,"prism") holoParent(241,22)
  88. }
  89. elseif(!holoEntity(25) && holoCanCreate() & T>1000)
  90. {
  91. #Top
  92. holoCreate(25,entity():toWorld(vec(-46,0,12)),vec(0.1,0.1,0.1),entity():toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(25,22) holoAlpha(25,0)#Hinge
  93. holoCreate(26,entity():toWorld(vec(-46,1.9,12)),vec(0.15,0.15,0.15),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(26,25)
  94. holoCreate(260,entity():toWorld(vec(-46,-1.9,12)),vec(0.15,0.15,0.15),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(260,25)
  95.  
  96. holoCreate(27,entity():toWorld(vec(-47.5,-1.9,13.6)),vec(0.7,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(27,25)
  97. holoCreate(28,entity():toWorld(vec(-51.7,-1.9,13.60)),vec(0.2,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(28,25)
  98. holoCreate(29,entity():toWorld(vec(-43.24,-1.9,13.60)),vec(0.2,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(29,25)
  99. }
  100. elseif(!holoEntity(30) && holoCanCreate() & T>1500)
  101. {
  102. holoCreate(30,entity():toWorld(vec(-47.5,1.9,13.6)),vec(0.7,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(30,25)
  103. holoCreate(31,entity():toWorld(vec(-51.7,1.9,13.60)),vec(0.2,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(31,25)
  104. holoCreate(32,entity():toWorld(vec(-43.24,1.9,13.60)),vec(0.2,0.09,0.3),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(32,25)
  105.  
  106. #Top Blade
  107. holoCreate(33,entity():toWorld(vec(-46,0,12)),vec(0.1,0.1,0.1),entity():toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(33,22) holoAlpha(33,0)#Hinge
  108.  
  109. holoCreate(34,entity():toWorld(vec(-62,1.8,13)),vec(0.6,0.6,1.1),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(34,33)
  110. holoModel(34,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(34,"models/debug/debugwhite")
  111. holoClipEnabled(34,1)
  112. holoClip(34,vec(17,0,0),vec(1,0,0),0)
  113.  
  114. holoCreate(35,entity():toWorld(vec(-59.7,1.8,12.9)),vec(0.55,0.5,1),entity():toWorld(ang(0,0,0)),Light,"cube") holoParent(35,33)
  115. holoModel(35,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(35,"models/debug/debugwhite")
  116. holoClipEnabled(35,1)
  117. holoClip(35,vec(17,0,0),vec(1,0,0),0)
  118.  
  119. holoCreate(36,entity():toWorld(vec(-62,-1.8,13)),vec(0.6,0.6,1.1),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(36,33)
  120. holoModel(36,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(36,"models/debug/debugwhite")
  121. holoClipEnabled(36,1)
  122. holoClip(36,vec(17,0,0),vec(1,0,0),0)
  123.  
  124. holoCreate(37,entity():toWorld(vec(-59.7,-1.8,12.9)),vec(0.55,0.5,1),entity():toWorld(ang(0,0,0)),Light,"cube") holoParent(37,33)
  125. holoModel(37,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(37,"models/debug/debugwhite")
  126. holoClipEnabled(37,1)
  127. holoClip(37,vec(17,0,0),vec(1,0,0),0)
  128.  
  129. #Arm
  130. holoCreate(38,entity():toWorld(vec(-47,0,-4)),vec(0.1,0.1,0.1),entity():toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(38,16) holoAlpha(38,0) #hinge
  131. holoCreate(39,entity():toWorld(vec(-47,0,-4)),vec(0.3,0.3,0.5),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(39,38)
  132.  
  133. }
  134. elseif(!holoEntity(40) && holoCanCreate() & T>2000)
  135. {
  136. holoCreate(40,entity():toWorld(vec(-47.5,2.3,-13)),vec(0.45,0.1,1.5),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(40,38)
  137. holoCreate(41,entity():toWorld(vec(-46.5,2.3,-4)),vec(0.4,0.1,0.5),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(41,38)
  138. holoCreate(42,entity():toWorld(vec(-48.9,2.3,-2.49)),vec(0.22,0.1,0.25),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(42,38)
  139. holoCreate(43,entity():toWorld(vec(-48.9,2.3,-24.4)),vec(0.22,0.1,0.4),entity():toWorld(ang(180,0,0)),Red,"prism") holoParent(43,38)
  140. holoCreate(44,entity():toWorld(vec(-47.15,2.3,-24.4)),vec(0.3,0.1,0.4),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(44,38)
  141. holoCreate(45,entity():toWorld(vec(-45,2.3,-23)),vec(0.3,0.1,0.4),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(45,38)
  142. holoCreate(46,entity():toWorld(vec(-47.5,2.43,-10)),vec(0.08,0.1,0.8),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(46,38)
  143. holoCreate(47,entity():toWorld(vec(-48.89,2.43,-14.95)),vec(0.3,0.1,0.08),entity():toWorld(ang(-20,0,0)),Dark,"cube") holoParent(47,38)
  144.  
  145. holoCreate(48,entity():toWorld(vec(-47.5,-2.3,-13)),vec(0.45,0.1,1.5),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(48,38)
  146. holoCreate(49,entity():toWorld(vec(-46.5,-2.3,-4)),vec(0.4,0.1,0.5),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(49,38)
  147. }
  148. elseif(!holoEntity(50) && holoCanCreate() & T>3000)
  149. {
  150. holoCreate(50,entity():toWorld(vec(-48.9,-2.3,-2.49)),vec(0.22,0.1,0.25),entity():toWorld(ang(0,0,0)),Red,"prism") holoParent(50,38)
  151. holoCreate(51,entity():toWorld(vec(-48.9,-2.3,-24.4)),vec(0.22,0.1,0.4),entity():toWorld(ang(180,0,0)),Red,"prism") holoParent(51,38)
  152. holoCreate(52,entity():toWorld(vec(-47.15,-2.3,-24.4)),vec(0.3,0.1,0.4),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(52,38)
  153. holoCreate(53,entity():toWorld(vec(-45,-2.3,-23)),vec(0.3,0.1,0.4),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(53,38)
  154. holoCreate(54,entity():toWorld(vec(-47.5,-2.43,-10)),vec(0.08,0.1,0.8),entity():toWorld(ang(0,0,0)),Dark,"cube") holoParent(54,38)
  155. holoCreate(55,entity():toWorld(vec(-48.89,-2.43,-14.95)),vec(0.3,0.1,0.08),entity():toWorld(ang(-20,0,0)),Dark,"cube") holoParent(55,38)
  156.  
  157. #Outer edge
  158. holoCreate(56,Base:toWorld(vec(-56,0,12)),vec(0.8,3,1.4),entity():toWorld(ang(106,180,0)),Dark,"cube") holoParent(56,38)
  159. holoModel(56,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(36,"models/debug/debugwhite")
  160. holoClipEnabled(56,1)
  161. holoClip(56,vec(17,0,0),vec(1,0,1),0)
  162. holoCreate(57,entity():toWorld(vec(-47,0,-25)),vec(0.1,0.1,0.1)) holoParent(57,38) holoAlpha(57,0)
  163.  
  164. #Arms pt2
  165. holoCreate(58,entity():toWorld(vec(-51,1.5,-16.85)),vec(0.8,1.8,1),entity():toWorld(ang(115,180,0)),Red,"cube") holoParent(58,57)
  166. holoModel(58,"models/weapons/c_models/c_machete/c_machete.mdl") holoMaterial(58,"models/debug/debugwhite")
  167. holoClipEnabled(58,1)
  168. holoClip(58,vec(10,0,0),vec(1,0,0),0)
  169. holoCreate(59,entity():toWorld(vec(-51,-1.5,-16.85)),vec(0.8,1.8,1),entity():toWorld(ang(115,180,0)),Red,"cube") holoParent(59,57)
  170. holoModel(59,"models/weapons/c_models/c_machete/c_machete.mdl") holoMaterial(59,"models/debug/debugwhite")
  171. holoClipEnabled(59,1)
  172. holoClip(59,vec(10,0,0),vec(1,0,0),0)
  173. }
  174. elseif(!holoEntity(60) && holoCanCreate() & T>4000)
  175. {
  176. holoCreate(60,entity():toWorld(vec(-44,0,-40)),vec(0.1,0.1,0.1)) holoParent(60,57) holoAlpha(60,0) # hinge
  177. holoCreate(61,entity():toWorld(vec(-42.5,0,-41.5)),vec(0.55,0.55,0.6),entity():toWorld(ang(0,0,90)),Light,"hq_torus") holoParent(61,60)
  178. holoCreate(62,entity():toWorld(vec(-42.5,0,-41.5)),vec(0.5,0.5,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(62,60)
  179. holoCreate(63,entity():toWorld(vec(-50,0,-12)),vec(0.8,1,1.7),entity():toWorld(ang(106,180,0)),Dark,"cube") holoParent(63,60)
  180. holoModel(63,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(63,"models/debug/debugwhite")
  181. holoClipEnabled(63,1)
  182. holoClip(63,vec(31,0,0),vec(1,0,0.3),0)
  183. holoCreate(64,entity():toWorld(vec(-48,0,-12)),vec(0.8,0.8,1.65),entity():toWorld(ang(104,180,0)),Light,"cube") holoParent(64,60)
  184. holoModel(64,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(64,"models/debug/debugwhite")
  185. holoClipEnabled(64,1)
  186. holoClip(64,vec(31,0,0),vec(1,0,0.3),0)
  187.  
  188. #Inner blades
  189. holoCreate(65,entity():toWorld(vec(-50,2,60)),vec(1.5,0.3,3.9),entity():toWorld(ang(100,180,0)),Light,"cube") holoParent(65,38)
  190. holoModel(65,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(65,"models/debug/debugwhite")
  191. holoClipEnabled(65,1,1)
  192. holoClipEnabled(65,2,1)
  193. holoClip(65,1,vec(70,0,0),vec(1,0,0.3),0)
  194. holoClip(65,2,vec(89,0,0),vec(-1,0,0),0)
  195. holoCreate(66,entity():toWorld(vec(-45,2,48)),vec(1.2,0.2,3.6),entity():toWorld(ang(90,0,0)),Light,"cube") holoParent(66,38)
  196. holoModel(66,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(66,"models/debug/debugwhite")
  197. holoClipEnabled(66,1,1)
  198. holoClipEnabled(66,2,1)
  199. holoClip(66,1,vec(70,0,0),vec(1,0,0.3),0)
  200. holoClip(66,2,vec(89,0,0),vec(-1,0,0),0)
  201. holoCreate(67,entity():toWorld(vec(-50,-2,60)),vec(1.5,0.3,3.9),entity():toWorld(ang(100,180,0)),Light,"cube") holoParent(67,38)
  202. holoModel(67,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(67,"models/debug/debugwhite")
  203. holoClipEnabled(67,1,1)
  204. holoClipEnabled(67,2,1)
  205. holoClip(67,1,vec(70,0,0),vec(1,0,0.3),0)
  206. holoClip(67,2,vec(89,0,0),vec(-1,0,0),0)
  207. holoCreate(68,entity():toWorld(vec(-45,-2,48)),vec(1.2,0.2,3.6),entity():toWorld(ang(90,0,0)),Light,"cube") holoParent(68,38)
  208. holoModel(68,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoMaterial(68,"models/debug/debugwhite")
  209. holoClipEnabled(68,1,1)
  210. holoClipEnabled(68,2,1)
  211. holoClip(68,1,vec(70,0,0),vec(1,0,0.3),0)
  212. holoClip(68,2,vec(89,0,0),vec(-1,0,0),0)
  213. holoCreate(69,entity():toWorld(vec(-37,0,0)),0*vec(0.2,1,0.2),entity():toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(69,16) #hinge
  214. }
  215. elseif(!holoEntity(70) && holoCanCreate() & T>5000)
  216. {
  217. holoCreate(70,entity():toWorld(vec(-42,1.5,-4)),vec(0.5,0.05,1.3),entity():toWorld(ang(50,0,0)),Red,"cube") holoParent(70,69)
  218. holoCreate(71,entity():toWorld(vec(-42,-1.5,-4)),vec(0.5,0.05,1.3),entity():toWorld(ang(50,0,0)),Red,"cube") holoParent(71,69)
  219. holoCreate(72,Base:toWorld(vec(12.9,0,1)),0.15*vec(1,1,1),Base:toWorld(ang(0,0,90)),Dark,"hqtorus") holoParent(72,Base)
  220. holoCreate(73,Base:toWorld(vec(-7,0,0)),vec(1,0.2,0.3),entity():toWorld(ang(0,0,0)),Red,"cube") holoParent(73,Base)
  221. holoCreate(74,Base:toWorld(vec(-9,5,0.9)),vec(0.15,0.15,0.7),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(74,Base)
  222.  
  223. holoParent(-1,entity())
  224. #Hold = 2 #Uncomment this to pickup as soon as E2 is spawned
  225. }
  226. elseif(!holoEntity(101) && !first() && holoCanCreate() & T>6000)
  227. {Trailer = holoCreate(101,Base:toWorld(vec(-33,0,0))) holoAlpha(101,0) holoParent(101,Base)
  228. #Extra bits
  229.  
  230. holoCreate(75,entity():toWorld(vec(-42.3,2.3,-23)),vec(0.62,0.1,0.5),entity():toWorld(ang(90,0,0)),Red,"prism") holoParent(75,38)
  231. holoClipEnabled(75,1) holoClip(75,vec(0,0,-0.9),vec(0,0,-1),0)
  232.  
  233. holoCreate(76,entity():toWorld(vec(-42.3,-2.3,-23)),vec(0.62,0.1,0.5),entity():toWorld(ang(90,0,0)),Red,"prism") holoParent(76,38)
  234. holoClipEnabled(76,1) holoClip(76,vec(0,0,-0.9),vec(0,0,-1),0)
  235.  
  236. holoCreate(77,entity():toWorld(vec(-46,2.35,-23)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(77,38)
  237. holoCreate(78,entity():toWorld(vec(-44.5,2.35,-21.8)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(78,38)
  238. holoCreate(79,entity():toWorld(vec(-44.5,2.35,-24.2)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(79,38)
  239.  
  240. holoCreate(80,entity():toWorld(vec(-46,-2.35,-23)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(80,38)
  241. holoCreate(81,entity():toWorld(vec(-44.5,-2.35,-21.8)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(81,38)
  242. holoCreate(82,entity():toWorld(vec(-44.5,-2.35,-24.2)),vec(0.08,0.08,0.1),entity():toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(82,38)
  243. T=0
  244.  
  245. Hold = 2
  246. }
  247. else
  248. {
  249. #These weapons can be changed if you have a more suitable SWEP to use, such as blank sweps
  250. if(PlayerTarget:weapon():type() == "weapon_crowbar")
  251. {Hold = 1 PlayerTarget:weapon():setAlpha(0)}
  252. elseif(PlayerTarget:weapon():type() == "weapon_crossbow")
  253. {Hold = 2 PlayerTarget:weapon():setAlpha(0)}
  254. else
  255. {Hold = 0 PlayerTarget:weapon():setAlpha(255)}
  256.  
  257. #BLADE mode
  258. if($Hold){
  259. if(Hold==1)
  260. { soundPitch(1,70)
  261. Base:soundPlay(1,0,"weapons/ump45/ump45_boltslap.wav")
  262. holoPos(-1,PlayerTarget:attachmentPos("anim_attachment_RH"))
  263. holoAng(-1,PlayerTarget:attachmentAng("anim_attachment_RH"))
  264. holoParentAttachment(-1,PlayerTarget,"anim_attachment_RH")
  265. holoAng(0,Pivot:toWorld(ang(90,180,0)))
  266. holoPos(0,Pivot:toWorld(vec(0,0,20)))
  267. #Don't do this at home kids, this is inefficient and bad
  268. holoAlpha(65,255) holoAlpha(66,255) holoAlpha(67,255) holoAlpha(68,255)
  269. holoAlpha(56,255) holoAlpha(23,255) holoAlpha(34,255) holoAlpha(35,255) holoAlpha(36,255) holoAlpha(37,255) holoAlpha(12,255) holoAlpha(13,255)
  270. holoAlpha(14,255) holoAlpha(15,255) holoAlpha(6,255) holoAlpha(7,255) holoAlpha(10,255) holoAlpha(11,255) holoAlpha(74,255) holoAlpha(231,255)
  271.  
  272. holoScale(3,vec(1.6,0.3,0.1)) holoScale(4,vec(0.3,0.3,0.05)) holoScale(0,vec(2,0.2,0.3))
  273. holoPos(72,Base:toWorld(vec(12.9,0,1)))
  274.  
  275. holoAlpha(8,255)
  276. holoPos(8,Base:toWorld(vec(35,0,-0.8)))
  277. holoScale(8,vec(0.25,0.1,0.2))
  278.  
  279. holoAlpha(9,255)
  280. holoPos(9,Base:toWorld(vec(37.7,0,-0.8)))
  281. holoAng(9,Base:toWorld(ang(0,0,0)))
  282. holoScale(9,vec(0.2,0.05,0.2))
  283.  
  284. Anim = 0
  285. }
  286. #GUN mode
  287. elseif(Hold==2)
  288. {
  289. soundPitch(1,70)
  290. Base:soundPlay(1,0,"weapons/ump45/ump45_clipin.wav")
  291. holoPos(-1,PlayerTarget:attachmentPos("anim_attachment_RH"))
  292. holoAng(-1,PlayerTarget:attachmentAng("anim_attachment_RH"))
  293. holoParentAttachment(-1,PlayerTarget,"anim_attachment_RH")
  294. holoAng(0,Pivot:toWorld(ang(0,180,0)))
  295. holoPos(0,Pivot:toWorld(vec(13,-0.8,4)))
  296.  
  297. holoAlpha(65,0) holoAlpha(66,0) holoAlpha(67,0) holoAlpha(68,0)
  298. holoAlpha(56,0) holoAlpha(23,0) holoAlpha(231,0) holoAlpha(74,255)
  299. holoAlpha(34,0) holoAlpha(35,0) holoAlpha(36,0) holoAlpha(37,0)
  300. holoAlpha(12,255) holoAlpha(13,255) holoAlpha(14,255) holoAlpha(15,255)
  301. holoAlpha(6,255) holoAlpha(7,0) holoAlpha(10,0) holoAlpha(11,0)
  302. holoScale(3,vec(1.6,0.15,0.4)) holoScale(4,vec(0,0,0))
  303. holoScale(0,vec(2,0.2,0.3))
  304. holoPos(72,Base:toWorld(vec(12.9,0,1)))
  305.  
  306. #Barrel
  307. holoAlpha(8,255)
  308. holoPos(8,Base:toWorld(vec(18.5,0,-2.8)))
  309. holoScale(8,vec(0.15,0.2,0.5))
  310.  
  311. holoAlpha(9,255)
  312. holoPos(9,Base:toWorld(vec(12,0,-4)))
  313. holoAng(9,Base:toWorld(ang(-30,0,0)))
  314. holoScale(9,vec(0.1,0.1,0.5))
  315.  
  316. Anim = 100
  317. }
  318.  
  319. #CARRY mode
  320. elseif(!Hold)
  321. {
  322. soundPitch(1,70)
  323. Base:soundPlay(1,0,"weapons/ump45/ump45_clipout.wav")
  324.  
  325. holoPos(-1,PlayerTarget:attachmentPos("chest"))
  326. holoAng(-1,PlayerTarget:attachmentAng("chest"))
  327. holoParentAttachment(-1,PlayerTarget,"chest")
  328. holoAng(0,Pivot:toWorld(ang(20,-90,0)))
  329. holoPos(0,Pivot:toWorld(vec(-10,-15,-7)))
  330. #Oh my god seriously find a better way than manually holo-alpha-ing each part
  331. holoAlpha(65,0) holoAlpha(66,0) holoAlpha(67,0) holoAlpha(68,0) holoAlpha(56,0)
  332. holoAlpha(23,0) holoAlpha(231,0) holoAlpha(74,0) holoAlpha(34,0) holoAlpha(35,0)
  333. holoAlpha(36,0) holoAlpha(37,0) holoAlpha(12,0) holoAlpha(13,0) holoAlpha(14,0)
  334. holoAlpha(15,0) holoAlpha(6,0) holoAlpha(7,0) holoAlpha(10,0) holoAlpha(11,0)
  335. holoScale(3,vec(1.6,0.15,0.4))
  336. holoScale(4,vec(0,0,0))
  337. holoScale(0,vec(0.4,0.2,0.3))
  338. holoPos(72,Base:toWorld(vec(3.4,0,1)))
  339.  
  340. holoAlpha(8,255)
  341. holoPos(8,Base:toWorld(vec(3.2,0,-3.2)))
  342. holoScale(8,vec(0.15,0.15,0.5))
  343.  
  344. holoAlpha(9,0)
  345. Anim = 100
  346. }
  347. }
  348.  
  349. #Animation
  350. if(SMAnim<Anim){SMAnim+=5}
  351. if(SMAnim>Anim){SMAnim-=5}
  352. if(Trailer){ #this is to make sure we've finished spawning every hologram before moving them
  353. holoAng(21,Base:toWorld(ang(15 + (0.75*SMAnim),0,0))) #Rear bridge hinge
  354. holoAng(25,Base:toWorld(ang(-10 + (1.9*SMAnim),0,0))) #Top segments hinge
  355. holoAng(33,Base:toWorld(ang(20 + (0.3*SMAnim),0,0))) #Blades hinge
  356. holoAng(38,Base:toWorld(ang(-10 - (0.8*SMAnim),0,0))) #Big arm hinge
  357. holoAng(57,Base:toWorld(ang(-20 - (2.4*SMAnim),0,0))) #Smaller arms hinge
  358. holoAng(60,Base:toWorld(ang(-50 - (3.9*SMAnim),0,0))) #End circle blade hinge
  359. holoAng(69,Base:toWorld(ang(0 - (1.4*SMAnim),0,0))) #Inner flaps hinge
  360. holoPos(16,Base:toWorld(vec(-40 + (0.2 * SMAnim),0,0)))
  361. }
  362. #Firing in gun mode
  363. M1 = PlayerTarget:keyAttack1()
  364.  
  365. if(Hold==2 & $M1 & M1 & Cd == 0) {
  366. Cd=50
  367. Base:soundPlay(2,0,"weapons/sg552/sg552-1.wav")
  368. soundPitch(2,80)
  369. Trailer:setTrails(1,1,0.2,"trails/smoke",vec(255,255,255),255)
  370.  
  371. #ifdef entity:setVelocity(vector)
  372. PlayerTarget:setVelocity(-PlayerTarget:eye()*350)
  373. #endif
  374. #ifdef entity:propBreak()
  375. PlayerTarget:aimEntity():propBreak() #:takeDamage(100,PlayerTarget:aimPos(),PlayerTarget:eye()*PlayerTarget:aimEntity():mass())
  376. #endif
  377. #ifdef particle(number,number,number,string,vector,vector,vector)
  378. particle(0.1,20,15,"effects/muzzleflash" + randint(1,4),vec(255,255,255),Base:toWorld(vec(-35,0,0)),vec(0,0,0))
  379. #endif
  380.  
  381. }
  382.  
  383. if(Cd>0)
  384. {
  385. Cd--
  386. if(Cd>=47)
  387. {
  388. holoUnparent(101)
  389. holoPos(101,PlayerTarget:aimPos())
  390. }
  391. if(Cd<20 && Cd>10){
  392. holoPos(74,Base:toWorld(vec(-9 + 6,5,0.9)))
  393. if(Cd==19)
  394. {
  395. Base:soundPlay(3,0,"weapons/sg552/sg552_boltpull.wav")
  396. soundPitch(3,80)
  397. }
  398. }
  399. else
  400. {
  401. holoPos(74,Base:toWorld(vec(-9,5,0.9)))
  402. }
  403. }
  404. if(Cd==1)
  405. {
  406. holoEntity(101):removeTrails()
  407. holoPos(101,Base:toWorld(vec(-33,0,0))) holoParent(101,Base)
  408. }
  409.  
  410. if(owner():keyAttack1() && owner():lastSaid() == ":st")
  411. {
  412. PlayerTarget = owner():aimEntity()
  413. print("Target set!") #In case you wanna stick it on someone else
  414. }
  415. }
Add Comment
Please, Sign In to add comment