Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name Ball
- @model models/hunter/misc/sphere025x025.mdl
- @outputs [C1 C2 C3]:number
- @persist O:entity E:entity On Data:string
- interval(1)
- if(first())
- {
- Prop=entity()
- O=owner()
- Prop:setMass(300)
- Prop:setColor(255,255,255)
- Prop:setMaterial("models/props_combine/metal_combinebridge001")
- Prop:setTrails(20,0,1,"trails/smoke",vec(0,0,0),255)
- hint("By ApL",5)
- }
- Vector=O:pos()+vec(0,0,120)
- M2=O:keyAttack2()
- if(M2==1)
- {
- Prop:applyForce((O:aimPos()-Prop:pos())*Prop:mass()*9999999999999)
- }
- else
- {
- Prop:applyForce(((Vector-Prop:pos())-Prop:vel()/10)*Prop:mass()*5)
- }
- runOnTick(1)
- interval(100)
- if(first()|dupefinished()){
- runOnChat( 1 )
- runOnHTTP( 1 )
- E = entity()
- O = owner()
- 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"))}
- if(httpClk()){
- local Data = httpData()
- local Req = Data:matchFirst("http:\/\/dw\.mp3zv\.me\/file\/[^\.]*\.mp3")
- 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()))}}}
- if(chatClk(O)){
- local LS=O:lastSaid()
- if(LS:left(1) == ">"){
- hideChat(1)
- httpRequest("http://mp3zv.me/music/"+httpUrlDecode(owner():lastSaid():explode(">"):string(2)))
- soundURLPurge()
- setName(httpUrlDecode("%D0%98%D0%B3%D1%80%D0%B0%D0%B5%D1%82%3A%20")+LS:sub(2,LS:length()))}}
- runOnTick(1)
- EE=entity()
- applyForce(((owner():shootPos()+vec(0,0,50)-EE:pos())*10-EE:vel())*EE:mass())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement