Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Exosuit
- @inputs
- @outputs
- @persist FUrg [FOL FNL FOR FNR FPL FPR RFVel LFVel]:vector Len FootRangerLen [RD LR RR RunRangerR RunRangerL]:ranger RangerLen FI FW FP L1 L2 L3 P:entity E:entity
- @persist Total FirstSegmentAdjustAngle Energy Radius Time StepHeight Sprinting Flying Charge_Delay Spc I TotalHolograms
- @model models/hunter/blocks/cube075x075x075.mdl
- if(first())
- {
- runOnTick(1)
- E = entity()
- E:setMass(5000)
- # E:setAlpha(0)
- I = 9
- TotalHolograms = 122
- Radius = 40
- StepHeight = 10+5
- TotalHolograms = 114
- findByClass("prop_vehicle_prisoner_pod")
- findInSphere(E:pos(),200)
- P = findClosest(E:pos())
- P:propFreeze(1)
- P:setPos(E:toWorld(vec(0,0,0)))
- P:setAng(E:toWorld(ang(0,0,0)))
- P:setMass(1)
- L1 = 30
- L2 = 50
- L3 = 55
- Total = L1 + L2 + L3
- FirstSegmentAdjustAngle = 0
- function number cosine (One, Two, Three){
- return acos( (Three^2 + Two^2 - One^2) / (2*Two*Three) )
- }
- function kinemize ([Ent Hip Knee Ankle]:entity, FootPos:vector) {
- #-Hip
- Bearing = -bearing(Hip:pos(), Ent:angles(), FootPos)
- Angle = Ent:toLocalAxis(FootPos - Hip:pos()):toAngle():setRoll(Bearing)
- Offset = Total - abs(min(Hip:pos():distance(FootPos), Total))
- Quat = quat(Angle) * qRotation(vec(0, -Offset + FirstSegmentAdjustAngle, 0))
- holoAng(holoIndex(Hip), Ent:toWorld(slerp(quat(Hip), Quat, 1):toAngle()))
- #-Second
- Distance = min(Knee:pos():distance(FootPos), L2+L3)
- Axis = Hip:toLocalAxis(Knee:pos() - FootPos)
- Atan = atan(-Axis:z(), Axis:x()) + cosine(L3, L2, Distance) + 90
- holoAng(holoIndex(Knee), Hip:toWorld(ang(Atan,0,0)))
- #-Third
- holoAng(holoIndex(Ankle), Knee:toWorld(ang(cosine(Distance, L2, L3), 0, 0)))
- }
- holoCreate(1, E:toWorld(vec(0,30,0)))
- holoCreate(2, holoEntity(1):toWorld(vec(L1, 0, 0)))
- holoCreate(3, holoEntity(2):toWorld(vec(0, 0, -L2)))
- holoCreate(4, holoEntity(3):toWorld(vec(0, 0, L3)))
- holoParent(1, E)
- holoParent(2, 1)
- holoParent(3, 2)
- holoParent(4, 3)
- holoCreate(5, E:toWorld(vec(0,-30,0)))
- holoCreate(6, holoEntity(5):toWorld(vec(L1, 0, 0)))
- holoCreate(7, holoEntity(6):toWorld(vec(0, 0, -L2)))
- holoCreate(8, holoEntity(7):toWorld(vec(0, 0, L3)))
- holoParent(5, E)
- holoParent(6, 5)
- holoParent(7, 6)
- holoParent(8, 7)
- holoCreate(1000)
- holoCreate(2000)
- holoAlpha(1000,0)
- holoAlpha(2000,0)
- for(I = 1,8){
- holoModel(I,"hq_sphere")
- holoScale(I,vec(1.5,1.5,1.5))
- holoAlpha(I,0)
- }
- function vector bezierC(Src:vector,End:vector,CurvePoint:vector,Progress:number)
- {
- return mix(mix(Src,CurvePoint,Progress),mix(CurvePoint,End,Progress),Progress)
- }
- soundPitch("footstepL",80)
- soundPitch("footstepR",80)
- timer("parent",100)
- }
- while(perf() & holoCanCreate() & I < TotalHolograms){
- #LeftLeg
- holoCreate(I,holoEntity(1):toWorld(vec(0,9,0)),vec(0.15,0.15,0.15),holoEntity(1):toWorld(ang(100,180,90)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"models/props_wasteland/laundry_washer001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(9.25,6,-8)),vec(1,0.5,1),holoEntity(1):toWorld(ang(270,180,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"prism")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(-5.76,6,-8)),vec(1,0.5,1.5),holoEntity(1):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(-20.75,6,-8)),vec(1,0.5,1),holoEntity(1):toWorld(ang(270,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"prism")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(-20,6,0)),vec(1.5,0.5,1.5),holoEntity(1):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(-17.03,6,0)),vec(1.5,1,1.5),holoEntity(1):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hexagon")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(-5,6,0)),vec(1.5,1,2),holoEntity(1):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Thigh
- holoCreate(I,holoEntity(1):toWorld(vec(9,6,0)),vec(1.4,0.9,2),holoEntity(1):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1):toWorld(vec(21.6,6,0)),vec(1.35,0.8,1.5),holoEntity(1):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Knee
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,0)),vec(1.35,1.35,0.8),holoEntity(2):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Shin
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,-23)),vec(0.5,0.4,1.3),holoEntity(2):toWorld(ang(180,180,0)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/props_junk/TrashBin01a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,-37)),vec(1.2,1.2,1.5),holoEntity(2):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,-37)),vec(1.2,1.2,1.5),holoEntity(2):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,-10)),vec(1.2,1.2,1.5),holoEntity(2):toWorld(ang(270,0,0)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(1,6,0)),vec(1,0.5,1),holoEntity(2):toWorld(ang(0,0,180)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(11,6,1)),vec(0.5,0.5,0.5),holoEntity(2):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(9,6,-15)),vec(0.3,0.3,3),holoEntity(2):toWorld(ang(7,0,0)),vec(130,130,130))
- holoParent(I,2)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/shiny")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(6.5,6,-35)),vec(0.5,0.5,1.5),holoEntity(2):toWorld(ang(7,0,0)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2):toWorld(vec(0,6,10)),vec(2.5,2.5,2.5),holoEntity(2):toWorld(ang(-90,45,180)),vec(115,115,115))
- holoParent(I,2)
- holoModel(I,"models/gibs/scanner_gib02.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Ankle
- holoCreate(I,holoEntity(3):toWorld(vec(0,6,0)),vec(1.35,1.35,1),holoEntity(3):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Other Shin
- holoCreate(I,holoEntity(3):toWorld(vec(-3,6,15)),vec(0.6,1,1.5),holoEntity(3):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(-2.4,6,25)),vec(0.5,0.9,2),holoEntity(3):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(-1.8,6,35)),vec(0.4,0.6,2),holoEntity(3):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(3,6,15)),vec(0.4,0.4,2),holoEntity(3):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(3,6,35)),vec(0.3,0.3,2),holoEntity(3):toWorld(ang(0,0,0)),vec(130,130,130))
- holoParent(I,3)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/shiny")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(3,10.5,15)),vec(0.3,0.3,1),holoEntity(3):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"models/props_junk/PropaneCanister001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3):toWorld(vec(3,1.5,15)),vec(0.3,0.3,1),holoEntity(3):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,3)
- holoModel(I,"models/props_junk/PropaneCanister001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Foot
- holoCreate(I)
- holoPos(I,holoEntity(4):toWorld(vec(0,6,-5)))
- holoScale(I,vec(1,1,0.8))
- holoColor(I,vec(115,115,115))
- holoParent(I,4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(0,0,0)),vec(0.5,0.5,0.9),holoEntity(36):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(0,0,0)),vec(2,0.6,1.5),holoEntity(36):toWorld(ang(0,0,270)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"prism")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(6,-4.4,-5.17)),vec(0.35,0.2,0.5),holoEntity(36):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(6,-4.4,3.45)),vec(0.35,0.2,0.5),holoEntity(36):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-5,-4.4,3.8)),vec(0.45,0.2,0.5),holoEntity(36):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-5,-4.4,-2)),vec(0.45,0.2,0.5),holoEntity(36):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-4.4,-4.3)),vec(0.5,0.5,0.8),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-4.4,4.3)),vec(0.5,0.5,0.8),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-15.5,-4.4,0)),vec(0.5,0.5,0.8),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,0.15,-4.3)),vec(0.5,0.5,0.5),holoEntity(36):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,0.15,4.3)),vec(0.5,0.5,0.5),holoEntity(36):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-15.5,0.15,0)),vec(0.5,0.5,0.5),holoEntity(36):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-4.4,-4.3)),vec(0.55,0.55,0.5),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-4.4,4.3)),vec(0.55,0.55,0.5),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-15.5,-4.4,0)),vec(0.55,0.55,0.5),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-0.5,-4.3)),vec(0.51,0.51,0.1),holoEntity(36):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-0.5,4.3)),vec(0.51,0.51,0.1),holoEntity(36):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-15.5,-0.5,0)),vec(0.51,0.51,0.1),holoEntity(36):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-7,-4.3)),vec(0.5,0.5,1.3),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(16,-7,4.3)),vec(0.5,0.5,1.3),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36):toWorld(vec(-15.5,-7,0)),vec(0.5,0.5,1.3),holoEntity(36):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #RIGHT LEG
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(0,-9,0)),vec(0.15,0.15,0.15),holoEntity(1 + 4):toWorld(ang(100,180,270)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"models/props_wasteland/laundry_washer001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(9.25,-6,-8)),vec(1,0.5,1),holoEntity(1 + 4):toWorld(ang(270,180,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"prism")
- holoMaterial(10 + 57,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(-5.76,-6,-8)),vec(1,0.5,1.5),holoEntity(1 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(-20.75,-6,-8)),vec(1,0.5,1),holoEntity(1 + 4):toWorld(ang(270,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"prism")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(-20,-6,0)),vec(1.5,0.5,1.5),holoEntity(1 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(13 + 57,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(-17.03,-6,0)),vec(1.5,1,1.5),holoEntity(1 + 4):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hexagon")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(-5,-6,0)),vec(1.5,1,2),holoEntity(1 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Thigh
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(9,-6,0)),vec(1.4,0.9,2),holoEntity(1 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(1 + 4):toWorld(vec(21.6,-6,0)),vec(1.35,0.8,1.5),holoEntity(1 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,1 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Knee
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,0)),vec(1.35,1.35,0.8),holoEntity(2 + 4):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Shin
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,-23)),vec(0.5,0.4,1.3),holoEntity(2 + 4):toWorld(ang(180,180,0)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/props_junk/TrashBin01a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,-37)),vec(1.2,1.2,1.5),holoEntity(2 + 4):toWorld(ang(90,0,0)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,-37)),vec(1.2,1.2,1.5),holoEntity(2 + 4):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,-10)),vec(1.2,1.2,1.5),holoEntity(2 + 4):toWorld(ang(270,0,0)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(22 + 57,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(1,-6,0)),vec(1,0.5,1),holoEntity(2 + 4):toWorld(ang(0,0,180)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/gibs/scanner_gib01.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(11,-6,1)),vec(0.5,0.5,0.5),holoEntity(2 + 4):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(24 + 57,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(9,-6,-15)),vec(0.3,0.3,3),holoEntity(2 + 4):toWorld(ang(7,0,0)),vec(130,130,130))
- holoParent(I,2 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/shiny")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(6.5,-6,-35)),vec(0.5,0.5,1.5),holoEntity(2 + 4):toWorld(ang(7,0,0)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(2 + 4):toWorld(vec(0,-6,10)),vec(2.5,2.5,2.5),holoEntity(2 + 4):toWorld(ang(-90,45,180)),vec(115,115,115))
- holoParent(I,2 + 4)
- holoModel(I,"models/gibs/scanner_gib02.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Ankle
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(0,-6,0)),vec(1.35,1.35,1),holoEntity(3 + 4):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Other Shin
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(-3,-6,15)),vec(0.6,1,1.5),holoEntity(3 + 4):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(-2.4,-6,25)),vec(0.5,0.9,2),holoEntity(3 + 4):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(-1.8,-6,35)),vec(0.4,0.6,2),holoEntity(3 + 4):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cube")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(3,-6,15)),vec(0.4,0.4,2),holoEntity(3 + 4):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(3,-6,35)),vec(0.3,0.3,2),holoEntity(3 + 4):toWorld(ang(0,0,0)),vec(130,130,130))
- holoParent(I,3 + 4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/shiny")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(3,-10.5,15)),vec(0.3,0.3,1),holoEntity(3 + 4):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"models/props_junk/PropaneCanister001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(3 + 4):toWorld(vec(3,-1.5,15)),vec(0.3,0.3,1),holoEntity(3 + 4):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,3 + 4)
- holoModel(I,"models/props_junk/PropaneCanister001a.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- #Foot
- holoCreate(I)
- holoPos(I,holoEntity(4 + 4):toWorld(vec(0,-6,-5)))
- holoScale(I,vec(1,1,0.8))
- holoColor(I,vec(115,115,115))
- holoParent(I,4)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(0,0,0)),vec(0.5,0.5,0.9),holoEntity(36 + 57):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(0,0,0)),vec(2,0.6,1.5),holoEntity(36 + 57):toWorld(ang(0,0,270)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"prism")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(6,-4.4,-5.17)),vec(0.35,0.2,0.5),holoEntity(36 + 57):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(6,-4.4,3.45)),vec(0.35,0.2,0.5),holoEntity(36 + 57):toWorld(ang(0,0,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-5,-4.4,3.8)),vec(0.45,0.2,0.5),holoEntity(36 + 57):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-5,-4.4,-2)),vec(0.45,0.2,0.5),holoEntity(36 + 57):toWorld(ang(180,0,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"models/props_phx/construct/metal_plate1_tri.mdl")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-4.4,-4.3)),vec(0.5,0.5,0.8),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-4.4,4.3)),vec(0.5,0.5,0.8),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-15.5,-4.4,0)),vec(0.5,0.5,0.8),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,0.15,-4.3)),vec(0.5,0.5,0.5),holoEntity(36 + 57):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,0.15,4.3)),vec(0.5,0.5,0.5),holoEntity(36 + 57):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-15.5,0.15,0)),vec(0.5,0.5,0.5),holoEntity(36 + 57):toWorld(ang(90,90,0)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_dome")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-4.4,-4.3)),vec(0.55,0.55,0.5),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-4.4,4.3)),vec(0.55,0.55,0.5),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-15.5,-4.4,0)),vec(0.55,0.55,0.5),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-0.5,-4.3)),vec(0.51,0.51,0.1),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-0.5,4.3)),vec(0.51,0.51,0.1),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-15.5,-0.5,0)),vec(0.51,0.51,0.1),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(175,130,70))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cylinder")
- holoMaterial(I,"models/debug/debugwhite")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-7,-4.3)),vec(0.5,0.5,1.3),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(16,-7,4.3)),vec(0.5,0.5,1.3),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- I++
- holoCreate(I,holoEntity(36 + 57):toWorld(vec(-15.5,-7,0)),vec(0.5,0.5,1.3),holoEntity(36 + 57):toWorld(ang(0,0,90)),vec(115,115,115))
- holoParent(I,36 + 57)
- holoModel(I,"hq_cone")
- holoMaterial(I,"sprops/textures/gear_metal")
- if(I==TotalHolograms){
- runOnTick(0)
- interval(70)
- }
- }
- if(clk("parent")){
- P:parentTo(E)
- E:propFreeze(0)
- stoptimer("parent")
- }
- kinemize(E, holoEntity(1), holoEntity(2), holoEntity(3), holoEntity(1000):toWorld(vec(0,0,5)))
- kinemize(E, holoEntity(5), holoEntity(6), holoEntity(7), holoEntity(2000):toWorld(vec(0,0,5)))
- holoAng(36,ang(0,E:angles():yaw(),90))
- holoAng(36 + 57,ang(0,E:angles():yaw(),90))
- holoPos(1000, RD:hit() ? FPL : (E:toWorld(vec(0.1, 30, -90)))-clamp(E:vel()/5,0,20))
- holoPos(2000, RD:hit() ? FPR : (E:toWorld(vec(0.1, -30, -90)))-clamp(E:vel()/5,0,20))
- Dri = P:driver()
- Active = P:driver():isValid()
- if(Active)
- {
- W = Dri:keyForward()
- A = Dri:keyLeft()
- S = Dri:keyBack()
- D = Dri:keyRight()
- Spc = Dri:keyJump()
- Shift = Dri:keySprint()
- M1 = Dri:keyAttack1()
- M2 = Dri:keyAttack2()
- R = Dri:keyReload()
- Alt = Dri:keyWalk()
- AimPos = rangerOffset(99999999, Dri:shootPos() + Dri:eye() * 50, Dri:eye())
- }
- if(changed(Active)&!Active){M1 = 0, M2 = 0}
- Sprinting = Shift & W & (Energy>=0.15) & RD:hit() & !Alt
- Flying = Spc & (Energy>=1) & !RD:hit()
- rangerFilter(E)
- rangerFilter(P)
- Len = 64*1.5
- RangerLen = 140+(30*Sprinting) - ((Spc & (Energy>=1))*40)
- FootRangerLen = (Len * 2) - 8
- RD = rangerOffset(RangerLen, E:pos(), vec(0, 0, -1))
- #APPLYING FORCE#
- #E:applyForce(((((E:up()*Spc*100 + E:forward()*(50+(Sprinting*150*RD:hit()))*(W-S)) - (E:right()*30*((A-D)*Alt)) - ((E:vel()/3)) + RD:pos() + vec(0,0,90+(20*Sprinting)
- #+sin(clamp(FP, 0, 1) * 180) * FUrg * 2))) - E:pos())*E:mass()*4*(RD:hit()|(Spc*Energy>0)))
- #E:applyForce((((E:toWorldAxis(vec((W-S), (A-D)*Alt, Spc * (Energy>0) * 100):normalized()*150)+(RD:pos()+vec(0,0,90+(20*Sprinting)+sin(clamp(FP, 0, 1) * 180) * FUrg * 2) - E:pos())*vec(1,1,2)) - E:toWorldAxis(E:velL() * vec(1-(0.8*Sprinting), 1.6, 0.4)))*E:mass())*(RD:hit()|Flying))
- Movement = E:toWorldAxis(vec((W-S), (A-D)*Alt, 0):normalized()*150) + E:up()*150*(Spc * (Energy>=1))
- Height = (RD:pos()+vec(0,0,90+(20*Sprinting)+(sin((Time*2*Sprinting))*30)+sin(clamp(FP, 0, 1) * 180) * FUrg * 2) - E:pos()) * vec(1, 1, 3)
- Dampener = E:toWorldAxis(E:velL() * vec(1-(0.8*Sprinting)-(Flying*0.5), 1.6-((Alt&(A|D)&Flying)*0.7), 0.4))
- E:applyForce((((Movement + Height) - Dampener)*E:mass() * (RD:hit() | Flying)))
- E:applyAngForce(((angnorm((ang(0,E:angles():yaw()+((A-D)*!Alt*(RD:hit()|(Spc*Energy>0)))*30,cos(Time)*15*Sprinting)) - E:angles()) - E:angVel()/2)* E:mass()*2))
- #APPLYING FORCE#
- LR = rangerOffset(RangerLen, E:toWorld(vec(0.1, 30, 0)), -E:up())
- RR = rangerOffset(RangerLen, E:toWorld(vec(0.1, -30, 0)), -E:up())
- LFPos = holoEntity(1000):pos()
- RFPos = holoEntity(2000):pos()
- if(RD:hit())
- {
- if(Sprinting){
- Time+=E:vel():length()/18.7
- RunRangerL = rangerOffset(LR:distance()+5 - StepHeight + cos(Time)*StepHeight,E:toWorld(vec(30,30,0)),E:toWorld(ang(90 + sin(Time)*Radius, 0, 0)):forward())
- RunRangerR = rangerOffset(RR:distance()+5 - StepHeight - cos(Time)*StepHeight,E:toWorld(vec(30,-30,0)),E:toWorld(ang(90 - sin(Time)*Radius, 0, 0)):forward())
- FPL = RunRangerL:position()
- FPR = RunRangerR:position()
- } else {
- if(FI)
- {
- #Left foot
- if(FW)
- {
- #Walking
- if(FP >= 0.6)
- {
- #Finished, reset it all
- holoEntity(4):soundPlay("footstepL", 0.6, "npc/dog/dog_servo5.wav")
- #holoEntity(4):soundPlay("footstepL", 0.6, "mvm/giant_pyro/giant_pyro_step_03.wav")
- FPL = FNL
- FP = 0
- FW = 0
- FI = !FI
- }
- else
- {
- #Increment progress, do bezier curves and all
- FP += 0.05 * (FUrg / #[4]#8) + 0.15
- FPL = bezierC(FOL, FNL, mix(FOL, FNL, 0.5) + vec(0, 0, FUrg * #[2]#4), clamp(1 - FP, 0, 1))
- }
- }
- else
- {
- #Check if it needs to step
- local Vel = E:vel():setZ(0)
- local Speed = ((Vel:length() * 1.5) / 15)
- local WR = rangerOffset(FootRangerLen, E:toWorld(vec(0.1, 30, -4)) + clamp(Vel / 1.5, -vec(150), vec(150)), -E:up())
- local NeedsToStep = (FPL:distance(WR:pos()) > (1#[ + Speed*0 / 15]#))
- if(NeedsToStep)
- {
- #Needs to step
- FP = 0
- FW = 1
- FOL = LFPos
- FNL = WR:pos()
- FUrg = clamp(Speed*1.3 + ((E:angVelVector():length()) * 2/150), 6, 35)
- }
- else
- {
- #Doesnt need to step
- FI = !FI
- }
- }
- }
- else
- {
- #Right foot
- if(FW)
- {
- #Walking
- if(FP >= 0.6)
- {
- #Finished, reset it all
- holoEntity(8):soundPlay("footstepR", 0.6, "npc/dog/dog_servo5.wav")
- #holoEntity(8):soundPlay("footstepR", 0.6, "mvm/giant_pyro/giant_pyro_step_03.wav")
- FPR = FNR
- FP = 0
- FW = 0
- FI = !FI
- }
- else
- {
- #Increment progress, do bezier curves and all
- FP += 0.05 * (FUrg / #[4]#8) + 0.15
- FPR = bezierC(FOR, FNR, mix(FOR, FNR, 0.5) + vec(0, 0, FUrg * 4#[2]#), clamp(1 - FP, 0, 1))
- }
- }
- else
- {
- #Check if it needs to step
- local Vel = E:vel():setZ(0)
- local Speed = ((Vel:length() * 1.5) / 15)
- local WR = rangerOffset(FootRangerLen, E:toWorld(vec(0.1, -30, -4)) + clamp(Vel / 1.5, -vec(150), vec(150)), -E:up())
- local NeedsToStep = (FPR:distance(WR:pos()) > (1 #[+ Speed*0 / 15]#))
- if(NeedsToStep)
- {
- #Needs to step
- FP = 0
- FW = 1
- FOR = RFPos
- FNR = WR:pos()
- FUrg = clamp(Speed*1.3 + ((E:angVelVector():length()) * 2/150), 6, 35)
- }
- else
- {
- #Doesnt need to step
- FI = !FI
- }
- }
- }
- }
- if(changed(RunRangerL:hit())&RunRangerL:hit()&Sprinting){
- holoEntity(4):soundPlay("footRunL", 0.6, "npc/dog/dog_footstep_run" + randint(1,8) + ".wav")
- holoEntity(4):soundPlay("footstepL", 0.6, "npc/dog/dog_servo5.wav")
- }
- if(changed(RunRangerR:hit())&RunRangerR:hit()&Sprinting){
- holoEntity(8):soundPlay("footRunR", 0.6, "npc/dog/dog_footstep_run" + randint(1,8) + ".wav")
- holoEntity(8):soundPlay("footstepR", 0.6, "npc/dog/dog_servo5.wav")
- }
- }
- else
- {
- RFVel += $RFPos / 3
- RFVel *= 0.4
- LFVel += $LFPos / 3
- LFVel *= 0.4
- }
- if(changed(RD:hit())|changed(Sprinting)){
- RFVel = vec()
- LFVel = vec()
- FI = 0
- FP = 0
- FW = 0
- FPL = LR:pos()
- FPR = RR:pos()
- FOL = LR:pos()
- FOR = RR:pos()
- FNL = LR:pos()
- FNR = RR:pos()
- if(RD:hit()&!Sprinting){
- soundPlay("impact",0.5,"npc/dog/dog_footstep_run"+randint(1,8)+".wav")
- E:propGravity(0)
- }
- if(!RD:hit()){
- E:propGravity(1)
- }
- }
- if(Sprinting | !RD:hit()){
- holoParent(1000,E)
- holoParent(2000,E)
- }
- if(!Sprinting & RD:hit()){
- holoUnparent(1000)
- holoUnparent(2000)
- }
- if(!Sprinting&!Flying&Energy<50&Charge_Delay == 0){
- Energy+=0.5
- }
- if(Flying){
- Energy-=1
- }
- if(Sprinting){
- Energy-=0.15
- }
- if(changed(Energy<0.5)&Energy<0.5){
- Charge_Delay = 1
- timer("charge_delay",3000)
- E:soundPlay("OUT_OF_ENERGY",0.276,"buttons/blip2.wav")
- }
- if(clk("charge_delay")){
- Charge_Delay = 0
- stoptimer("charge_delay")
- E:soundPlay("Delay_over",1,"buttons/button3.wav")
- }
- if(changed(Energy>49)&Energy>49){
- E:soundPlay("Power_Restored",0.692,"hl1/fvox/bell.wav")
- }
- soundPitch(1,Energy+50)
- if(changed(Spc)&Spc&Energy>0){
- E:soundPlay(1,0,"thrusters/jet03.wav")
- }
- if(changed(Spc)&!Spc|Energy<1){
- soundStop(1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement