Results 1 to 2 of 2
  1. #1
    loli2361's Avatar
    Join Date
    May 2014
    Gender
    male
    Location
    pengis
    Posts
    77
    Reputation
    10
    Thanks
    39
    My Mood
    Yeehaw

    Question A Gmod Sandbox/DarkRP Prop Throw Lua

    No I'm not looking for a propkill for TTT

    One that can launch a prop with a physgun for darkRP or sandbox.

    Links or codes pls.

    I don't feel like using my crappy scroll button.


  2. #2
    FoldedHam's Avatar
    Join Date
    Jun 2013
    Gender
    male
    Location
    fridge
    Posts
    110
    Reputation
    10
    Thanks
    28
    My Mood
    Hot
    Just bind scroll up and scroll down to 2 keys of your choice, or you could be a scrub and use this:
    Code:
    CreateClientConVar("lenny_pkill_speed", 100)
    CreateClientConVar("lenny_pkill_prop", "models/props_c17/furnitureStove001a.mdl")
    CreateClientConVar("lenny_pkill_remover", 0.9)
    CreateClientConVar("lenny_weap_lagcomp", 0.1)
    
    local function propkill()
    	local atttime = GetConVarNumber("lenny_weap_lagcomp")
    	if LocalPlayer():GetActiveWeapon():GetClass() != "weapon_physgun" then
    		local lastwep = LocalPlayer():GetActiveWeapon()
    		RunConsoleCommand("use", "weapon_physgun")
    		atttime = 0.2
    		timer.Simple(atttime+.3, function()
    		RunConsoleCommand("use", lastwep:GetClass())
    		end)
    	end
    	hook.Add( "CreateMove", "PKill", function(cmd)
    		cmd:SetMouseWheel(GetConVarNumber("lenny_pkill_speed"))
    	end)
    	RunConsoleCommand("gm_spawn", GetConVarString("lenny_pkill_prop"))
    	timer.Simple(atttime, function()
    		RunConsoleCommand("+attack")
    	end)
    	
    	timer.Simple(atttime+0.1, function()
    		RunConsoleCommand("-attack")
    	end)
    	timer.Simple(atttime+GetConVarNumber("lenny_pkill_remover"), function()
    		hook.Remove("CreateMove", "PKill")
    		RunConsoleCommand("undo")
    	end )
    end
    concommand.Add("lenny_pkill", propkill)
    
    local toggler = 0
    local function tttpropkill()
    	if toggler == 0 then
    		toggler = 1
    		--[[LocalPlayer():SetEyeAngles(Angle(0,LocalPlayer():GetAimVector():Angle().y+180,0))   --since the magneto stick loses control when we turn too fast, I can't use this :/]]
    		hook.Add("CalcView", "pcam", function(ply, ori, ang, fov, nz, fz)
     			local view = {}
    
    			view.origin = ori
    			view.angles = Angle(0,ang.y+180, 0)
    			view.fov = fov
    
     			return view		
    		end)
    	else
    		hook.Remove("CalcView", "pcam")
    		local preaim = LocalPlayer():GetAimVector():Angle()
    		local newaim = LocalPlayer():GetAimVector():Angle()
    		hook.Add("CreateMove", "180!", function(cmd)
    			newaim = Angle(0,newaim.y+10,0)
    			cmd:SetViewAngles(newaim)
    			if newaim == Angle(0,preaim.y+120,0) then
    				RunConsoleCommand("+attack2")
    				timer.Simple(.1, function()
    					RunConsoleCommand("-attack2")
    				end)
    			end
    			if newaim == Angle(0,preaim.y+180,0) then
    				hook.Remove("CreateMove", "180!")
    			end
    		end)
    		toggler = 0
    	end
    end
    
    concommand.Add("lenny_tttpkill", tttpropkill)
    
    MsgC(Color(0,255,0), "\nLenny PKill initialized!\n")
    Credits go to Lenny.

Similar Threads

  1. DarkRP Prop Glitch through wall script
    By Physiqs in forum Garry's Mod Discussions & Help
    Replies: 7
    Last Post: 01-11-2014, 09:16 AM
  2. Gmod DarkRP lua ATM Guesser
    By Wizid in forum Garry's Mod Discussions & Help
    Replies: 16
    Last Post: 10-27-2013, 07:49 AM
  3. Gmod 13 darkrp money or printer hack
    By furyman2 in forum Garry's Mod Discussions & Help
    Replies: 1
    Last Post: 03-08-2013, 01:14 PM
  4. Tweaking Gmod so I can have props
    By ZeroTroubles in forum General Hacking
    Replies: 7
    Last Post: 11-03-2010, 09:06 AM
  5. [HELP] Tweaking GMOD so I can have props
    By ZeroTroubles in forum Suggestions, Requests & General Help
    Replies: 2
    Last Post: 11-02-2010, 08:48 AM

Tags for this Thread