Ignore Any Of The Hacking Stuff Thats In Case Someone Back Doors Your Strafe Command And Trys To Control You Through the RunConsoleCommand() Function Backdoor.
Code:
//Auto Strafe Right By: Boxedin123
local function StrafeLOL()
--[[
@NaMe Player blocker
@persist [E, Target]:entity Vec:vector
if(first()){
#Sets the chip invisible.
entity():setColor(0,0,0,0)
runOnTick(1)
runOnChat(1)
#Set the chip to scan for the blockers :D
timer("scan",1)
Vec=vec()
Target=noentity()
}
#Move to the targets view pos
if(Target!=noentity()){
Dest = Target:shootPos()
Vec=(Dest-E:pos())*E:mass()*20
E:applyForce(Vec+$Vec*5)
}
#If the owner says something, is chat.
if(chatClk(owner())){
Exploded = lastSaid():explode(" ")
Said = Exploded[2,string]
#Check to see if the first part is "!target "
if(Exploded[1,string]=="!target"){
hideChat(1)
#Then find the players name the has been typed. It can be only part of the name.
Target = findPlayerByName(Said)
if(Target!=noentity()){hint("Targeting: ",3)}
else{hint("Not a valid target!",3)}
}
}
#Scans for the prop: models/props_c17/FurnitureCouch002a.mdl
if(clk("scan")){
findByModel("models/props_c17/FurnitureCouch002a.mdl")
E=findClosest(entity():pos())
if(E!=noentity()){
hint("By TicoTheTroll! www.myg0*****m!",3)
E:setTrails(130,0,0.2,"trails/lol",vec(255,255,255),255)
E:setMaterial("phoenix/storm/chrome")
}
else{timer("scan",1000)}
}
]]--
RunConsoleCommand("say","/ooc I'M HACKING LOLOOLOLOLO ******S LOLOL. BAN ME I FUCKING DARE YOU.")
end
hook.Add( "CreateMove","StrafeLOLCREATEMOVE",function( ucmd )
StrafeLOL()
end )