Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Physgun = owner():weapon():type()
- == "weapon_physgun" & owner():keyAttack1()
- LPrev = (ChangedSpeed< -(CollisionSpeed)) & !Physgun
- HPrev = (ChangedSpeed< -(CollisionSpeed*2)) & !Physgun
- if(changed(LPrev) & LPrev)
- {E:soundPlay(2,1,"ATV_impact_medium")}
- if(changed(HPrev) & HPrev)
- {
- E:soundPlay(5,0,"/vehicles/digger_stopengine1.wav")
- E:soundPlay(6,0,"ATV_impact_heavy")
- RotorProblem = 3
- Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
- }
- if(MRLinked & changed(->MainRotor) & !->MainRotor)
- {
- holoEntity(3):soundPlay(7,0,"Breakable.Metal")
- Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
- RotorDeath = 1
- RotorProblem = 6
- for(D = 1,MainRotorBlades)
- {
- holoVisible(3,players(),0)
- holoVisible(6,players(),0)
- holoVisible(D + 6,players(),0)
- holoVisible(D + 6 + TailRotorBlades + MainRotorBlades,players(),0)
- }
- }
- if(TRLinked & changed(->TailRotor) & !->TailRotor)
- {
- holoEntity(4):soundPlay(8,0,"Breakable.Metal")
- RotorDeath = 1
- Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
- for(G = 1,TailRotorBlades)
- {
- holoVisible(4,players(),0)
- holoVisible(5,players(),0)
- holoVisible(G + 6 + MainRotorBlades,players(),0)
- }
- }
- }
- #Rotor Survivability#
- PilotLink = array(Active,Seat,Timer / 1.735 + P1 - P2,Eye,EAng - Eye + ang(0,90,0),AimingMethod)
- soundPitch(1,Go*SoundPitchMult/1)
- soundPitch(4,Go*SoundPitchMult/1)
- holoAng(3,E:toWorld(MainRotorAng):rotateAroundAxis((vec(0,0,1):rotate(MainRotorAng)):rotate(E:angles()) , Mod))
- holoAng(4,E:toWorld(TailRotorAng):rotateAroundAxis((vec(0,0,1):rotate(TailRotorAng)):rotate(E:angles()) ,-Mod))
- holoAlpha(5,Throttle*7.73)
- holoAlpha(6,Throttle*7.73)
- #Condition 3 End
- Valid = ->MainRotor
- if(dupefinished())
- {reset()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement