Advertisement
Guest User

Untitled

a guest
Nov 27th, 2015
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. Physgun = owner():weapon():type()
  2. == "weapon_physgun" & owner():keyAttack1()
  3. LPrev = (ChangedSpeed< -(CollisionSpeed)) & !Physgun
  4. HPrev = (ChangedSpeed< -(CollisionSpeed*2)) & !Physgun
  5.  
  6. if(changed(LPrev) & LPrev)
  7. {E:soundPlay(2,1,"ATV_impact_medium")}
  8.  
  9. if(changed(HPrev) & HPrev)
  10. {
  11. E:soundPlay(5,0,"/vehicles/digger_stopengine1.wav")
  12. E:soundPlay(6,0,"ATV_impact_heavy")
  13. RotorProblem = 3
  14. Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
  15.  
  16. }
  17.  
  18. if(MRLinked & changed(->MainRotor) & !->MainRotor)
  19. {
  20. holoEntity(3):soundPlay(7,0,"Breakable.Metal")
  21. Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
  22. RotorDeath = 1
  23. RotorProblem = 6
  24.  
  25. for(D = 1,MainRotorBlades)
  26. {
  27. holoVisible(3,players(),0)
  28. holoVisible(6,players(),0)
  29. holoVisible(D + 6,players(),0)
  30. holoVisible(D + 6 + TailRotorBlades + MainRotorBlades,players(),0)
  31. }
  32. }
  33. if(TRLinked & changed(->TailRotor) & !->TailRotor)
  34. {
  35. holoEntity(4):soundPlay(8,0,"Breakable.Metal")
  36. RotorDeath = 1
  37. Seat:soundPlay(8,0,"/npc/attack_helicopter/aheli_crash_alert2.wav")
  38.  
  39. for(G = 1,TailRotorBlades)
  40. {
  41. holoVisible(4,players(),0)
  42. holoVisible(5,players(),0)
  43. holoVisible(G + 6 + MainRotorBlades,players(),0)
  44. }
  45. }
  46.  
  47. }
  48.  
  49. #Rotor Survivability#
  50.  
  51. PilotLink = array(Active,Seat,Timer / 1.735 + P1 - P2,Eye,EAng - Eye + ang(0,90,0),AimingMethod)
  52.  
  53.  
  54. soundPitch(1,Go*SoundPitchMult/1)
  55. soundPitch(4,Go*SoundPitchMult/1)
  56.  
  57. holoAng(3,E:toWorld(MainRotorAng):rotateAroundAxis((vec(0,0,1):rotate(MainRotorAng)):rotate(E:angles()) , Mod))
  58. holoAng(4,E:toWorld(TailRotorAng):rotateAroundAxis((vec(0,0,1):rotate(TailRotorAng)):rotate(E:angles()) ,-Mod))
  59.  
  60. holoAlpha(5,Throttle*7.73)
  61. holoAlpha(6,Throttle*7.73)
  62.  
  63.  
  64. #Condition 3 End
  65. Valid = ->MainRotor
  66.  
  67. if(dupefinished())
  68. {reset()}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement