[Help]TTT Propkilling Lua

Posts 1–6 of 6 · Page 1 of 1
[Help]TTT Propkilling Lua
I have been looking at inkbot and I have been trying to isolate the TTT propkill section of it but I am having no luck, if anyone could help me out that would be great.

Code:
concommand.Add("+Propkill", function()
propkill1 = 1
        end)
 
concommand.Add("-Propkill", function()
propkill1 = 0
        end)
 
function OpenS()
orA = LocalPlayer():EyeAngles() - Angle( 0 , 180 , 0 )
Test = LocalPlayer():EyeAngles()
        end
hook.Add("Think","Tesasd",OpenS)
 
function ReCalc(cmd)
if propkill1 == 1 then
orA.p = math.Clamp(orA.p + (cmd:GetMouseY() * 0.022), -89, 89)
orA.y = math.NormalizeAngle(orA.y + (cmd:GetMouseX() * 0.022 * -1))
orA.r = 0
 
local Forward = ((Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):GetNormal():Angle() + (cmd:GetViewAngles() - orA)):Forward() * Vector(cmd:GetForwardMove(), cmd:GetSideMove(), 0):Length())
cmd:SetForwardMove(Forward.x)
cmd:SetSideMove(Forward.y)
 
        end
 end
hook.Add("CreateMove", "StoredAngleRecalc", ReCalc)
 
 
function Calc(ply, pos, angles, fov)
local view = {}
view.origin = pos
if GetViewEntity() == LocalPlayer() and propkill1 == 1 then
view.angles = orA
        end
view.fov = fov
return view
        end
hook.Add("CalcView", "NegTin", Calc)
 
 
function Throw()
if LocalPlayer():GetCurrentCommand():KeyDown(IN_SPEED) and propkill1 == 1 then
 
LocalPlayer():SetEyeAngles( Angle ( orA.p , orA.y , orA.r ) )
 
propkill1 = 0
 
                end
        end
hook.Add("Think","ThrowProp1",Throw)
If you bothered to search you'd see that there has been a released one a while back that works just fine.
Quote Originally Posted by Gray View Post
If you bothered to search you'd see that there has been a released one a while back that works just fine.
But I did bother to search for this, and I did not see it. :S

---------- Post added at 11:34 AM ---------- Previous post was at 11:25 AM ----------

Quote Originally Posted by Gray View Post
If you bothered to search you'd see that there has been a released one a while back that works just fine.
Hah, nvm, I looked a bit more with different search keywords and found a standalone TTT propkilling lua, thank you for pushing me to research more.
You're welcome, now you can feel satisfaction towards yourself.
That script with the ttt propkill doesnt work for me? Can someone maybe help me out?
Mind sharing where you've found yours? All I can find are old scripts. Maybe I'm not using the correct keywords?
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us