@name Stingray #Converted using flashgnash's 3D model to holo converter (flashgnash.co.uk/python) #Model comment: Designed by Flashgnash @persist DoorSwing Pod:entity User:entity TickSpeed Ang:angle Target:entity Momentum LatestConstraint:entity @inputs Gun:wirelink if(first()){ Scale = 20 for (I=0,69){holoCreate(I)} Darkgray_colour = vec(100) Darkgray_material = "models/props/de_nuke/pipeset_metal02" Lightgray_colour = vec(255) #Lightgray_material = "models/props/de_nuke/pipesa_bombsite" Lightgray_material = "models/custom/pl_hoodoo/metaldoor001" Lightgray_material = "sprops/textures/sprops_metal3" Lightgreen_colour = vec(100,255,100) Lightgreen_material = "" Black_colour = vec(0) Black_material = "" Glass_colour = vec4(240,240,255,50) Glass_material = "" Invisible_colour = vec4(255,0,255,0) Invisible_material = "" #Box1 holoMaterial(0,Lightgray_material) holoColor(0,Lightgray_colour) holoScale(0,vec(0.125, 0.125,0.25) * Scale) holoPos(0, entity():pos() + (vec(3, 10, 3.5) + vec(0.75,0.75,1.5)) * Scale) holoParent(0,entity()) #Box1 holoMaterial(1,Lightgray_material) holoColor(1,Lightgray_colour) holoScale(1,vec(0.08333333333333333, 0.041666666666666664,0.5) * Scale) holoPos(1, entity():pos() + (vec(2, 10.5, 3.5) + vec(0.5,0.25,3.0)) * Scale) holoParent(1,holoEntity(0)) #Box1 holoMaterial(2,Lightgray_material) holoColor(2,Lightgray_colour) holoScale(2,vec(0.08333333333333333, 0.041666666666666664,0.5) * Scale) holoPos(2, entity():pos() + (vec(4.5, 10.5, 3.5) + vec(0.5,0.25,3.0)) * Scale) holoParent(2,holoEntity(0)) #Box1 holoMaterial(3,Lightgray_material) holoColor(3,Lightgray_colour) holoScale(3,vec(0.125, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(3, entity():pos() + (vec(3, 10.5, 1.5) + vec(0.75,0.25,1.0)) * Scale) holoParent(3,holoEntity(0)) #Box1 holoMaterial(4,Darkgray_material) holoColor(4,Darkgray_colour) holoScale(4,vec(0.08333333333333333, 0.041666666666666664,0.5833333333333334) * Scale) holoPos(4, entity():pos() + (vec(5, 10, 5.5) + vec(0.5,0.25,3.5)) * Scale) holoParent(4,holoEntity(0)) #Box1 holoMaterial(5,Darkgray_material) holoColor(5,Darkgray_colour) holoScale(5,vec(0.08333333333333333, 0.041666666666666664,0.3333333333333333) * Scale) holoPos(5, entity():pos() + (vec(5, 11, 5.5) + vec(0.5,0.25,2.0)) * Scale) holoParent(5,holoEntity(0)) #Box1 holoMaterial(6,Darkgray_material) holoColor(6,Darkgray_colour) holoScale(6,vec(0.08333333333333333, 0.041666666666666664,0.3333333333333333) * Scale) holoPos(6, entity():pos() + (vec(1.5, 11, 5.5) + vec(0.5,0.25,2.0)) * Scale) holoParent(6,holoEntity(0)) #Box1 holoMaterial(7,Darkgray_material) holoColor(7,Darkgray_colour) holoScale(7,vec(0.08333333333333333, 0.041666666666666664,0.5833333333333334) * Scale) holoPos(7, entity():pos() + (vec(1.5, 10, 5.5) + vec(0.5,0.25,3.5)) * Scale) holoParent(7,holoEntity(0)) #Box1 holoMaterial(8,Lightgray_material) holoColor(8,Lightgray_colour) holoScale(8,vec(0.2916666666666667, 0.041666666666666664,0.041666666666666664) * Scale) holoPos(8, entity():pos() + (vec(2, 10.5, 9.5) + vec(1.75,0.25,0.25)) * Scale) holoParent(8,holoEntity(0)) #Box1 holoMaterial(9,Darkgray_material) holoColor(9,Darkgray_colour) holoScale(9,vec(0.375, 0.041666666666666664,0.125) * Scale) holoPos(9, entity():pos() + (vec(1.5, 11, 9.5) + vec(2.25,0.25,0.75)) * Scale) holoParent(9,holoEntity(0)) #Box1 holoMaterial(10,Darkgray_material) holoColor(10,Darkgray_colour) holoScale(10,vec(0.125, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(10, entity():pos() + (vec(3, 10, 9.5) + vec(0.75,0.25,1.0)) * Scale) holoParent(10,holoEntity(0)) #Box1 holoMaterial(11,Lightgray_material) holoColor(11,Lightgray_colour) holoScale(11,vec(0.125, 0.041666666666666664,0.25) * Scale) holoPos(11, entity():pos() + (vec(3, 10, 6.5) + vec(0.75,0.25,1.5)) * Scale) holoParent(11,holoEntity(0)) #Box1 holoMaterial(12,Darkgray_material) holoColor(12,Darkgray_colour) holoScale(12,vec(0.125, 0.125,0.5833333333333334) * Scale) holoPos(12, entity():pos() + (vec(3, 10.5, 10) + vec(0.75,0.75,3.5)) * Scale) holoParent(12,holoEntity(0)) #Box1 holoMaterial(13,Lightgray_material) holoColor(13,Lightgray_colour) holoScale(13,vec(0.875, 0.041666666666666664,0.125) * Scale) holoPos(13, entity():pos() + (vec(-1.5, 11, 11) + vec(5.25,0.25,0.75)) * Scale) holoParent(13,holoEntity(0)) #Box1 holoMaterial(14,Lightgray_material) holoColor(14,Lightgray_colour) holoScale(14,vec(0.5416666666666666, 0.041666666666666664,0.125) * Scale) holoPos(14, entity():pos() + (vec(0.5, 11, 12.5) + vec(3.25,0.25,0.75)) * Scale) holoParent(14,holoEntity(0)) #Box1 holoMaterial(15,Lightgray_material) holoColor(15,Lightgray_colour) holoScale(15,vec(0.20833333333333334, 0.041666666666666664,0.2916666666666667) * Scale) holoPos(15, entity():pos() + (vec(2.5, 11, 14) + vec(1.25,0.25,1.75)) * Scale) holoParent(15,holoEntity(0)) #Box1 holoMaterial(16,Lightgray_material) holoColor(16,Lightgray_colour) holoScale(16,vec(0.125, 0.041666666666666664,0.2916666666666667) * Scale) holoPos(16, entity():pos() + (vec(3, 11, 17.5) + vec(0.75,0.25,1.75)) * Scale) holoParent(16,holoEntity(0)) #Box1 holoMaterial(17,Darkgray_material) holoColor(17,Darkgray_colour) holoScale(17,vec(0.041666666666666664, 0.125,0.3333333333333333) * Scale) holoPos(17, entity():pos() + (vec(3.5, 10.5, 16.5) + vec(0.25,0.75,2.0)) * Scale) holoParent(17,holoEntity(0)) #Box1 holoMaterial(18,Darkgray_material) holoColor(18,Darkgray_colour) holoScale(18,vec(0.4583333333333333, 0.125,0.16666666666666666) * Scale) holoPos(18, entity():pos() + (vec(1, 10.5, 11.5) + vec(2.75,0.75,1.0)) * Scale) holoParent(18,holoEntity(0)) #Box1 holoMaterial(19,Darkgray_material) holoColor(19,Darkgray_colour) holoScale(19,vec(0.7916666666666666, 0.125,0.08333333333333333) * Scale) holoPos(19, entity():pos() + (vec(-1, 10.5, 11) + vec(4.75,0.75,0.5)) * Scale) holoParent(19,holoEntity(0)) #Box1 holoMaterial(20,Darkgray_material) holoColor(20,Darkgray_colour) holoScale(20,vec(0.9583333333333334, 0.041666666666666664,0.041666666666666664) * Scale) holoPos(20, entity():pos() + (vec(-2, 11, 10.5) + vec(5.75,0.25,0.25)) * Scale) holoParent(20,holoEntity(0)) #Exhasust holoMaterial(21,Lightgreen_material) holoColor(21,Lightgreen_colour) holoScale(21,vec(0.041666666666666664, 0.041666666666666664,0.2916666666666667) * Scale) holoPos(21, entity():pos() + (vec(3.5, 11, 21) + vec(0.25,0.25,1.75)) * Scale) holoParent(21,holoEntity(0)) #Exhasust1 holoMaterial(22,Lightgreen_material) holoColor(22,Lightgreen_colour) holoScale(22,vec(0.041666666666666664, 0.041666666666666664,0.2916666666666667) * Scale) holoPos(22, entity():pos() + (vec(7.5, 11, 12.5) + vec(0.25,0.25,1.75)) * Scale) holoParent(22,holoEntity(0)) #Box1 holoMaterial(23,Darkgray_material) holoColor(23,Darkgray_colour) holoScale(23,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(23, entity():pos() + (vec(3, 11, 21) + vec(0.25,0.25,0.75)) * Scale) holoParent(23,holoEntity(0)) #Box1 holoMaterial(24,Darkgray_material) holoColor(24,Darkgray_colour) holoScale(24,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(24, entity():pos() + (vec(4, 11, 21) + vec(0.25,0.25,0.75)) * Scale) holoParent(24,holoEntity(0)) #Box1 holoMaterial(25,Darkgray_material) holoColor(25,Darkgray_colour) holoScale(25,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(25, entity():pos() + (vec(8, 11, 12.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(25,holoEntity(0)) #Box1 holoMaterial(26,Darkgray_material) holoColor(26,Darkgray_colour) holoScale(26,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(26, entity():pos() + (vec(7, 11, 12.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(26,holoEntity(0)) #Box1 holoMaterial(27,Darkgray_material) holoColor(27,Darkgray_colour) holoScale(27,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(27, entity():pos() + (vec(0, 11, 12.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(27,holoEntity(0)) #Box1 holoMaterial(28,Darkgray_material) holoColor(28,Darkgray_colour) holoScale(28,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(28, entity():pos() + (vec(-1, 11, 12.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(28,holoEntity(0)) #Exhasust2 holoMaterial(29,Lightgreen_material) holoColor(29,Lightgreen_colour) holoScale(29,vec(0.041666666666666664, 0.041666666666666664,0.2916666666666667) * Scale) holoPos(29, entity():pos() + (vec(-0.5, 11, 12.5) + vec(0.25,0.25,1.75)) * Scale) holoParent(29,holoEntity(0)) #LandingGear2 holoMaterial(30,Darkgray_material) holoColor(30,Darkgray_colour) holoScale(30,vec(0.041666666666666664, 0.08333333333333333,0.041666666666666664) * Scale) holoPos(30, entity():pos() + (vec(3.5, 9.5, 18.5) + vec(0.25,0.5,0.25)) * Scale) holoParent(30,holoEntity(0)) #LandingGear holoMaterial(31,Black_material) holoColor(31,Black_colour) holoScale(31,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(31, entity():pos() + (vec(3, 9, 18) + vec(0.25,0.5,0.5)) * Scale) holoParent(31,holoEntity(0)) #LandingGear1 holoMaterial(32,Black_material) holoColor(32,Black_colour) holoScale(32,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(32, entity():pos() + (vec(4, 9, 18) + vec(0.25,0.5,0.5)) * Scale) holoParent(32,holoEntity(0)) #LandingGear holoMaterial(33,Black_material) holoColor(33,Black_colour) holoScale(33,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(33, entity():pos() + (vec(1.5, 8.5, 6.5) + vec(0.25,0.5,0.5)) * Scale) holoParent(33,holoEntity(0)) #LandingGear1 holoMaterial(34,Black_material) holoColor(34,Black_colour) holoScale(34,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(34, entity():pos() + (vec(2.5, 8.5, 6.5) + vec(0.25,0.5,0.5)) * Scale) holoParent(34,holoEntity(0)) #LandingGear2 holoMaterial(35,Darkgray_material) holoColor(35,Darkgray_colour) holoScale(35,vec(0.041666666666666664, 0.08333333333333333,0.041666666666666664) * Scale) holoPos(35, entity():pos() + (vec(2, 9, 7) + vec(0.25,0.5,0.25)) * Scale) holoParent(35,holoEntity(0)) #LandingGear holoMaterial(36,Black_material) holoColor(36,Black_colour) holoScale(36,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(36, entity():pos() + (vec(4.5, 8.5, 6.5) + vec(0.25,0.5,0.5)) * Scale) holoParent(36,holoEntity(0)) #LandingGear2 holoMaterial(37,Darkgray_material) holoColor(37,Darkgray_colour) holoScale(37,vec(0.041666666666666664, 0.08333333333333333,0.041666666666666664) * Scale) holoPos(37, entity():pos() + (vec(5, 9, 7) + vec(0.25,0.5,0.25)) * Scale) holoParent(37,holoEntity(0)) #LandingGear1 holoMaterial(38,Black_material) holoColor(38,Black_colour) holoScale(38,vec(0.041666666666666664, 0.08333333333333333,0.08333333333333333) * Scale) holoPos(38, entity():pos() + (vec(5.5, 8.5, 6.5) + vec(0.25,0.5,0.5)) * Scale) holoParent(38,holoEntity(0)) #Box1 holoMaterial(39,Darkgray_material) holoColor(39,Darkgray_colour) holoScale(39,vec(0.20833333333333334, 0.08333333333333333,0.16666666666666666) * Scale) holoPos(39, entity():pos() + (vec(2.5, 11.5, 9.5) + vec(1.25,0.5,1.0)) * Scale) holoParent(39,holoEntity(0)) #joint_cockpit holoMaterial(40,Darkgray_material) holoColor(40,Darkgray_colour) holoScale(40,vec(0.20833333333333334, 0.041666666666666664,0.08333333333333333) * Scale) holoPos(40, entity():pos() + (vec(2.5, 12.5, 9.5) + vec(1.25,0.25,0.5)) * Scale) holoParent(40,holoEntity(0)) #SideWindow holoMaterial(41,Glass_material) holoColor(41,Glass_colour) holoScale(41,vec(0.041666666666666664, 0.08333333333333333,0.16666666666666666) * Scale) holoPos(41, entity():pos() + (vec(2.5, 11.5, 7.5) + vec(0.25,0.5,1.0)) * Scale) holoParent(41,holoEntity(0)) #SideWindow1 holoMaterial(42,Glass_material) holoColor(42,Glass_colour) holoScale(42,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(42, entity():pos() + (vec(2.5, 11.5, 6) + vec(0.25,0.25,0.75)) * Scale) holoParent(42,holoEntity(0)) #SideWindow1 holoMaterial(43,Glass_material) holoColor(43,Glass_colour) holoScale(43,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(43, entity():pos() + (vec(4.5, 11.5, 6) + vec(0.25,0.25,0.75)) * Scale) holoParent(43,holoEntity(0)) #SideWindow holoMaterial(44,Glass_material) holoColor(44,Glass_colour) holoScale(44,vec(0.041666666666666664, 0.08333333333333333,0.16666666666666666) * Scale) holoPos(44, entity():pos() + (vec(4.5, 11.5, 7.5) + vec(0.25,0.5,1.0)) * Scale) holoParent(44,holoEntity(0)) #Irritating Sticky Parts3 holoMaterial(45,Lightgray_material) holoColor(45,Lightgray_colour) holoScale(45,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(45, entity():pos() + (vec(-0.5, 10, 10) + vec(0.25,0.25,0.75)) * Scale) holoParent(45,holoEntity(0)) #Box1 holoMaterial(46,Black_material) holoColor(46,Black_colour) holoScale(46,vec(0.125, 0.041666666666666664,0.125) * Scale) holoPos(46, entity():pos() + (vec(3, 12, 12) + vec(0.75,0.25,0.75)) * Scale) holoParent(46,holoEntity(0)) #joint_turret holoMaterial(47,Lightgray_material) holoColor(47,Lightgray_colour) holoScale(47,vec(0.041666666666666664, 0.125,0.041666666666666664) * Scale) holoPos(47, entity():pos() + (vec(3.5, 12.5, 12.5) + vec(0.25,0.75,0.25)) * Scale) holoParent(47,holoEntity(0)) #attachment_turret holoMaterial(48,Invisible_material) holoColor(48,Invisible_colour) holoScale(48,vec(0.041666666666666664, 0.041666666666666664,0.041666666666666664) * Scale) holoPos(48, entity():pos() + (vec(3.5, 14, 12.5) + vec(0.25,0.25,0.25)) * Scale) holoParent(48,47) #attachment_turret holoMaterial(49,Darkgray_material) holoColor(49,Darkgray_colour) holoScale(49,vec(0.08333333333333333, 0.08333333333333333,0.125) * Scale) holoPos(49, entity():pos() + (vec(2.5, 13.5, 12) + vec(0.5,0.5,0.75)) * Scale) holoParent(49,47) #attachment_turret holoMaterial(50,Darkgray_material) holoColor(50,Darkgray_colour) holoScale(50,vec(0.08333333333333333, 0.08333333333333333,0.125) * Scale) holoPos(50, entity():pos() + (vec(4, 13.5, 12) + vec(0.5,0.5,0.75)) * Scale) holoParent(50,47) #attachment_turret holoMaterial(51,Black_material) holoColor(51,Black_colour) holoScale(51,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(51, entity():pos() + (vec(3, 14, 10.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(51,47) #attachment_turret holoMaterial(52,Black_material) holoColor(52,Black_colour) holoScale(52,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(52, entity():pos() + (vec(4, 14, 10.5) + vec(0.25,0.25,0.75)) * Scale) holoParent(52,47) #Irritating Sticky Parts2 holoMaterial(53,Lightgray_material) holoColor(53,Lightgray_colour) holoScale(53,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(53, entity():pos() + (vec(0.5, 10, 10) + vec(0.25,0.25,0.75)) * Scale) holoParent(53,holoEntity(0)) #Irritating Sticky Parts1 holoMaterial(54,Lightgray_material) holoColor(54,Lightgray_colour) holoScale(54,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(54, entity():pos() + (vec(6.5, 10, 10) + vec(0.25,0.25,0.75)) * Scale) holoParent(54,holoEntity(0)) #Irritating Sticky Parts holoMaterial(55,Lightgray_material) holoColor(55,Lightgray_colour) holoScale(55,vec(0.041666666666666664, 0.041666666666666664,0.125) * Scale) holoPos(55, entity():pos() + (vec(7.5, 10, 10) + vec(0.25,0.25,0.75)) * Scale) holoParent(55,holoEntity(0)) #Another Irritating Sticky part1 holoMaterial(56,Lightgray_material) holoColor(56,Lightgray_colour) holoScale(56,vec(0.041666666666666664, 0.041666666666666664,0.3333333333333333) * Scale) holoPos(56, entity():pos() + (vec(2.5, 11, 5.5) + vec(0.25,0.25,2.0)) * Scale) holoParent(56,holoEntity(0)) #Another Irritating Sticky part holoMaterial(57,Lightgray_material) holoColor(57,Lightgray_colour) holoScale(57,vec(0.041666666666666664, 0.041666666666666664,0.3333333333333333) * Scale) holoPos(57, entity():pos() + (vec(4.5, 11, 5.5) + vec(0.25,0.25,2.0)) * Scale) holoParent(57,holoEntity(0)) #seatpos holoMaterial(58,Invisible_material) holoColor(58,Invisible_colour) holoScale(58,vec(0.041666666666666664, 0.041666666666666664,0.041666666666666664) * Scale) holoPos(58, entity():pos() + (vec(3.5, 10, 8) + vec(0.25,0.25,0.25)) * Scale) holoParent(58,holoEntity(0)) #seat holoMaterial(59,Darkgray_material) holoColor(59,Darkgray_colour) holoScale(59,vec(0.125, 0.041666666666666664,0.08333333333333333) * Scale) holoPos(59, entity():pos() + (vec(3, 10.5, 8) + vec(0.75,0.25,0.5)) * Scale) holoParent(59,holoEntity(0)) #seat1 holoMaterial(60,Darkgray_material) holoColor(60,Darkgray_colour) holoScale(60,vec(0.125, 0.08333333333333333,0.041666666666666664) * Scale) holoPos(60, entity():pos() + (vec(3, 11, 9) + vec(0.75,0.5,0.25)) * Scale) holoParent(60,holoEntity(0)) #seat2 holoMaterial(61,Darkgray_material) holoColor(61,Darkgray_colour) holoScale(61,vec(0.041666666666666664, 0.08333333333333333,0.041666666666666664) * Scale) holoPos(61, entity():pos() + (vec(3.5, 10.5, 7) + vec(0.25,0.5,0.25)) * Scale) holoParent(61,holoEntity(0)) #attachment_cockpit holoMaterial(62,Lightgray_material) holoColor(62,Lightgray_colour) holoScale(62,vec(0.041666666666666664, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(62, entity():pos() + (vec(2.5, 12.5, 7.5) + vec(0.25,0.25,1.0)) * Scale) holoParent(62,40) #smallbit holoMaterial(63,Lightgray_material) holoColor(63,Lightgray_colour) holoScale(63,vec(0.125, 0.041666666666666664,0.041666666666666664) * Scale) holoPos(63, entity():pos() + (vec(3, 11.5, 4.5) + vec(0.75,0.25,0.25)) * Scale) holoParent(63,holoEntity(0)) #Irritating Sticky Parts4 holoMaterial(64,Darkgray_material) holoColor(64,Darkgray_colour) holoScale(64,vec(0.041666666666666664, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(64, entity():pos() + (vec(2.5, 10, 2.5) + vec(0.25,0.25,1.0)) * Scale) holoParent(64,holoEntity(0)) #Irritating Sticky Parts5 holoMaterial(65,Darkgray_material) holoColor(65,Darkgray_colour) holoScale(65,vec(0.041666666666666664, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(65, entity():pos() + (vec(4.5, 10, 2.5) + vec(0.25,0.25,1.0)) * Scale) holoParent(65,holoEntity(0)) #attachment_cockpit holoMaterial(66,Lightgray_material) holoColor(66,Lightgray_colour) holoScale(66,vec(0.041666666666666664, 0.041666666666666664,0.16666666666666666) * Scale) holoPos(66, entity():pos() + (vec(4.5, 12.5, 7.5) + vec(0.25,0.25,1.0)) * Scale) holoParent(66,40) #attachment_cockpit holoMaterial(67,Glass_material) holoColor(67,Glass_colour) holoScale(67,vec(0.125, 0.041666666666666664,0.125) * Scale) holoPos(67, entity():pos() + (vec(3, 11.5, 5) + vec(0.75,0.25,0.75)) * Scale) holoParent(67,40) #attachment_cockpit holoMaterial(68,Glass_material) holoColor(68,Glass_colour) holoScale(68,vec(0.125, 0.041666666666666664,0.125) * Scale) holoPos(68, entity():pos() + (vec(3, 12, 6.5) + vec(0.75,0.25,0.75)) * Scale) holoParent(68,40) #attachment_cockpit holoMaterial(69,Glass_material) holoColor(69,Glass_colour) holoScale(69,vec(0.125, 0.041666666666666664,0.125) * Scale) holoPos(69, entity():pos() + (vec(3, 12.5, 8) + vec(0.75,0.25,0.75)) * Scale) holoParent(69,40) print("Remaining holos: ",holoRemainingSpawns()) holoAng(0,ang(vec(0,0,90))) Pod = seatSpawn("",holoEntity(59):pos(),ang(vec(0)),1) holoParent(0,Pod) #entity():parentTo(Pod) timer("targetfind",500) TickSpeed = 50 } interval(TickSpeed) if( clk("opendoor") ){ if(DoorSwing >= 80){ DoorSwing = 80 #timer("closedoor",1000) } else{ DoorSwing += 5 timer("opendoor",100) } } elseif( clk("closedoor") ){ if(DoorSwing <= 10){ DoorSwing = 0 #timer("opendoor",1000) } else{ DoorSwing -= 5 timer("closedoor",100) } } User = Pod:driver() if(clk("targetfind")){ findExcludeEntity(User) findByClass("Player") Target = findClosest(holoEntity(47):pos()) timer("targetfind",500) } holoAng(40,holoEntity(40):angles():setRoll(holoEntity(0):angles():roll() + DoorSwing)) holoAng(47,holoEntity(46):angles():setYaw((holoEntity(47):pos() - Target:pos()):toAngle():yaw() + 90)) if(Target:pos():distance(Gun:entity():pos()) < 5000){ Gun:entity():setAng((Target:pos() -Gun:entity():pos()):toAngle() ) } Gun:entity():setPos(holoEntity(48):pos()) Gun:entity():setAlpha(0) Ang = Pod:angles() Ang = Ang:setRoll( -Pod:driver():eyeAngles():pitch() / 2 ) SprMult = 1 if(User:keySprint()){ SprMult = 2 } if(User:keyForward()){ if(Momentum < 400 * SprMult){ Momentum += 5 * SprMult } } elseif(Momentum > 0){ Momentum -= 4 * SprMult } else{ Momentum = 0 } if(User:keyAttack1()){ Gun["Fire",number] = 1 } else{ Gun["Fire",number] = 0 } Gun:entity():setAlpha(1) Pod:propFreeze(1) #Gravity rangerFilter(array(entity():isWeldedTo(),Pod)) RangerHeight = 15 RangerZN = rangerOffset(10000000, Pod:pos() + vec(0,0,RangerHeight), -owner():up()) if(RangerZN:distance() < RangerHeight){ Pod:setPos(RangerZN:pos()) V = 0 } elseif(RangerZN:distance() > RangerHeight + 45){ OnGround = 1 V += (gravity() * 100 * airDensity() / 16) / 4 if(RangerZN:distance() - RangerHeight <= V / TickSpeed / 10){ V =0 if(Momentum < 80){Pod:setPos(RangerZN:pos() + vec(0,0,45))} OnGround = 0 } if(Momentum < 100){Pod:setPos(Pod:pos() - vec(0,0,V / TickSpeed / 10) + vec(0,0,0))} } else{V = 0} if(Momentum != 0){ RangerZN = rangerOffset(10000000, Pod:pos(), Pod:forward()) if(RangerZN:distance() > Momentum * TickSpeed / 100){ Pod:setPos(Pod:pos() + Pod:forward() * Momentum * TickSpeed / 100) } } #if(User:keyLeft()){Ang = Ang:setYaw(Ang:yaw() + 5)} #elseif(User:keyRight()){Ang = Ang:setYaw(Ang:yaw() - 5)} LYaw = Pod:toLocal(User:eyeAngles()):yaw() - 90 if(User:model() != ""){ Ang = Ang:rotateAroundAxis(vec(0,0,1),LYaw / 9) } if(User:keyRight()){Ang += ang(vec(1,0,0))} elseif(User:keyLeft()){Ang -= ang(vec(1,0,0))} #print(Pod:toLocal(owner():angles())) if(Momentum > 80 | OnGround){ Pod:setAng(Ang) } else{Pod:setAng(Ang:setRoll(3))} if(changed(User)){ if(User:model() == ""){ timer("opendoor",1) } else{ timer("closedoor",1) Pod:printColorDriver(vec(0,255,0),"Stingray",vec(255,255,255),": Welcome aboard, "+User:name()) } } if(changed(OnGround)){ if(OnGround != 1){ for (I=30,38) { holoVisible(I,players(),1) } } else{ for (I=30,38) { holoVisible(I,players(),0) } } } Constraints = Pod:getConstraints() LatestConstraint = Constraints[Constraints:count(),entity] if(changed(LatestConstraint)){ for(I=1,Constraints:count() + 1){ if(Constraints[I,entity] != Pod){ Constraints[I,entity]:parentTo(Pod) #Constraints[I,entity]:propNotSolid(1) } } } if(Pod:model() == ""){ printColor(vec(0,255,0),"Stingray",vec(255,255,255),": Pod removed, self destructing") selfDestructAll() }