Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @name What are you looking at?
- @persist V:vector Time Time2 Ang:angle
- @model models/hunter/blocks/cube1x1x1.mdl
- runOnTick(1)
- entity():setMass(50000)
- entity():setTrails(10,10,10,"trails/electric",vec(255,255,255),255)
- E = entity()
- P = E:elevation(owner():aimPos())
- Y = E:bearing(owner():aimPos())
- Ang = -ang(P,Y,0)*200
- #C = cos(Time)*100
- #S = sin(Time)*100
- Command = owner():lastSaid():explode(" "):string(1)
- if(Command == "!on"){Cost = 1}elseif(Command == "!off"){Cost = 0}
- if(Cost){findExcludePlayer(owner())
- findByClass("player")
- findClipToSphere(owner():pos(),500)
- findClosest(owner():pos())
- Target = findResult(1)}
- if(owner():keyAttack2()){V = owner():aimPos() - entity():pos()}elseif
- (owner():isCrouch())
- {V = owner():pos()-entity():pos()+vec(0,0,35.5)+owner():eye()*75
- applyAngForce(Ang)}
- if(owner():isCrouch()){applyAngForce(Ang)}
- elseif(Target){V = Target:pos()-entity():pos()+vec(0,0,74)}else
- {V = owner():pos() - entity():pos() + vec(0,0,125)}
- if(owner():isCrouch()){applyAngForce(Ang + $Ang*5)}
- entity():applyForce((V + $V*5) * entity():mass())
- #Time += 10
- #Time2 += 0.5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement