Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. @name Ball
  2. @model models/hunter/misc/sphere025x025.mdl
  3. @outputs [C1 C2 C3]:number
  4. @persist O:entity E:entity On Data:string
  5. interval(1)
  6. if(first())
  7. {
  8. Prop=entity()
  9. O=owner()
  10. Prop:setMass(300)
  11. Prop:setColor(255,255,255)
  12. Prop:setMaterial("models/props_combine/metal_combinebridge001")
  13. Prop:setTrails(20,0,1,"trails/smoke",vec(0,0,0),255)
  14. hint("By ApL",5)
  15. }
  16. Vector=O:pos()+vec(0,0,120)
  17.  
  18. M2=O:keyAttack2()
  19.  
  20. if(M2==1)
  21. {
  22. Prop:applyForce((O:aimPos()-Prop:pos())*Prop:mass()*9999999999999)
  23. }
  24. else
  25. {
  26. Prop:applyForce(((Vector-Prop:pos())-Prop:vel()/10)*Prop:mass()*5)
  27. }
  28.  
  29. runOnTick(1)
  30. interval(100)
  31. if(first()|dupefinished()){
  32. runOnChat( 1 )
  33. runOnHTTP( 1 )
  34. E = entity()
  35. O = owner()
  36. setName(httpUrlDecode("%D0%92%D0%B2%D0%B5%D0%B4%D0%B8%20%D0%BC%D1%83%D0%B7%D1%8B%D0%BA%D1%83"))}
  37. if(httpClk()){
  38. local Data = httpData()
  39. local Req = Data:matchFirst("http:\/\/dw\.mp3zv\.me\/file\/[^\.]*\.mp3")
  40. if(changed(Data)){if(Data:find("http://dw.mp3zv.me/file/")){soundURLload("lulz",Req,1,0,E) On=1 printColor(vec(0,153,255), "Found - "+O:lastSaid():sub(2,O:lastSaid():length()))}else{printColor(vec(255,100,100), "Not found - "+O:lastSaid():sub(2,O:lastSaid():length()))}}}
  41. if(chatClk(O)){
  42. local LS=O:lastSaid()
  43. if(LS:left(1) == ">"){
  44. hideChat(1)
  45. httpRequest("http://mp3zv.me/music/"+httpUrlDecode(owner():lastSaid():explode(">"):string(2)))
  46. soundURLPurge()
  47. setName(httpUrlDecode("%D0%98%D0%B3%D1%80%D0%B0%D0%B5%D1%82%3A%20")+LS:sub(2,LS:length()))}}
  48.  
  49. runOnTick(1)
  50. EE=entity()
  51. applyForce(((owner():shootPos()+vec(0,0,50)-EE:pos())*10-EE:vel())*EE:mass())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement