Results 1 to 6 of 6
  1. #1
    dj46563's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hawaii, Jelly?
    Posts
    1,028
    Reputation
    123
    Thanks
    490
    My Mood
    Relaxed

    [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)

  2. #2
    Gray's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Sweden
    Posts
    13,552
    Reputation
    2516
    Thanks
    10,624
    If you bothered to search you'd see that there has been a released one a while back that works just fine.

  3. The Following User Says Thank You to Gray For This Useful Post:

    dj46563 (04-11-2013)

  4. #3
    dj46563's Avatar
    Join Date
    Dec 2008
    Gender
    male
    Location
    Hawaii, Jelly?
    Posts
    1,028
    Reputation
    123
    Thanks
    490
    My Mood
    Relaxed
    Quote Originally Posted by Antipathy 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 Antipathy 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.

  5. #4
    Gray's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Location
    Sweden
    Posts
    13,552
    Reputation
    2516
    Thanks
    10,624
    You're welcome, now you can feel satisfaction towards yourself.

  6. #5
    DayZBypasser's Avatar
    Join Date
    Jan 2013
    Gender
    male
    Posts
    32
    Reputation
    10
    Thanks
    3
    My Mood
    Amazed
    That script with the ttt propkill doesnt work for me? Can someone maybe help me out?

  7. #6
    SuckMyPinga's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    Mind sharing where you've found yours? All I can find are old scripts. Maybe I'm not using the correct keywords?

Similar Threads

  1. Need Help Making COD4 Trouble In Terrorist Town Mod (TTT)
    By ericf042 in forum Call of Duty Modern Warfare Help
    Replies: 3
    Last Post: 09-04-2012, 12:24 PM
  2. [Request] Some help with CMD & .lua files.
    By DigitalMind in forum Other Programming
    Replies: 0
    Last Post: 03-07-2012, 04:22 PM
  3. [Help Request] Ajuda / Help
    By - Battery' in forum Combat Arms BR Coding Help
    Replies: 3
    Last Post: 04-22-2011, 07:15 PM
  4. [Help Request] Help my!
    By Windowns7 in forum Combat Arms BR Coding Help
    Replies: 2
    Last Post: 04-18-2011, 01:41 PM