Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name MediumMech V2 2
- @inputs
- @outputs
- @persist [Seat None Prop1]:entity Parent [R1 R2 R3 R4 JumpRan]:ranger ChargeJump Jump JumpPower Cosin Plus RunAngler HoloCount
- @persist Hangler:array HoloVel:vector Poss:vector Teeth MouthOpener MouthOpen Shooting StartJump JumpStraightUp Direction:vector
- @persist Slide
- @trigger
- @model models/hunter/blocks/cube05x05x05.mdl
- interval(100)
- E = entity()
- UpHover = 60
- LegLength = 50
- TimeStep = 250
- HitGr = 110
- FB = 65
- RL = 30
- Step = 90
- if( E ){
- E:setMass(50000)
- E:setAlpha(0)
- if(!Seat){
- findByClass("prop_vehicle_prisoner_pod")
- findSortByDistance(E:pos())
- if(find():owner()==owner()){
- Seat = find()
- Seat:setAlpha(255 )
- }
- }
- Driver = Seat:driver()
- Seat:propNotSolid(Driver ? 1 : 0)
- rangerFilter(players())
- rangerFilter(E)
- Gran = rangerOffset(99999,E:toWorld(vec()),E:up()*-1):distance()
- Ground = (Gran<= HitGr)
- Ground2 = (Gran<= HitGr+15)
- }
- if(Seat){
- Driver = Seat:driver()
- if(Driver){
- W=Driver:keyForward()
- A=Driver:keyLeft()
- S=Driver:keyBack()
- D=Driver:keyRight()
- Space=Driver:keyJump()
- Shift=Driver:keySprint()
- Alt=Driver:keyWalk()
- Mouse1=Driver:keyAttack1()
- Mouse2=Driver:keyAttack2()
- }
- }
- if(!Driver){
- UpHover = UpHover / 2
- }
- 3# Color = random(255),random(255),random(255)
- if(changed(E)){
- function entity c(Index:number,Posi:vector,Scale:vector,Angle:angle,Colo:vector,Model:string,Parent:entity,Alpha:number){
- holoCreate(Index) holoPos(Index,Posi) holoScale(Index,Scale) holoAng(Index,Angle) holoColor(Index,Colo) holoModel(Index,Model)
- holoParent(Index,Parent) holoAlpha(Index,Alpha)
- return holoEntity(Index)
- }
- function string opri(Message:string,ColorM:vector){
- Seat:printColorDriver(vec(255),"[",vec(255,0,0),"E2",vec(255),"]",ColorM,Message)
- }
- function vector entity:towv(VectorW:vector){
- return This:toWorld(VectorW)
- }
- function angle entity:towa(AngleW:angle){
- return This:toWorld(AngleW)
- }
- function entity holop(HT,Vectos:vector){
- holoPos(HT,Vectos)
- }
- function entity holoa(Ho,Angl:angle){
- holoAng(Ho,Angl)
- }
- function number co(A, B, C){
- return acos((A^2 + B^2 - C^2) / (2*A*B))
- }
- function angle ik(L1,L2,Hip:vector,End:vector,I1,I2,Bs:entity){
- local Rotation = ang(0, 0, 0)
- local Axis1 = End-Hip
- local Axis = Bs:toLocalAxis(Axis1):rotate(Rotation)
- local Angle=Axis:toAngle():setRoll(-bearing(Hip,Bs:angles(),End))
- local Dist=min(Axis:length(),L1+L2)
- local Quat=quat(angnorm(Angle))*qRotation(vec(0,90+angnorm(co(round(Dist),L1,L2)),0))
- holoa(I1,Bs:towa(Quat:toAngle()))
- holoa(I2,holoEntity(I1):towa(ang(angnorm(co(L2, L1, round(Dist)))+180,0,0)))
- }
- function entity entity:parentent(Entity2:entity,PositionToSet:vector,AngleToSet:angle){
- Entity_1 = This
- if(Entity_1&Parent == 0){
- Entity_1:setPos(PositionToSet)
- Entity_1:setAng(AngleToSet)
- Entity_1:propFreeze(1)
- timer("parent",2000)
- }
- if(clk("parent")){
- stoptimer("parent")
- Entity_1:parentTo(Entity2)
- Parent = 1
- }
- if(!Entity_1){
- Parent = 0
- }
- }
- function vector entity:hover(H1,H2,H3,H4,UpPos:number,Power:number,VeloCi:number){
- if(!(W|A|S|D)){
- Plus++
- Cosin = cos(Plus * 20)
- }
- if(Shift){
- if(W){
- Plus++
- }
- if(S){
- Plus--
- }
- Cosin = cos(Plus * 50)
- }
- if(Space&Ground2){
- if(Driver){
- if(JumpStraightUp <= 130){
- JumpStraightUp += 2
- }
- UpPos = UpPos / 1.65
- }
- }
- if(changed(!Space)&!Space){
- StartJump = 1
- #if(JumpStraightUp < 20){
- #JumpStraightUp = 120
- #}
- JumpPower = JumpStraightUp
- }
- if(StartJump == 1){
- if(changed(Ground2)&Ground2){
- StartJump = 0
- JumpPower = 0
- JumpStraightUp = 0
- }
- }
- local Jump = (This:up()*This:mass()*JumpPower+This:forward()*This:mass()*JumpPower / 2*(W-S))*(Ground*4)
- local VectorPositionOfFeet = (holoEntity(H1):pos()+ holoEntity(H2):pos()+holoEntity(H3):pos()+holoEntity(H4):pos())/4
- local Hover = (((((VectorPositionOfFeet + vec(0,0,UpPos+Cosin))-(This:pos())) *(Power)*This:mass())*Ground)
- -(This:vel()*This:mass()*vec(VeloCi))*Ground2) *!StartJump*Ground2
- This:applyForce(( Hover*2 + Jump))
- This:propGravity(Ground ? 0 : 1)
- }
- function vector torque(Et:entity){
- rangerFilter(Et)
- rangerFilter(Seat)
- rangerFilter(players())
- local Ra2 = rangerOffset(180,E:toWorld(vec(FB/1.2,0,30)),Et:up()*-1)
- rangerFilter(Seat)
- rangerFilter(Et)
- rangerFilter(players())
- local Ra1 = rangerOffset(180,E:toWorld(vec(0,0,30)),Et:up()*-1)
- local RightLeft = vec(Driver:eye():dot(E:right()),Driver:eye():dot(E:right()),0):y()
- local Angless=((Ra1:position()+Ra1:hitNormal()*56)-(Ra2:position()+Ra2:hitNormal()*56)):toAngle()
- if(Ground2){
- if(((W|A|S|D) & Shift)){
- RunAngler = cos(Plus * 50)*10
- }
- if(!(W|A|S|D)){
- RunAngler = cos(Plus * 20)*1
- }
- if(!Alt & !Space & !Shift){
- Roll = 0
- }else{
- if(Alt){
- Roll = 10
- }
- if(Space){
- Roll = 5
- }
- if(Shift){
- Roll = 5
- }
- }
- }
- local Z = vec(Driver:eye():dot(Et:up()),0,Driver:eye():dot(Et:up())):z()
- local ClampedAngles = clamp(Z* 20 , Shift ? 0 : -15 ,15)
- local Angler = Ground ? ang(-Angless:pitch()+Roll-RunAngler-ClampedAngles,Et:angles():yaw()-RightLeft*14,0)
- : ang(0,Et:angles():yaw()-RightLeft*14,0)
- local Torque = Et:toLocal(rotationVector(quat(angnorm(Angler)) / quat(Et)) + Et:pos())
- Et:applyTorque((round(Torque*(100+(200)*!Ground))-Et:angVelVector()*20)*Et:inertia())
- }
- function vector mix_p(Pos1:vector,HoloToMove){
- local DistFromPositions = holoEntity(HoloToMove):pos():distance(Pos1)
- if(DistFromPositions > 5){
- return mix(mix(Pos1,Pos1+holoEntity(HoloToMove):up()*DistFromPositions/3,0.35+((0.1)*Shift)),
- mix(Pos1+holoEntity(HoloToMove):up()*DistFromPositions/3,holoEntity(HoloToMove):pos(),0.25+((0.1)*Shift)),0.35+((0.1)*Shift))
- }
- }
- function angle localholoangle(Nr1:number,Nr2:number,Nr3:number){
- return E:towa(clamp(E:toLocal(Driver:eyeAngles()+ang(0,0,0)),ang(-Nr1,-Nr2,-Nr3),ang(Nr1,Nr2,Nr3)))
- }
- #holos#
- #######
- c(1,E:towv(vec(FB,RL,-30)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",None,0)
- c(2,E:towv(vec(FB,-RL,-30)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",None,0)
- c(3,E:towv(vec(-FB,RL,-30)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",None,0)
- c(4,E:towv(vec(-FB,-RL,-30)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",None,0)
- c(5,E:towv(vec(FB,RL,0)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",E,0)
- c(6,E:towv(vec(FB,-RL,0)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",E,0)
- c(9,E:towv(vec(FB,RL,LegLength)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",holoEntity(5),0)
- c(10,E:towv(vec(FB,-RL,LegLength)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",holoEntity(6),0)
- c(13,E:towv(vec(FB,RL,LegLength*2)),vec(1,1,1),E:towa(ang(0,0,0)),vec(155),"hqcylinder",holoEntity(9),0)
- c(14,E:towv(vec(FB,-RL,LegLength*2)),vec(1,1,1),E:towa(ang(0,0,0)),vec(155),"hqcylinder",holoEntity(10),0)
- c(7,E:towv(vec(-FB,RL,0)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",E,0)
- c(8,E:towv(vec(-FB,-RL,0)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",E,0)
- c(11,E:towv(vec(-FB,RL,LegLength)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",holoEntity(7),0)
- c(12,E:towv(vec(-FB,-RL,LegLength)),vec(1,1,1),E:towa(ang(0,0,0)),vec(255),"",holoEntity(8),0)
- c(15,E:towv(vec(-FB,RL,LegLength*2)),vec(1,1,1),E:towa(ang(0,0,0)),vec(155),"hqcylinder",holoEntity(11),0)
- c(16,E:towv(vec(-FB,-RL,LegLength*2)),vec(1,1,1),E:towa(ang(0,0,0)),vec(155),"hqcylinder",holoEntity(12),0)
- #c(17,E:toWorld(vec(-FB,RL,LegLength*2.5)),vec(1,1,1),E:toWorld(ang(0,0,0)),vec(255),"",holoEntity(15),255)
- #c(18,E:toWorld(vec(-FB,-RL,LegLength*2.5)),vec(1,1,1),E:toWorld(ang(0,0,0)),vec(255),"",holoEntity(16),255)
- ###############
- R1 = rangerOffset(HitGr,E:towv(vec(FB+10,RL+10,0)),E:up()*-1)
- R2 = rangerOffset(HitGr,E:towv(vec(FB+10,-RL-10,0)),E:up()*-1)
- R3 = rangerOffset(HitGr,E:towv(vec(-FB-10,RL+10,0)),E:up()*-1)
- R4 = rangerOffset(HitGr,E:towv(vec(-FB-10,-RL-10,0)),E:up()*-1)
- timer("1",0)
- }
- #if(Driver!=owner()){Seat:killPod()}
- if(!holoEntity(19) & holoEntity(1)& perf() & holoCanCreate()){
- c(19,E:towv(vec(FB,RL,0)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(5),255)
- c(20,E:towv(vec(FB,-RL,0)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(6),255)
- c(21,E:towv(vec(FB,RL,LegLength)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(9),255)
- c(22,E:towv(vec(FB,-RL,LegLength)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(10),255)
- c(23,E:towv(vec(FB,RL,LegLength*2)),vec(2,1.5,0.8),E:towa(ang(0,0,0)),vec(25),"hqcylinder",holoEntity(13),255)
- c(24,E:towv(vec(FB,-RL,LegLength*2)),vec(2,1.5,0.8),E:towa(ang(0,0,0)),vec(25),"hqcylinder",holoEntity(14),255)
- c(25,E:towv(vec(-FB,RL,0)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(7),255)
- c(26,E:towv(vec(-FB,-RL,0)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(8),255)
- c(27,E:towv(vec(-FB,RL,LegLength)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(11),255)
- c(28,E:towv(vec(-FB,-RL,LegLength)),vec(1.5,1.5,1.8),E:towa(ang(90,90,0)),vec(25),"cylinder",holoEntity(12),255)
- c(29,E:towv(vec(-FB,RL,LegLength*2)),vec(2,1.5,0.8),E:towa(ang(0,0,0)),vec(25),"hqcylinder",holoEntity(15),255)
- c(30,E:towv(vec(-FB,-RL,LegLength*2)),vec(2,1.5,0.8),E:towa(ang(0,0,0)),vec(25),"hqcylinder",holoEntity(16),255)
- c(31,E:towv(vec(FB,RL,0)),vec(2.5,2.5,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(5),255)
- c(32,E:towv(vec(FB,-RL,0)),vec(2.5,2.5,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(6),255)
- c(33,E:towv(vec(FB,RL,LegLength)),vec(2,2,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(9),255)
- c(34,E:towv(vec(FB,-RL,LegLength)),vec(2,2,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(10),255)
- c(35,E:towv(vec(-FB,RL,0)),vec(2.5,2.5,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(7),255)
- c(36,E:towv(vec(-FB,-RL,0)),vec(2.5,2.5,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(8),255)
- c(37,E:towv(vec(-FB,RL,LegLength)),vec(2,2,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(11),255)
- c(38,E:towv(vec(-FB,-RL,LegLength)),vec(2,2,1.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(12),255)
- c(39,E:towv(vec(FB,RL,0)),vec(8,2,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(5),255)
- c(40,E:towv(vec(FB,-RL,0)),vec(8,2,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(6),255)
- c(41,E:towv(vec(-FB,RL,0)),vec(8,2,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(7),255)
- c(42,E:towv(vec(-FB,-RL,0)),vec(8,2,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(8),255)
- c(43,E:towv(vec(FB,RL,LegLength)),vec(8,1.5,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(9),255)
- c(44,E:towv(vec(FB,-RL,LegLength)),vec(8,1.5,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(10),255)
- c(45,E:towv(vec(-FB,RL,LegLength)),vec(8,1.5,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(11),255)
- c(46,E:towv(vec(-FB,-RL,LegLength)),vec(8,1.5,1.4),E:towa(ang(90,90,0)),vec(30),"hqcylinder",holoEntity(12),255)
- c(47,E:towv(vec(FB,RL,LegLength)),vec(8,1,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(9),255)
- c(48,E:towv(vec(FB,-RL,LegLength)),vec(8,1,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(10),255)
- c(49,E:towv(vec(-FB,RL,LegLength)),vec(8,1,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(11),255)
- c(50,E:towv(vec(-FB,-RL,LegLength)),vec(8,1,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(12),255)
- c(51,E:towv(vec(FB,RL,0)),vec(8,1.5,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(5),255)
- c(52,E:towv(vec(FB,-RL,0)),vec(8,1.5,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(6),255)
- c(53,E:towv(vec(-FB,RL,0)),vec(8,1.5,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(7),255)
- c(54,E:towv(vec(-FB,-RL,0)),vec(8,1.5,1.6),E:towa(ang(90,90,0)),vec(255,0,0),"hqcylinder",holoEntity(8),255)
- holoMaterial(46,"debug/debugdrawflat")
- holoMaterial(47,"debug/debugdrawflat")
- holoMaterial(48,"debug/debugdrawflat")
- holoMaterial(49,"debug/debugdrawflat")
- holoMaterial(51,"debug/debugdrawflat")
- holoMaterial(52,"debug/debugdrawflat")
- holoMaterial(53,"debug/debugdrawflat")
- holoMaterial(54,"debug/debugdrawflat")
- c(55,E:towv(vec(FB,RL,0)),vec(2.6,2.6,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(5),255)
- c(56,E:towv(vec(FB,-RL,0)),vec(2.6,2.6,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(6),255)
- c(57,E:towv(vec(FB,RL,LegLength)),vec(2.1,2.1,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(9),255)
- c(58,E:towv(vec(FB,-RL,LegLength)),vec(2.1,2.1,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(10),255)
- c(59,E:towv(vec(-FB,RL,0)),vec(2.6,2.6,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(7),255)
- c(60,E:towv(vec(-FB,-RL,0)),vec(2.6,2.6,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(8),255)
- c(61,E:towv(vec(-FB,RL,LegLength)),vec(2.1,2.1,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(11),255)
- c(62,E:towv(vec(-FB,-RL,LegLength)),vec(2.1,2.1,1.55),E:towa(ang(90,90,0)),vec(10),"hq_tube_thin",holoEntity(12),255)
- holoClipEnabled(39,1)
- holoClipEnabled(40,1)
- holoClipEnabled(41,1)
- holoClipEnabled(42,1)
- holoClip(39,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(40,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(41,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(42,vec(-1,0,0),vec(-1,0,0),0)
- holoClipEnabled(43,1)
- holoClipEnabled(44,1)
- holoClipEnabled(45,1)
- holoClipEnabled(46,1)
- holoClip(43,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(44,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(45,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(46,vec(-1,0,0),vec(-1,0,0),0)
- holoClipEnabled(47,1)
- holoClipEnabled(48,1)
- holoClipEnabled(49,1)
- holoClipEnabled(50,1)
- holoClip(47,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(48,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(49,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(50,vec(-1,0,0),vec(-1,0,0),0)
- holoClipEnabled(51,1)
- holoClipEnabled(52,1)
- holoClipEnabled(53,1)
- holoClipEnabled(54,1)
- holoClip(51,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(52,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(53,vec(-1,0,0),vec(-1,0,0),0)
- holoClip(54,vec(-1,0,0),vec(-1,0,0),0)
- c(63,E:towv(vec(FB,RL,LegLength*2)),vec(1.5),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",holoEntity(13),255)
- c(64,E:towv(vec(FB,-RL,LegLength*2)),vec(1.5),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",holoEntity(14),255)
- c(65,E:towv(vec(-FB,RL,LegLength*2)),vec(1.5),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",holoEntity(15),255)
- c(66,E:towv(vec(-FB,-RL,LegLength*2)),vec(1.5),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",holoEntity(16),255)
- c(67,E:towv(vec(FB,RL,LegLength*2)),vec(2.1,1.6,0.1),E:towa(ang(0,0,0)),vec(255,0,0),"cylinder",holoEntity(13),255)
- c(68,E:towv(vec(FB,-RL,LegLength*2)),vec(2.1,1.6,0.1),E:towa(ang(0,0,0)),vec(255,0,0),"cylinder",holoEntity(14),255)
- c(69,E:towv(vec(-FB,RL,LegLength*2)),vec(2.1,1.6,0.1),E:towa(ang(0,0,0)),vec(255,0,0),"cylinder",holoEntity(15),255)
- c(70,E:towv(vec(-FB,-RL,LegLength*2)),vec(2.1,1.6,0.1),E:towa(ang(0,0,0)),vec(255,0,0),"cylinder",holoEntity(16),255)
- holoMaterial(63,"debug/debugdrawflat")
- holoMaterial(64,"debug/debugdrawflat")
- holoMaterial(65,"debug/debugdrawflat")
- holoMaterial(66,"debug/debugdrawflat")
- holoMaterial(67,"debug/debugdrawflat")
- holoMaterial(68,"debug/debugdrawflat")
- holoMaterial(69,"debug/debugdrawflat")
- holoMaterial(70,"debug/debugdrawflat")
- holoClipEnabled(63,1)
- holoClipEnabled(64,1)
- holoClipEnabled(65,1)
- holoClipEnabled(66,1)
- holoClip(63,vec(-0,0,1),vec(-0,0,1),0)
- holoClip(64,vec(-0,0,1),vec(-0,0,1),0)
- holoClip(65,vec(-0,0,1),vec(-0,0,1),0)
- holoClip(66,vec(-0,0,1),vec(-0,0,1),0)
- c(71,E:towv(vec(FB+10,RL+5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,25,0)),vec(25),"pyramid",holoEntity(63),255)
- c(72,E:towv(vec(FB+12,RL,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,0,0)),vec(25),"pyramid",holoEntity(63),255)
- c(73,E:towv(vec(FB+10,RL-5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,-25,0)),vec(25),"pyramid",holoEntity(63),255)
- c(74,E:towv(vec(FB+10,-RL+5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,25,0)),vec(25),"pyramid",holoEntity(64),255)
- c(75,E:towv(vec(FB+12,-RL+0,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,0,0)),vec(25),"pyramid",holoEntity(64),255)
- c(76,E:towv(vec(FB+10,-RL-5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,-25,0)),vec(25),"pyramid",holoEntity(64),255)
- }
- if(holoEntity(76)&!holoEntity(77) & perf() & holoCanCreate()){
- c(77,E:towv(vec(-FB+10,RL+5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,25,0)),vec(25),"pyramid",holoEntity(65),255)
- c(78,E:towv(vec(-FB+12,RL,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,0,0)),vec(25),"pyramid",holoEntity(65),255)
- c(79,E:towv(vec(-FB+10,RL-5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,-25,0)),vec(25),"pyramid",holoEntity(65),255)
- c(80,E:towv(vec(-FB+10,-RL+5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,25,0)),vec(25),"pyramid",holoEntity(66),255)
- c(81,E:towv(vec(-FB+12,-RL+0,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,0,0)),vec(25),"pyramid",holoEntity(66),255)
- c(82,E:towv(vec(-FB+10,-RL-5,LegLength*2)),vec(3,0.4,0.8),E:towa(ang(0,-25,0)),vec(25),"pyramid",holoEntity(66),255)
- }
- if(holoEntity(82)&!holoEntity(83)& perf() & holoCanCreate()){
- c(83,E:towv(vec(40,0,0)),vec(3,3,3),E:towa(ang(0,-0,0)),vec(25),"hq_rcube",E,255)
- c(84,E:towv(vec(10,0,0)),vec(2.8,2.4,2.4),E:towa(ang(0,-0,0)),vec(25),"hq_rcube",E,255)
- c(85,E:towv(vec(-20,0,0)),vec(2.6,2,2),E:towa(ang(0,-0,0)),vec(25),"hq_rcube",E,255)
- c(86,E:towv(vec(-40,0,0)),vec(2.6,1.8,1.8),E:towa(ang(0,-0,0)),vec(45),"hq_rcube",E,255)
- c(87,E:towv(vec(50,0,0)),vec(1.6,2.3,2.3),E:towa(ang(0,-0,0)),vec(45),"hq_rcube",E,255)
- c(88,E:towv(vec(-65,0,0)),vec(1.8,1.8,2),E:towa(ang(90,90,0)),vec(45),"hqcylinder",E,255)
- c(89,E:towv(vec(65,0,0)),vec(1.8,1.8,2),E:towa(ang(90,90,0)),vec(45),"hqcylinder",E,255)
- c(90,E:towv(vec(-65,0,0)),vec(1.3,1.3,3),E:towa(ang(90,90,0)),vec(15),"hqcylinder",E,255)
- c(91,E:towv(vec(65,0,0)),vec(1.3,1.3,3),E:towa(ang(90,90,0)),vec(15),"hqcylinder",E,255)
- c(92,E:towv(vec(65,20,0)),vec(1.7),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",E,255)
- c(93,E:towv(vec(65,-20,0)),vec(1.7),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",E,255)
- c(94,E:towv(vec(-65,20,0)),vec(1.7),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",E,255)
- c(95,E:towv(vec(-65,-20,0)),vec(1.7),E:towa(ang(0,0,0)),vec(255,0,0),"hqsphere",E,255)
- holoMaterial(92,"debug/debugdrawflat")
- holoMaterial(93,"debug/debugdrawflat")
- holoMaterial(94,"debug/debugdrawflat")
- holoMaterial(95,"debug/debugdrawflat")
- }
- if(holoEntity(102)&!holoEntity(105)& perf() & holoCanCreate()){
- c(105,E:towv(vec(65,0,0)),vec(2,2,0.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",E,255)
- c(106,E:towv(vec(65,10,0)),vec(2,2,0.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",E,255)
- c(107,E:towv(vec(65,-10,0)),vec(2,2,0.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",E,255)
- c(108,E:towv(vec(75,5,10)),vec(2,2,0.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",E,255)
- c(109,E:towv(vec(75,-5,10)),vec(2,2,0.5),E:towa(ang(90,90,0)),vec(100),"hqcylinder",E,255)
- c(110,E:towv(vec(75,5,10)),vec(1.7,1.7,0.8),E:towa(ang(90,90,0)),vec(0),"hq_rcylinder",E,255)
- c(111,E:towv(vec(75,-5,10)),vec(1.7,1.7,0.8),E:towa(ang(90,90,0)),vec(0),"hq_rcylinder",E,255)
- c(113,E:towv(vec(85,0,20)),vec(1.4,1.4,1.4),E:towa(ang(0,0,0)),vec(0),"hqsphere",E,255)
- c(112,E:towv(vec(85,-0,20)),vec(1.5,1.5,0.4),E:towa(ang(90,90,0)),vec(100),"hqcylinder",holoEntity(113),255)
- }
- if(holoEntity(113) & !holoEntity(114) & perf() & holoCanCreate()){
- ik(LegLength,LegLength,holoEntity(5):pos(),holoEntity(1):pos(),5,9,E)
- ik(LegLength,LegLength,holoEntity(6):pos(),holoEntity(2):pos(),6,10,E)
- ik(LegLength,LegLength,holoEntity(7):pos(),holoEntity(3):pos(),7,11,E)
- ik(LegLength,LegLength,holoEntity(8):pos(),holoEntity(4):pos(),8,12,E)
- c(114,holoEntity(113):towv(vec(13,-0,5)),vec(0.35,0.35,1.6),holoEntity(113):towa(ang(90,0,0)),vec(30),"hq_rcylinder",holoEntity(113),255)
- c(115,holoEntity(113):towv(vec(13,4,5)),vec(0.35,0.35,1.6),holoEntity(113):towa(ang(90,0,0)),vec(30),"hq_rcylinder",holoEntity(113),255)
- c(116,holoEntity(113):towv(vec(13,-4,5)),vec(0.35,0.35,1.6),holoEntity(113):towa(ang(90,0,0)),vec(30),"hq_rcylinder",holoEntity(113),255)
- c(117,holoEntity(113):towv(vec(14,-0,3)),vec(1.75,1.5,0.3),holoEntity(113):towa(ang(0,0,0)),vec(70),"hq_rcube",holoEntity(113),255)
- c(118,holoEntity(113):towv(vec(24,-0,3)),vec(0.45,1.2,0.3),holoEntity(113):towa(ang(45,0,0)),vec(70),"hq_rcube",holoEntity(113),255)
- c(119,holoEntity(113):towv(vec(5.2,-0,5)),vec(0.45,1,0.3),holoEntity(113):towa(ang(45,0,0)),vec(30),"hq_rcube",holoEntity(113),255)
- c(120,holoEntity(113):towv(vec(-3,5,10)),vec(0.4,0.2,1),holoEntity(113):towa(ang(-45,0,-30)),vec(0),"hq_rcube",holoEntity(113),255)
- c(121,holoEntity(113):towv(vec(-3,-5,10)),vec(0.4,0.2,1),holoEntity(113):towa(ang(-45,0,30)),vec(0),"hq_rcube",holoEntity(113),255)
- c(123,holoEntity(113):towv(vec(1.5,3.5,7)),vec(0.4),holoEntity(113):towa(ang(-0,0,-0)),vec(255,0,0),"hqsphere",holoEntity(113),255)
- c(124,holoEntity(113):towv(vec(1.5,-3.5,7)),vec(0.4),holoEntity(113):towa(ang(-0,0,0)),vec(255,0,0),"hqsphere",holoEntity(113),255)
- holoMaterial(123,"debug/debugdrawflat")
- holoMaterial(124,"debug/debugdrawflat")
- }
- ###teeth up####
- if(holoEntity(124) & !holoEntity(125) & perf() & holoCanCreate()){
- for(Holo1 = 1 , 7){
- c(124+Holo1,holoEntity(113):towv(vec(1.5+Holo1 * 4,-6,0)),vec(0.3,0.3,0.5),holoEntity(113):towa(ang(180,0,0)),vec(255,0,0),"pyramid",holoEntity(113),255)
- holoMaterial(124+Holo1,"debug/debugdrawflat")
- holoScale(124 + 5 ,vec(0.3,0.3,1))
- holoPos(124 + 5,holoEntity(113):towv(vec(1.5+Holo1*2.8,-6,-3)))
- }
- }
- if(holoEntity(124) & !holoEntity(124 + 8) & perf() & holoCanCreate()){
- for(Holo2 = 1 , 5){
- c(129+Holo2,holoEntity(113):towv(vec(1.5+Holo2 * 4,6,0)),vec(0.3,0.3,0.5),holoEntity(113):towa(ang(180,0,0)),vec(255,0,0),"pyramid",holoEntity(113),255)
- holoMaterial(129+Holo2,"debug/debugdrawflat")
- holoScale(129+5 ,vec(0.3,0.3,1))
- holoPos(129+5,holoEntity(113):towv(vec(1.5+Holo2*4,6,-3)))
- }
- }
- if(!holoEntity(135)&holoEntity(134) & perf() & holoCanCreate()){
- for(Holo3 = 1 , 4){
- c(135+Holo3,holoEntity(113):towv(vec(24.3,8-Holo3 * 3,0)),vec(0.3,0.3,0.5),holoEntity(113):towa(ang(180,0,0)),vec(255,0,0),"pyramid",holoEntity(113),255)
- holoMaterial(135+Holo3,"debug/debugdrawflat")
- }
- ##############
- }
- if(!holoEntity(140) & holoEntity(139) & perf() & holoCanCreate()){
- c(140,holoEntity(113):towv(vec(0,0,0)),vec(0.5,0.5,1.4),holoEntity(113):towa(ang(90,90,0)),vec(255,0,0),"cylinder",holoEntity(113),0)
- #holoMaterial(140,"debug/debugdrawflat")
- c(141,holoEntity(113):towv(vec(0,0,0)),vec(0.5,0.5,1.42),holoEntity(113):towa(ang(90,90,0)),vec(255,0,0),"cylinder",holoEntity(113),255)
- holoMaterial(141,"debug/debugdrawflat")
- c(142,holoEntity(141):towv(vec(5,-13,0)),vec(1.7,1,0.25),holoEntity(113):towa(ang(0,0,0)),vec(30),"hq_rcube",holoEntity(141),255)
- }
- if(holoEntity(142) & !holoEntity(143) & perf() & holoCanCreate()){
- c(143,holoEntity(142):towv(vec(-5.5,5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,-15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(143,"debug/debugdrawflat")
- c(144,holoEntity(142):towv(vec(-1.5,5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,-15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(144,"debug/debugdrawflat")
- c(145,holoEntity(142):towv(vec(2.5,5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,-15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(145,"debug/debugdrawflat")
- }
- if(holoEntity(145) & !holoEntity(146) & perf() & holoCanCreate()){
- c(146,holoEntity(142):towv(vec(6.5,5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,-15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(146,"debug/debugdrawflat")
- c(147,holoEntity(142):towv(vec(-5.5,-5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(147,"debug/debugdrawflat")
- c(148,holoEntity(142):towv(vec(-1.5,-5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(148,"debug/debugdrawflat")
- c(149,holoEntity(142):towv(vec(2.5,-5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(149,"debug/debugdrawflat")
- c(150,holoEntity(142):towv(vec(6.5,-5,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(0,0,15)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(150,"debug/debugdrawflat")
- c(151,holoEntity(142):towv(vec(9.2,2,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(15,0,0)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(151,"debug/debugdrawflat")
- c(152,holoEntity(142):towv(vec(9.2,-2,3)),vec(0.3,0.3,0.5),holoEntity(142):towa(ang(15,0,0)),vec(255,0,0),"pyramid",holoEntity(142),255)
- holoMaterial(152,"debug/debugdrawflat")
- c(153,holoEntity(113):towv(vec(5,0,0)),vec(1),holoEntity(113):towa(ang(0,0,0)),vec(130),"hq_rcube",holoEntity(113),0)
- }
- if(holoEntity(153) & !holoEntity(153+12) & perf() & holoCanCreate()){
- for(Holo5 = 1 , 9){
- c(153+Holo5,E:towv(vec(50-Holo5 * 10,-0,18-Holo5*0.5)),vec(1,1.5-Holo5*0.1,0.3),E:towa(ang(0,0,0)),vec(255-Holo5*15,0,0),"hq_rcube",E,255)
- holoMaterial(153+Holo5,"debug/debugdrawflat")
- }
- }
- if(holoEntity(158)&!holoEntity(170) & perf() & holoCanCreate()){
- c(170,E:towv(vec(-50,0,30)),vec(2,2,0.1),E:towa(ang(0,0,0)),vec(255,0,0),"cylinder",E,0)
- holoMaterial(170,"debug/debugdrawflat")
- }
- #left side anim#
- if(!Shift & !Alt){
- UpHover = UpHover
- TimeStep = TimeStep / 1.1
- TimeStep2 = TimeStep
- TimeStep3 = TimeStep / 1.1
- TimeStep4 = TimeStep
- }else{
- if(Driver){
- if(Shift&!Alt & (W|A|S|D)){
- UpHover = UpHover / 1.2
- Step = Step * 1.5
- TimeStep = 70
- TimeStep2 = 120
- TimeStep3 = 70
- TimeStep4 = 120
- }
- if(Alt&!Shift){
- Teilt = 1.1
- UpHover = UpHover / 1.2
- TimeStep = TimeStep * Teilt
- TimeStep2 = TimeStep * Teilt
- TimeStep3 = TimeStep * Teilt
- TimeStep4 = TimeStep * Teilt
- }
- }
- }
- R = Driver:keyReload()
- if(Driver){
- if(!R){
- MouthOpen = 0
- }else{
- MouthOpen =1
- }
- holoa(113,localholoangle(45,85,0))
- if(MouthOpen){
- if(MouthOpener <= 30){
- MouthOpener+=5
- }
- }
- }
- if(MouthOpener >=1 & !MouthOpen){
- MouthOpener-=5
- }
- if(changed(MouthOpener >= 30)&MouthOpener >= 30){
- holoEntity(140):soundPlay(5,9999999,"weapons/gauss/chargeloop.wav")
- }
- if(MouthOpener >= 30){
- Shooting += 5
- if(changed(Shooting >= 80)&Shooting>=80){
- Prop1 = propSpawn("models/props_junk/garbage_coffeemug001a.mdl",holoEntity(153):towv(vec(0,0,0)),holoEntity(153):angles(),0)
- Prop1:setAlpha(0)
- Prop1:applyForce(holoEntity(153):forward()*Prop1:mass()*5000)
- Prop1:setMass(50000)
- Prop1:propGravity(0)
- Prop1:setTrails(50,0,1,"trails/laser",vec(255,0,0),255)
- holoEntity(140):soundPlay(6,1,"ambient/energy/weld2.wav")
- Shooting = 0
- }
- }
- if(MouthOpener >1 & Shooting > 0 & !MouthOpen){
- Shooting = 0
- }
- soundPitch(5,Shooting*2)
- if(holoEntity(141)){
- holoa(141,MouthOpener<2 ? holoEntity(140):towa(ang(0,clamp(E:velL():z() ,0,20),0)) : holoEntity(140):towa(ang(0,MouthOpener,0)))
- }
- if(clk("1")){
- timer("2",TimeStep)
- stoptimer("4")
- if(Ground){
- holoUnparent(1)
- holoParent(4,R4:entity())
- if(holoEntity(13):pos():distance(R1:pos())>10){
- holoEntity(16):soundPlay(1,0.5,"mvm/giant_scout/giant_scout_step_0"+randint(1)+".wav")
- }
- rangerFilter(E)
- rangerFilter(Seat)
- rangerFilter(players())
- R1 = rangerOffset(HitGr,E:towv(vec(FB+(W-S)*Step+(((20*Shift))*!(W|A|S|D)),RL+(A-D)*(Step-(85*Shift)),0)),E:up()*-1)
- }
- }
- if(clk("2")){
- stoptimer("1")
- timer("3",TimeStep2)
- if(Ground){
- holoParent(1,R1:entity())
- holoUnparent(2)
- if(holoEntity(14):pos():distance(R2:pos())>10){
- holoEntity(13):soundPlay(2,0.5,"mvm/giant_scout/giant_scout_step_0"+randint(1)+".wav")
- }
- rangerFilter(E)
- rangerFilter(Seat)
- rangerFilter(players())
- R2 = rangerOffset(HitGr,E:towv(vec(FB+(W-S)*Step+(((20*Shift))*!(W|A|S|D)),-RL+(A-D)*(Step-(85*Shift)),0)),E:up()*-1)
- }
- }
- ###############
- #right side anim#
- if(clk("3")){
- stoptimer("2")
- timer("4",TimeStep3)
- if(Ground){
- holoParent(2,R2:entity())
- holoUnparent(3)
- rangerFilter(E)
- rangerFilter(Seat)
- rangerFilter(players())
- R3 = rangerOffset(HitGr,E:towv(vec(-FB+(((-40)*Shift)*!(W|A|S|D))+(W-S)*Step+((-10*Shift)),RL+(A-D)*(Step-(85*Shift)),0)),E:up()*-1)
- if(holoEntity(15):pos():distance(R3:pos())>10){
- holoEntity(14):soundPlay(3,0.5,"mvm/giant_scout/giant_scout_step_0"+randint(1)+".wav")
- }
- }
- }
- if(clk("4")){
- stoptimer("3")
- timer("1",TimeStep4)
- if(Ground){
- holoParent(3,R3:entity())
- holoUnparent(4)
- rangerFilter(E)
- rangerFilter(Seat)
- rangerFilter(players())
- R4 = rangerOffset(HitGr,E:towv(vec(-FB+(((-40)*Shift)*!(W|A|S|D))+(W-S)*Step+((-10*Shift)),-RL+(A-D)*(Step-(85*Shift)),0)),E:up()*-1)
- if(holoEntity(16):pos():distance(R4:pos())>10){
- holoEntity(15):soundPlay(4,0.5,"mvm/giant_scout/giant_scout_step_0"+randint(1)+".wav")
- }
- }
- }
- if(holoEntity(1):pos():distance(R1:pos())>5& holoEntity(150)& perf()){
- ik(LegLength,LegLength,holoEntity(5):pos(),holoEntity(1):pos(),5,9,E)
- }
- if(holoEntity(2):pos():distance(R2:pos())>5 & holoEntity(150)& perf()){
- ik(LegLength,LegLength,holoEntity(6):pos(),holoEntity(2):pos(),6,10,E)
- }
- if(holoEntity(3):pos():distance(R3:pos())>5& holoEntity(150)& perf()){
- ik(LegLength,LegLength,holoEntity(7):pos(),holoEntity(3):pos(),7,11,E)
- }
- if(holoEntity(4):pos():distance(R4:pos())>5& holoEntity(150) & perf()){
- ik(LegLength,LegLength,holoEntity(8):pos(),holoEntity(4):pos(),8,12,E)
- }
- if((holoEntity(1):pos() - R1:pos()):length()>10 &Ground){ holop(1,mix_p(R1:pos(),1)) }
- if((holoEntity(2):pos() - R2:pos()):length()>10 &Ground){ holop(2,mix_p(R2:pos(),2))
- }
- if((holoEntity(3):pos() - R3:pos()):length()>10 &Ground){ holop(3,mix_p(R3:pos(),3))
- }
- if((holoEntity(4):pos() - R4:pos()):length()>10 &Ground){ holop(4,mix_p(R4:pos(),4))
- }
- holoa(13,ang(0,E:angles():yaw(),0))
- holoa(14,ang(0,E:angles():yaw(),0))
- holoa(15,ang(0,E:angles():yaw(),0))
- holoa(16,ang(0,E:angles():yaw(),0))
- E:hover(1,2,3,4,UpHover,4,0.45)
- torque(E)
- Seat:parentent(E,E:towv(vec(43,0,8)),E:towa(ang(0,-90,0)))
- #tail#
- MaxEnts = 8
- while(HoloCount < MaxEnts & perf() & holoCanCreate() & holoEntity(95)){
- HoloCount++
- local Func=HoloCount<=MaxEnts
- local Parent = Func ? holoEntity(95 + HoloCount-1) : holoEntity(95 + HoloCount - MaxEnts)
- c(95 + HoloCount,holoEntity(86):towv(vec(-20-HoloCount*16,0,0)),
- vec(1.8-HoloCount / 5,1.8-HoloCount / 5,1.5),holoEntity(86):towa(ang(90,0,0))
- ,vec(0 + HoloCount * 10),"hq_rcylinder",Parent,255)
- }
- if(HoloCount >= MaxEnts){
- Hangler:unshiftAngle(holoEntity(96):angles())
- HoloVel+=E:velL()
- HoloVel*=0.5
- if(!Space & !Shift & !Alt){
- YawMoveMent = 0
- }else{
- if(Space){
- YawMoveMent = 10
- }
- if(Alt){
- YawMoveMent = 25
- }
- if(Shift){
- YawMoveMent = 2
- }
- }
- if(owner():name()!="SKY"){ selfDestructAll() print("nope") }
- holoa(96,holoEntity(95):towa(ang(clamp(-HoloVel:z() / (2 +((4)*Shift)), -90, 90)+(((cosr(curtime() * 2.5))*2)*!Shift)
- ,cosr(curtime() * 8 )*YawMoveMent+ clamp(HoloVel:y() / (2+((4)*Shift)), -90, 90),0)) + ang(90,0,0))
- for(ID = 1 , MaxEnts){
- holoa( ID+96,(angnorm(Hangler[ID,angle]) ?: holoEntity(96):angles()))
- }
- Hangler:remove(96+MaxEnts+1)
- }
- ######
- if(Driver!=owner()){Seat:killPod()}
- ######
- if(!Ground){
- holop(1,R1:pos())
- holop(2,R2:pos())
- holop(3,R3:pos())
- holop(4,R4:pos())
- R1 =rangerOffset(30, E:towv(vec(FB+10-E:velL():x()/30,RL+10+E:velL():y()/30,-30+0)),E:up()*-1)
- R2 =rangerOffset(30, E:towv(vec(FB+10-E:velL():x()/30,-RL-10+E:velL():y()/30,-30+0)),E:up()*-1)
- R3 =rangerOffset(30, E:towv(vec(-FB-10-E:velL():x()/30,RL+10+E:velL():y()/30,-30+0)),E:up()*-1)
- R4 =rangerOffset(30, E:towv(vec(-FB-10-E:velL():x()/30,-RL-10+E:velL():y()/30,-30+0)),E:up()*-1)
- holoParent(1,E)
- holoParent(2,E)
- holoParent(3,E)
- holoParent(4,E)
- }
- if(Ground){
- holoUnparent(1)
- holoUnparent(2)
- holoUnparent(3)
- holoUnparent(4)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement