Advertisement
Guest User

Untitled

a guest
Feb 24th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.62 KB | None | 0 0
  1. #[
  2.  
  3. CRESCENT ROSE
  4.  
  5.  
  6.  
  7. Version 2, now with normal knees
  8.  
  9.  
  10.  
  11. HOW TO USE:
  12.  
  13. Take crowbar out, scythe some stuff.
  14.  
  15. Take crossbow out, shoot stuff.
  16.  
  17.  
  18.  
  19. REQUIRES:
  20.  
  21. HoloModelAny
  22.  
  23. PropCore
  24.  
  25. SetVelocity
  26.  
  27. TF2 (Sniper knife)
  28.  
  29. CS:S (Sounds)
  30.  
  31. A crowbar and a crossbow
  32.  
  33.  
  34.  
  35. http://rwby.wikia.com/wiki/Crescent_Rose
  36.  
  37.  
  38.  
  39. Written by Alix
  40.  
  41. ]#
  42.  
  43.  
  44.  
  45. @name RWBY Crescent Rose
  46.  
  47. @persist [Base Pivot Trailer PlayerTarget]:entity
  48.  
  49. @persist [Hold M1 M2 Anim SMAnim T Cd I NumHolo]
  50.  
  51. @persist [Light Dark Red Black]:vector
  52.  
  53. @persist [Blades Scope]:array
  54.  
  55. @persist [MeleeWeapon RifleWeapon]:string
  56.  
  57. @persist [ScaleFix]
  58.  
  59. runOnTick(1)
  60.  
  61.  
  62.  
  63. if(first())
  64.  
  65. {
  66.  
  67. #If things look messed up/broken, especially the blade part, change this variable from 1 to 0 or vice-versa
  68.  
  69. ScaleFix = 1
  70.  
  71.  
  72.  
  73. PlayerTarget = owner()
  74.  
  75. entity():setAlpha(0)
  76.  
  77.  
  78.  
  79. #Which weapon to use for each 'mode'
  80.  
  81. MeleeWeapon = "weapon_crowbar"
  82.  
  83. RifleWeapon = "weapon_crossbow"
  84.  
  85.  
  86.  
  87. #Colours for each part - if you change these, you suck
  88.  
  89. Red = vec(120,0,0)
  90.  
  91. Dark = vec(40,40,40)
  92.  
  93. Black = vec(1,1,1)
  94.  
  95. Light = vec(150,150,150)
  96.  
  97.  
  98.  
  99. Pivot = holoCreate(0)
  100.  
  101. holoAlpha(0,0)
  102.  
  103. holoParent(0,entity())
  104.  
  105.  
  106.  
  107. #Centre
  108.  
  109. Base = holoCreate(1,entity():pos(),vec(2,0.2,0.3),ang(0,0,0),Red,"cube") holoParent(1,0) #holoAlpha(1,50)
  110.  
  111.  
  112.  
  113. I = 2
  114.  
  115. NumHolo = 92
  116.  
  117.  
  118.  
  119. function entity holoStyle(Index,Position:vector,Scale:vector,Angle:angle,Colour:vector,Model:string)
  120.  
  121. {
  122.  
  123. holoPos(Index,Position) holoScale(Index,Scale) holoAng(Index,Angle) holoColor(Index,Colour) holoModel(Index,Model)
  124.  
  125. return holoEntity(Index)
  126.  
  127. }
  128.  
  129. }
  130.  
  131. elseif(I <= NumHolo & holoCanCreate() & I > 0)
  132.  
  133. {
  134.  
  135. holoCreate(I) holoScale(I,vec())
  136.  
  137. I++
  138.  
  139. }
  140.  
  141. elseif(I > NumHolo & I > 0)
  142.  
  143. {
  144.  
  145. #Trim underneath
  146.  
  147. holoStyle(2,Base:toWorld(vec(-6,0,-1.5)),vec(1,0.25,0.15),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(2,Base)
  148.  
  149. holoStyle(3,Base:toWorld(vec(-12,0,0)),vec(0.37,0.25,0.15),Base:toWorld(ang(70,0,0)),Dark,"cube") holoParent(3,Base)
  150.  
  151. holoStyle(4,Base:toWorld(vec(-22,0,0)),vec(1.6,0.25,0.1),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(4,Base)
  152.  
  153. holoStyle(5,Base:toWorld(vec(-31,0,0)),vec(0.3,0.25,0.05),Base:toWorld(ang(70,0,0)),Dark,"cube") holoParent(5,Base)
  154.  
  155.  
  156.  
  157. #Centre 2
  158.  
  159. holoStyle(6,Base:toWorld(vec(-22,0,0)),vec(1.6,0.15,0.25),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(6,Base)
  160.  
  161.  
  162.  
  163. #Tail
  164.  
  165. holoStyle(7,Base:toWorld(vec(15,0,-0.8)),vec(0.14,0.14,0.5),Base:toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(7,Base)
  166.  
  167. holoStyle(8,Base:toWorld(vec(24,0,-0.8)),vec(0.1,0.1,1.8),Base:toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(8,Base)
  168.  
  169. holoStyle(9,Base:toWorld(vec(35,0,-0.8)),vec(0.25,0.1,0.2),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(9,Base)
  170.  
  171. holoStyle(10,Base:toWorld(vec(37.7,0,-0.8)),vec(0.2,0.05,0.2),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(10,Base)
  172.  
  173.  
  174.  
  175. #Taper
  176.  
  177. holoStyle(11,Base:toWorld(vec(41.3,0,-0.8)),vec(0.2,0.05,0.4),Base:toWorld(ang(90,0,0)),Dark,"pyramid") holoParent(11,Base)
  178.  
  179. holoStyle(12,Base:toWorld(vec(38.5,0,-0.8)),vec(0.4,0.06,0.02),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(12,Base)
  180.  
  181.  
  182.  
  183. #Scope
  184.  
  185. holoStyle(13,Base:toWorld(vec(6,0,2)),vec(0.2,0.06,0.2),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(13,Base)
  186.  
  187. holoStyle(14,Base:toWorld(vec(6,0,3.5)),vec(0.1,0.1,0.3),Base:toWorld(ang(90,0,0)),Red,"cylinder") holoParent(14,Base)
  188.  
  189. holoStyle(15,Base:toWorld(vec(7.5,0,3.5)),vec(0.11,0.11,0.04),Base:toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(15,Base)
  190.  
  191. holoStyle(16,Base:toWorld(vec(4.5,0,3.5)),vec(0.11,0.11,0.04),Base:toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(16,Base)
  192.  
  193.  
  194.  
  195. #Barrel
  196.  
  197. holoStyle(17,Base:toWorld(vec(-40,0,0)),vec(1.8,0.1,0.18),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(17,Base)
  198.  
  199. holoStyle(18,Base:toWorld(vec(-50,0,0)),vec(0.38,0.2,0.4),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(18,17)
  200.  
  201.  
  202.  
  203. #Magazine
  204.  
  205. holoStyle(19,Base:toWorld(vec(-2,0,-4)),vec(0.7,0.12,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(19,Base)
  206.  
  207. holoStyle(20,Base:toWorld(vec(-2,0,-6.4)),vec(0.4,0.12,0.695),Base:toWorld(ang(90,0,0)),Red,"prism") holoParent(20,Base)
  208.  
  209.  
  210.  
  211. #Bridge
  212.  
  213. holoStyle(21,Base:toWorld(vec(-47,0,-1)),vec(0.25,0.25,0.65),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(21,17)
  214.  
  215. holoStyle(22,Base:toWorld(vec(-47,0,2)),0*vec(0.1,0.9,0.1),Base:toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(22,17) #Hinge
  216.  
  217. holoStyle(23,Base:toWorld(vec(-47,-1.6,7)),vec(0.2,0.08,0.8),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(23,22)
  218.  
  219. holoStyle(24,Base:toWorld(vec(-47,1.6,7)),vec(0.2,0.08,0.8),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(24,22)
  220.  
  221.  
  222.  
  223. holoStyle(25,Base:toWorld(vec(-49.5,1.6,7)),vec(0.07,0.6,0.25),Base:toWorld(ang(0,-90,90)),Dark,"prism") holoParent(25,22)
  224.  
  225. holoStyle(26,Base:toWorld(vec(-44.3,-1.6,7)),vec(0.07,0.6,0.25),Base:toWorld(ang(0,90,90)),Dark,"prism") holoParent(26,22)
  226.  
  227. holoStyle(27,Base:toWorld(vec(-49.5,-1.6,7)),vec(0.07,0.6,0.25),Base:toWorld(ang(0,-90,90)),Dark,"prism") holoParent(27,22)
  228.  
  229. holoStyle(28,Base:toWorld(vec(-44.3,1.6,7)),vec(0.07,0.6,0.25),Base:toWorld(ang(0,90,90)),Dark,"prism") holoParent(28,22)
  230.  
  231.  
  232.  
  233. #Top
  234.  
  235. holoStyle(29,Base:toWorld(vec(-46,0,12)),0*vec(0.1,0.9,0.1),Base:toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(29,22) #Hinge
  236.  
  237. holoStyle(30,Base:toWorld(vec(-46,1.9,12)),vec(0.15,0.15,0.15),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(30,29)
  238.  
  239. holoStyle(31,Base:toWorld(vec(-46,-1.9,12)),vec(0.15,0.15,0.15),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(31,29)
  240.  
  241.  
  242.  
  243. holoStyle(32,Base:toWorld(vec(-47.5,-1.9,13.6)),vec(0.7,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(32,29)
  244.  
  245. holoStyle(33,Base:toWorld(vec(-51.7,-1.9,13.60)),vec(0.2,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(33,29)
  246.  
  247. holoStyle(34,Base:toWorld(vec(-43.24,-1.9,13.60)),vec(0.2,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(34,29)
  248.  
  249.  
  250.  
  251. holoStyle(35,Base:toWorld(vec(-47.5,1.9,13.6)),vec(0.7,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(35,29)
  252.  
  253. holoStyle(36,Base:toWorld(vec(-51.7,1.9,13.60)),vec(0.2,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(36,29)
  254.  
  255. holoStyle(37,Base:toWorld(vec(-43.24,1.9,13.60)),vec(0.2,0.09,0.3),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(37,29)
  256.  
  257.  
  258.  
  259. #holoAng(29,ang(45,0,0))
  260.  
  261.  
  262.  
  263. #Top Blade
  264.  
  265. holoStyle(38,Base:toWorld(vec(-46,0,12)),0*vec(0.1,0.1,0.1),Base:toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(38,29) #Hinge
  266.  
  267.  
  268.  
  269. holoStyle(39,Base:toWorld(vec(-62,1.8,13)),vec(0.6,0.6,1.1),Base:toWorld(ang(0,0,0)),Dark,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(39,38)
  270.  
  271. holoMaterial(39,"models/debug/debugwhite")
  272.  
  273. holoClipEnabled(39,1)
  274.  
  275. holoClip(39,vec(17,0,0),vec(1,0,0),0)
  276.  
  277.  
  278.  
  279. holoStyle(40,Base:toWorld(vec(-59.7,1.8,12.9)),vec(0.5,0.55,1),Base:toWorld(ang(0,0,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(40,38)
  280.  
  281. holoMaterial(40,"models/debug/debugwhite")
  282.  
  283. holoClipEnabled(40,1)
  284.  
  285. holoClip(40,vec(17,0,0),vec(1,0,0),0)
  286.  
  287.  
  288.  
  289. holoStyle(41,Base:toWorld(vec(-62,-1.8,13)),vec(0.6,0.6,1.1),Base:toWorld(ang(0,0,0)),Dark,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(41,38)
  290.  
  291. holoMaterial(41,"models/debug/debugwhite")
  292.  
  293. holoClipEnabled(41,1)
  294.  
  295. holoClip(41,vec(17,0,0),vec(1,0,0),0)
  296.  
  297.  
  298.  
  299. holoStyle(42,Base:toWorld(vec(-59.7,-1.8,12.9)),vec(0.5,0.55,1),Base:toWorld(ang(0,0,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(42,38)
  300.  
  301. holoMaterial(42,"models/debug/debugwhite")
  302.  
  303. holoClipEnabled(42,1)
  304.  
  305. holoClip(42,vec(17,0,0),vec(1,0,0),0)
  306.  
  307.  
  308.  
  309. #Arm
  310.  
  311. holoStyle(43,Base:toWorld(vec(-47,0,-4)),0*vec(0.1,0.9,0.1),Base:toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(43,17) #hinge
  312.  
  313. holoStyle(44,Base:toWorld(vec(-47,0,-4)),vec(0.3,0.3,0.5),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(44,43)
  314.  
  315.  
  316.  
  317. holoStyle(45,Base:toWorld(vec(-47.5,2.3,-13)),vec(0.45,0.1,1.5),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(45,43)
  318.  
  319. holoStyle(46,Base:toWorld(vec(-46.5,2.3,-4)),vec(0.4,0.1,0.5),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(46,43)
  320.  
  321. holoStyle(47,Base:toWorld(vec(-48.9,2.3,-2.49)),vec(0.22,0.1,0.25),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(47,43)
  322.  
  323. holoStyle(48,Base:toWorld(vec(-48.9,2.3,-24.4)),vec(0.22,0.1,0.4),Base:toWorld(ang(180,0,0)),Red,"prism") holoParent(48,43)
  324.  
  325. holoStyle(49,Base:toWorld(vec(-47.15,2.3,-24.4)),vec(0.3,0.1,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(49,43)
  326.  
  327. holoStyle(50,Base:toWorld(vec(-45,2.3,-23)),vec(0.3,0.1,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(50,43)
  328.  
  329. holoStyle(51,Base:toWorld(vec(-47.5,2.43,-10)),vec(0.08,0.1,0.8),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(51,43)
  330.  
  331. holoStyle(52,Base:toWorld(vec(-48.89,2.43,-14.95)),vec(0.3,0.1,0.08),Base:toWorld(ang(-20,0,0)),Dark,"cube") holoParent(52,43)
  332.  
  333.  
  334.  
  335. holoStyle(53,Base:toWorld(vec(-47.5,-2.3,-13)),vec(0.45,0.1,1.5),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(53,43)
  336.  
  337. holoStyle(54,Base:toWorld(vec(-46.5,-2.3,-4)),vec(0.4,0.1,0.5),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(54,43)
  338.  
  339.  
  340.  
  341. holoStyle(55,Base:toWorld(vec(-48.9,-2.3,-2.49)),vec(0.22,0.1,0.25),Base:toWorld(ang(0,0,0)),Red,"prism") holoParent(55,43)
  342.  
  343. holoStyle(56,Base:toWorld(vec(-48.9,-2.3,-24.4)),vec(0.22,0.1,0.4),Base:toWorld(ang(180,0,0)),Red,"prism") holoParent(56,43)
  344.  
  345. holoStyle(57,Base:toWorld(vec(-47.15,-2.3,-24.4)),vec(0.3,0.1,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(57,43)
  346.  
  347. holoStyle(58,Base:toWorld(vec(-45,-2.3,-23)),vec(0.3,0.1,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(58,43)
  348.  
  349. holoStyle(59,Base:toWorld(vec(-47.5,-2.43,-10)),vec(0.08,0.1,0.8),Base:toWorld(ang(0,0,0)),Dark,"cube") holoParent(59,43)
  350.  
  351. holoStyle(60,Base:toWorld(vec(-48.89,-2.43,-14.95)),vec(0.3,0.1,0.08),Base:toWorld(ang(-20,0,0)),Dark,"cube") holoParent(60,43)
  352.  
  353.  
  354.  
  355. #holoAng(43,ang(45,0,0))
  356.  
  357.  
  358.  
  359. #Outer edge
  360.  
  361. holoStyle(61,Base:toWorld(vec(-56,0,12)),vec(3,0.8,1.4),Base:toWorld(ang(106,180,0)),Dark,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(61,43)
  362.  
  363. holoMaterial(61,"models/debug/debugwhite")
  364.  
  365. holoClipEnabled(61,1)
  366.  
  367. holoClip(61,vec(17,0,0),vec(1,0,1),0)
  368.  
  369.  
  370.  
  371. holoStyle(62,Base:toWorld(vec(-47,0,-25)),0*vec(0.1,0.9,0.1),ang(),vec(255,255,255),"cube") holoParent(62,43) #HINDGE
  372.  
  373.  
  374.  
  375. #Arms pt2
  376.  
  377. holoStyle(63,Base:toWorld(vec(-51,1.5,-16.85)),vec(1.8,0.8,1),Base:toWorld(ang(115,180,0)),Red,"models/weapons/c_models/c_machete/c_machete.mdl") holoParent(63,62)
  378.  
  379. holoMaterial(63,"models/debug/debugwhite")
  380.  
  381. holoClipEnabled(63,1)
  382.  
  383. holoClip(63,vec(10,0,0),vec(1,0,0),0)
  384.  
  385. holoStyle(64,Base:toWorld(vec(-51,-1.5,-16.85)),vec(1.8,0.8,1) ,Base:toWorld(ang(115,180,0)),Red,"models/weapons/c_models/c_machete/c_machete.mdl") holoParent(64,62)
  386.  
  387. holoMaterial(64,"models/debug/debugwhite")
  388.  
  389. holoClipEnabled(64,1)
  390.  
  391. holoClip(64,vec(10,0,0),vec(1,0,0),0)
  392.  
  393.  
  394.  
  395. holoStyle(65,Base:toWorld(vec(-44,0,-40)),0*vec(0.1,0.1,0.1),ang(),vec(255,255,255),"cube") holoParent(65,62) #hinge
  396.  
  397. holoStyle(66,Base:toWorld(vec(-42.5,0,-41.5)),vec(0.55,0.55,0.6),Base:toWorld(ang(0,0,90)),Light,"hq_torus") holoParent(66,65)
  398.  
  399. holoStyle(67,Base:toWorld(vec(-42.5,0,-41.5)),vec(0.5,0.5,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(67,65)
  400.  
  401. holoStyle(68,Base:toWorld(vec(-50,0,-12)),vec(1,0.8,1.7),Base:toWorld(ang(106,180,0)),Dark,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(68,65)
  402.  
  403. holoMaterial(68,"models/debug/debugwhite")
  404.  
  405. holoClipEnabled(68,1)
  406.  
  407. holoClip(68,vec(31,0,0),vec(1,0,0.3),0)
  408.  
  409. holoStyle(69,Base:toWorld(vec(-48,0,-12)),vec(0.8,0.8,1.65),Base:toWorld(ang(104,180,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(69,65)
  410.  
  411. holoMaterial(69,"models/debug/debugwhite")
  412.  
  413. holoClipEnabled(69,1)
  414.  
  415. holoClip(69,vec(31,0,0),vec(1,0,0.3),0)
  416.  
  417.  
  418.  
  419. #Inner blades
  420.  
  421. holoStyle(70,Base:toWorld(vec(-50,2,60)),vec(0.3,1.5,3.9),Base:toWorld(ang(100,180,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(70,43)
  422.  
  423. holoMaterial(65,"models/debug/debugwhite")
  424.  
  425. holoClipEnabled(70,1,1)
  426.  
  427. holoClipEnabled(70,2,1)
  428.  
  429. holoClip(70,1,vec(70,0,0),vec(1,0,0.3),0)
  430.  
  431. holoClip(70,2,vec(89,0,0),vec(-1,0,0),0)
  432.  
  433. holoStyle(71,Base:toWorld(vec(-45,2,48)),vec(0.2,1.2,3.6),Base:toWorld(ang(90,0,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(71,43)
  434.  
  435. holoMaterial(71,"models/debug/debugwhite")
  436.  
  437. holoClipEnabled(71,1,1)
  438.  
  439. holoClipEnabled(71,2,1)
  440.  
  441. holoClip(71,1,vec(70,0,0),vec(1,0,0.3),0)
  442.  
  443. holoClip(71,2,vec(89,0,0),vec(-1,0,0),0)
  444.  
  445. holoStyle(72,Base:toWorld(vec(-50,-2,60)),vec(0.3,1.5,3.9),Base:toWorld(ang(100,180,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(72,43)
  446.  
  447. holoMaterial(72,"models/debug/debugwhite")
  448.  
  449. holoClipEnabled(72,1,1)
  450.  
  451. holoClipEnabled(72,2,1)
  452.  
  453. holoClip(72,1,vec(70,0,0),vec(1,0,0.3),0)
  454.  
  455. holoClip(72,2,vec(89,0,0),vec(-1,0,0),0)
  456.  
  457. holoStyle(73,Base:toWorld(vec(-45,-2,48)),vec(0.2,1.2,3.6),Base:toWorld(ang(90,0,0)),Light,"models/weapons/c_models/c_croc_knife/c_croc_knife.mdl") holoParent(73,43)
  458.  
  459. holoMaterial(73,"models/debug/debugwhite")
  460.  
  461. holoClipEnabled(73,1,1)
  462.  
  463. holoClipEnabled(73,2,1)
  464.  
  465. holoClip(73,1,vec(70,0,0),vec(1,0,0.3),0)
  466.  
  467. holoClip(73,2,vec(89,0,0),vec(-1,0,0),0)
  468.  
  469.  
  470.  
  471. #Side 45 degree bits
  472.  
  473. holoStyle(74,Base:toWorld(vec(-37,0,0)),0*vec(0.1,1,0.1),Base:toWorld(ang(0,0,0)),vec(255,255,255),"cube") holoParent(74,17) #hinge
  474.  
  475.  
  476.  
  477. holoStyle(75,Base:toWorld(vec(-42,1.5,-4)),vec(0.5,0.05,1.3),Base:toWorld(ang(50,0,0)),Red,"cube") holoParent(75,74)
  478.  
  479. holoStyle(76,Base:toWorld(vec(-42,-1.5,-4)),vec(0.5,0.05,1.3),Base:toWorld(ang(50,0,0)),Red,"cube") holoParent(76,74)
  480.  
  481. holoStyle(77,Base:toWorld(vec(12.9,0,1)),0.15*vec(1,1,1),Base:toWorld(ang(0,0,90)),Dark,"hqtorus") holoParent(77,Base)
  482.  
  483. holoStyle(78,Base:toWorld(vec(-7,0,0)),vec(1,0.2,0.3),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(78,Base)
  484.  
  485. holoStyle(79,Base:toWorld(vec(-9,5,0.9)),vec(0.15,0.15,0.7),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(79,Base)
  486.  
  487.  
  488.  
  489. #Extra bits
  490.  
  491. holoStyle(80,Base:toWorld(vec(-42.3,2.3,-23)),vec(0.62,0.1,0.5),Base:toWorld(ang(90,0,0)),Red,"prism") holoParent(80,43)
  492.  
  493. holoClipEnabled(80,1) holoClip(80,vec(0,0,-0.9),vec(0,0,-1),0)
  494.  
  495.  
  496.  
  497. holoStyle(81,Base:toWorld(vec(-42.3,-2.3,-23)),vec(0.62,0.1,0.5),Base:toWorld(ang(90,0,0)),Red,"prism") holoParent(81,43)
  498.  
  499. holoClipEnabled(81,1) holoClip(81,vec(0,0,-0.9),vec(0,0,-1),0)
  500.  
  501.  
  502.  
  503. #3 Dots on each side
  504.  
  505. holoStyle(82,Base:toWorld(vec(-46,2.35,-23)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(82,43)
  506.  
  507. holoStyle(83,Base:toWorld(vec(-44.5,2.35,-21.8)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(83,43)
  508.  
  509. holoStyle(84,Base:toWorld(vec(-44.5,2.35,-24.2)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(84,43)
  510.  
  511.  
  512.  
  513. holoStyle(85,Base:toWorld(vec(-46,-2.35,-23)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(85,43)
  514.  
  515. holoStyle(86,Base:toWorld(vec(-44.5,-2.35,-21.8)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(86,43)
  516.  
  517. holoStyle(87,Base:toWorld(vec(-44.5,-2.35,-24.2)),vec(0.08,0.08,0.1),Base:toWorld(ang(0,0,90)),Dark,"cylinder") holoParent(87,43)
  518.  
  519.  
  520.  
  521. #Gun handle
  522.  
  523. holoStyle(88,Base:toWorld(vec(10,0,-3)),vec(0.15,0.15,0.5),Base:toWorld(ang(-40,0,0)),Red,"cube") holoParent(88,Base)
  524.  
  525. holoStyle(89,Base:toWorld(vec(15,0,-1)),vec(0.11,0.11,0.5),Base:toWorld(ang(90,0,0)),Dark,"cylinder") holoParent(89,Base)
  526.  
  527. holoStyle(90,Base:toWorld(vec(19,0,-3)),vec(0.15,0.15,0.5),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(90,Base)
  528.  
  529.  
  530.  
  531. #Back bits for compact mode
  532.  
  533. holoStyle(91,Base:toWorld(vec(-11.5,0,0.2)),vec(2.2,0.2,0.4),Base:toWorld(ang(0,0,0)),Red,"cube") holoParent(91,Base) #holoAlpha(1,50)
  534.  
  535. holoStyle(92,Base:toWorld(vec(2.8,0,1)),0.15*vec(1,1,1),Base:toWorld(ang(0,0,90)),Dark,"hqtorus") holoParent(92,Base)
  536.  
  537.  
  538.  
  539. Blades = array(7,8,9,10,11,12,39,40,41,42,25,26,27,28,61,70,71,72,73)
  540.  
  541. Scope = array(1,13,14,15,16,77)
  542.  
  543.  
  544.  
  545. I=0
  546.  
  547.  
  548.  
  549. #Shout out to wire updates that FUCK EVERYTHIN' UP
  550.  
  551. if(ScaleFix)
  552.  
  553. {
  554.  
  555. for(I=1,92)
  556.  
  557. {
  558.  
  559. if(holoEntity(I):model():left(14) == "models/weapons")
  560.  
  561. {
  562.  
  563. Scl = holoScale(I)
  564.  
  565. holoScale(I,shiftR(Scl))
  566.  
  567. }
  568.  
  569. }
  570.  
  571. }
  572.  
  573. print("Spawned Crescent Rose!")
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581. #holoParent(1,0)
  582.  
  583. }#Done spawning
  584.  
  585. elseif(I==0)
  586.  
  587. {
  588.  
  589.  
  590.  
  591. #These weapons can be changed if you have a more suitable SWEP to use, such as blank sweps
  592.  
  593. if(PlayerTarget:weapon():type() == MeleeWeapon)
  594.  
  595. {Hold = 1 PlayerTarget:weapon():setAlpha(0)}
  596.  
  597. elseif(PlayerTarget:weapon():type() == RifleWeapon)
  598.  
  599. {Hold = 2 PlayerTarget:weapon():setAlpha(0)}
  600.  
  601. else
  602.  
  603. {Hold = 0 PlayerTarget:weapon():setAlpha(255)}
  604.  
  605.  
  606.  
  607. if($Hold){
  608.  
  609. #BLADE mode
  610.  
  611. if(Hold==1)
  612.  
  613. {
  614.  
  615. soundPitch(1,70)
  616.  
  617. Base:soundPlay(1,1,"weapons/ump45/ump45_boltslap.wav")
  618.  
  619. holoPos(0,PlayerTarget:attachmentPos("anim_attachment_RH"))
  620.  
  621. holoAng(0,PlayerTarget:attachmentAng("anim_attachment_RH"))
  622.  
  623. holoParentAttachment(0,PlayerTarget,"anim_attachment_RH")
  624.  
  625. holoAng(1,Pivot:toWorld(ang(90,180,0)))
  626.  
  627. holoPos(1,Pivot:toWorld(vec(0,0,20)))
  628.  
  629.  
  630.  
  631. Anim = 0
  632.  
  633.  
  634.  
  635. #Hide handle
  636.  
  637. for(I=88,90)
  638.  
  639. {
  640.  
  641. holoAlpha(I,0)
  642.  
  643. }
  644.  
  645.  
  646.  
  647.  
  648.  
  649. #Unhide blades and scope
  650.  
  651. for(I = 1,Blades:count())
  652.  
  653. {
  654.  
  655. holoAlpha(Blades[I,number],255)
  656.  
  657. }
  658.  
  659.  
  660.  
  661. for(I = 1,Scope:count())
  662.  
  663. {
  664.  
  665. holoAlpha(Scope[I,number],255)
  666.  
  667. }
  668.  
  669.  
  670.  
  671. holoAlpha(91,0)
  672.  
  673. holoAlpha(92,0)
  674.  
  675. }
  676.  
  677.  
  678.  
  679. #GUN mode
  680.  
  681. elseif(Hold==2)
  682.  
  683. {
  684.  
  685. soundPitch(1,70)
  686.  
  687. Base:soundPlay(1,0,"weapons/ump45/ump45_clipin.wav")
  688.  
  689. holoPos(0,PlayerTarget:attachmentPos("anim_attachment_RH"))
  690.  
  691. holoAng(0,PlayerTarget:attachmentAng("anim_attachment_RH"))
  692.  
  693. holoParentAttachment(0,PlayerTarget,"anim_attachment_RH")
  694.  
  695. holoAng(1,Pivot:toWorld(ang(0,180,0)))
  696.  
  697. holoPos(1,Pivot:toWorld(vec(13,-0.8,4)))
  698.  
  699.  
  700.  
  701. Anim = 100
  702.  
  703.  
  704.  
  705. #Unhide handle
  706.  
  707. for(I=88,90)
  708.  
  709. {
  710.  
  711. holoAlpha(I,255)
  712.  
  713. }
  714.  
  715.  
  716.  
  717. #Hide blades, Unhide scope
  718.  
  719. for(I = 1,Blades:count())
  720.  
  721. {
  722.  
  723. holoAlpha(Blades[I,number],0)
  724.  
  725. }
  726.  
  727.  
  728.  
  729. for(I = 1,Scope:count())
  730.  
  731. {
  732.  
  733. holoAlpha(Scope[I,number],255)
  734.  
  735. }
  736.  
  737.  
  738.  
  739. holoAlpha(91,0)
  740.  
  741. holoAlpha(92,0)
  742.  
  743. }
  744.  
  745.  
  746.  
  747. #CARRY mode
  748.  
  749. elseif(!Hold)
  750.  
  751. {
  752.  
  753. soundPitch(1,70)
  754.  
  755. Base:soundPlay(1,0,"weapons/ump45/ump45_clipout.wav")
  756.  
  757.  
  758.  
  759. holoPos(0,PlayerTarget:attachmentPos("chest"))
  760.  
  761. holoAng(0,PlayerTarget:attachmentAng("chest"))
  762.  
  763. holoParentAttachment(0,PlayerTarget,"chest")
  764.  
  765. holoAng(1,Pivot:toWorld(ang(20,-90,0)))
  766.  
  767. holoPos(1,Pivot:toWorld(vec(-10,-15,-7)))
  768.  
  769.  
  770.  
  771.  
  772.  
  773. Anim = 100
  774.  
  775.  
  776.  
  777. #Hide handle
  778.  
  779. for(I=88,90)
  780.  
  781. {
  782.  
  783. holoAlpha(I,0)
  784.  
  785. }
  786.  
  787.  
  788.  
  789. #Hide blades and scope
  790.  
  791. for(I = 1,Blades:count())
  792.  
  793. {
  794.  
  795. holoAlpha(Blades[I,number],0)
  796.  
  797. }
  798.  
  799.  
  800.  
  801. for(I = 1,Scope:count())
  802.  
  803. {
  804.  
  805. holoAlpha(Scope[I,number],0)
  806.  
  807. }
  808.  
  809.  
  810.  
  811. holoAlpha(91,255)
  812.  
  813. holoAlpha(92,255)
  814.  
  815. }
  816.  
  817. }
  818.  
  819.  
  820.  
  821. #Animation
  822.  
  823.  
  824.  
  825. if(SMAnim<Anim){SMAnim+=5}
  826.  
  827. if(SMAnim>Anim){SMAnim-=5}
  828.  
  829.  
  830.  
  831. holoAng(22,Base:toWorld(ang(15 + (0.75*SMAnim),0,0))) #Rear bridge hinge
  832.  
  833. holoAng(29,Base:toWorld(ang(-10 + (1.9*SMAnim),0,0))) #Top segments hinge
  834.  
  835. holoAng(38,Base:toWorld(ang(20 + (0.3*SMAnim),0,0))) #Blades hinge
  836.  
  837. holoAng(43,Base:toWorld(ang(-10 - (0.8*SMAnim),0,0))) #Big arm hinge
  838.  
  839. holoAng(62,Base:toWorld(ang(-20 - (2.4*SMAnim),0,0))) #Smaller arms hinge
  840.  
  841. holoAng(65,Base:toWorld(ang(-50 - (3.9*SMAnim),0,0))) #End circle blade hinge
  842.  
  843. holoAng(74,Base:toWorld(ang(0 - (1.4*SMAnim),0,0))) #Inner flaps hinge
  844.  
  845. holoPos(17,Base:toWorld(vec(-40 + (0.2 * SMAnim),0,0)))
  846.  
  847.  
  848.  
  849.  
  850.  
  851. #Firing in gun mode
  852.  
  853. M1 = PlayerTarget:keyAttack1()
  854.  
  855.  
  856.  
  857. if(Hold==2 & $M1 & M1 & Cd == 0) {
  858.  
  859. Cd=50
  860.  
  861. Base:soundPlay(2,0,"weapons/sg552/sg552-1.wav")
  862.  
  863. soundPitch(2,80)
  864.  
  865.  
  866.  
  867. S = propSpawn("models/props_junk/garbage_coffeemug001a.mdl",Base:toWorld(vec(-45,0,0)),Base:toWorld(ang(0,0,0)),0)
  868.  
  869. S:propGravity(0)
  870.  
  871. S:setMass(50000)
  872.  
  873. #S:propDrag(0)
  874.  
  875. S:setAlpha(0)
  876.  
  877. S:setTrails(10,0,1,"trails/laser",vec(255,215,215),150)
  878.  
  879. S:applyForce(owner():eye() * S:mass() * S:mass())
  880.  
  881.  
  882.  
  883. #ifdef entity:applyPlayerForce(vector)
  884.  
  885. PlayerTarget:applyPlayerForce(-PlayerTarget:eye()*550)
  886.  
  887. #endif
  888.  
  889. #ifdef particle(number,number,number,string,vector,vector,vector)
  890.  
  891. particle(0.1,20,15,"effects/muzzleflash" + randint(1,4),vec(255,255,255),Base:toWorld(vec(-35,0,0)),vec(0,0,0))
  892.  
  893. #endif
  894.  
  895. }
  896.  
  897.  
  898.  
  899. if(Cd>0)
  900.  
  901. {
  902.  
  903. Cd--
  904.  
  905.  
  906.  
  907. if(Cd<20 && Cd>10){
  908.  
  909. holoPos(79,Base:toWorld(vec(-9 + 6,5,0.9)))
  910.  
  911. if(Cd==19)
  912.  
  913. {
  914.  
  915. Base:soundPlay(3,0,"weapons/sg552/sg552_boltpull.wav")
  916.  
  917. soundPitch(3,80)
  918.  
  919. }
  920.  
  921. }
  922.  
  923. else
  924.  
  925. {
  926.  
  927. holoPos(79,Base:toWorld(vec(-9,5,0.9)))
  928.  
  929. }
  930.  
  931. }
  932.  
  933. if(Cd==1)
  934.  
  935. {
  936.  
  937.  
  938.  
  939. }
  940.  
  941. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement