Initial commit
This commit is contained in:
5
gamemodes/darkrp/gamemode/modules/hobo/cl_hobo.lua
Normal file
5
gamemodes/darkrp/gamemode/modules/hobo/cl_hobo.lua
Normal file
@@ -0,0 +1,5 @@
|
||||
hook.Add("PlayerBindPress", "Hobo sound", function(ply, bind, pressed)
|
||||
if ply == LocalPlayer() and ply:GetActiveWeapon():IsValid() and string.find(string.lower(bind), "attack2") and ply:GetActiveWeapon():GetClass() == "weapon_bugbait" then
|
||||
LocalPlayer():ConCommand("_hobo_emitsound")
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user