Originally Posted by
Forlornblade
I'm not a smart guy but this is the current script I'm using that makes me go into a 360 and then whip it
Code:
function MagnetoThrow()
-- Nice and easy, turn it slow 180
timer.Simple(.02,Turn)
timer.Simple(.04,Turn)
timer.Simple(.06,Turn)
timer.Simple(.08,Turn)
timer.Simple(.10,Turn)
timer.Simple(.12,Turn)
timer.Simple(.14,Turn)
timer.Simple(.16,Turn)
timer.Simple(.18,Turn)
timer.Simple(.20,Turn)
timer.Simple(.22,Turn)
timer.Simple(.24,Turn)
timer.Simple(.26,Turn)
timer.Simple(.28,Turn)
timer.Simple(.30,Turn)
timer.Simple(.32,Turn)
timer.Simple(.34,Turn)
timer.Simple(.36,Turn)
-- OH MY GOD WHIP AROUND 180
timer.Simple(.46,TurnBack)
-- And deliver the final blow by pressing right click
timer.Simple(.7,function() RunConsoleCommand("+attack") end)
timer.Simple(.72,function() RunConsoleCommand("-attack") end)
end
function Turn()
-- Turn function
LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,10,0))
end
function TurnBack()
-- Turn 180 function
LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,180,0))
end
-- Making it a console command
concommand.Add("ThrowMagneto",MagnetoThrow)
I forgot to add that i need it to not turn me just throw it far and kill the target like turning up your wheel speed but with a magneto stick
Here,try this:
Code:
function 180attack()
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.25,Turn)
timer.Simple(.01,TurnBack)
timer.Simple(.7,function() RunConsoleCommand("+attack2") end)
timer.Simple(.72,function() RunConsoleCommand("-attack2") end)
end
function Turn()
LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,10,0))
end
function TurnBack()
LocalPlayer():SetEyeAngles(LocalPlayer():EyeAngles()-Angle(0,360,0))
end
concommand.Add("189att",180attack)
Remove the
Code:
timer.Simple(.7,function() RunConsoleCommand("+attack2") end)
timer.Simple(.72,function() RunConsoleCommand("-attack2") end)
part to make it a 180° turn only. (then change the command name and bind it to another key).
It should be slightly more performant.