Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. @name What are you looking at?
  2. @persist V:vector Time Time2 Ang:angle
  3. @model models/hunter/blocks/cube1x1x1.mdl
  4. runOnTick(1)
  5. entity():setMass(50000)
  6. entity():setTrails(10,10,10,"trails/electric",vec(255,255,255),255)
  7. E = entity()
  8. P = E:elevation(owner():aimPos())
  9. Y = E:bearing(owner():aimPos())
  10. Ang = -ang(P,Y,0)*200
  11.  
  12. #C = cos(Time)*100
  13. #S = sin(Time)*100
  14. Command = owner():lastSaid():explode(" "):string(1)
  15. if(Command == "!on"){Cost = 1}elseif(Command == "!off"){Cost = 0}
  16. if(Cost){findExcludePlayer(owner())
  17. findByClass("player")
  18. findClipToSphere(owner():pos(),500)
  19. findClosest(owner():pos())
  20. Target = findResult(1)}
  21. if(owner():keyAttack2()){V = owner():aimPos() - entity():pos()}elseif
  22. (owner():isCrouch())
  23. {V = owner():pos()-entity():pos()+vec(0,0,35.5)+owner():eye()*75
  24. applyAngForce(Ang)}
  25. if(owner():isCrouch()){applyAngForce(Ang)}
  26.  
  27. elseif(Target){V = Target:pos()-entity():pos()+vec(0,0,74)}else
  28. {V = owner():pos() - entity():pos() + vec(0,0,125)}
  29. if(owner():isCrouch()){applyAngForce(Ang + $Ang*5)}
  30.  
  31. entity():applyForce((V + $V*5) * entity():mass())
  32. #Time += 10
  33. #Time2 += 0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement