diff --git a/lua/autorun/client/guigui_handcuffs.lua b/lua/autorun/client/guigui_handcuffs.lua index 27d2de1..5638955 100644 --- a/lua/autorun/client/guigui_handcuffs.lua +++ b/lua/autorun/client/guigui_handcuffs.lua @@ -1,6 +1,7 @@ CreateConVar("Handcuffs_ShowHeadText", "0", {FCVAR_ARCHIVE, FCVAR_SERVER_CAN_EXECUTE, FCVAR_REPLICATED }, "Show head text") -surface.CreateFont("HandcuffsHUD", { font = "Arial", +surface.CreateFont("HandcuffsHUD", { + font = "Arial", size = 50, antialias = true, weight = 750, diff --git a/lua/weapons/guigui_handcuffs.lua b/lua/weapons/guigui_handcuffs.lua index 68eedd8..2c342de 100644 --- a/lua/weapons/guigui_handcuffs.lua +++ b/lua/weapons/guigui_handcuffs.lua @@ -42,7 +42,7 @@ function SWEP:PrimaryAttack() local wep = ent:GetActiveWeapon():GetClass() if wep == "guigui_handcuffed" then return false end if guigui_handcuff_wep(wep) then - timer.Simple(0.4, function() PrintMessage(4, math.random(0,24).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(25,79).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(50,74).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(75,99).." %") end) end) end) end) + ply:PrintMessage(4, "...") timer.Simple(2, function() if ply:GetPos():DistToSqr(ent:GetPos())<2500 and ply:GetActiveWeapon():GetClass() == "guigui_handcuffs" then Handcuff(ent, ply) end end) end end @@ -57,7 +57,7 @@ function SWEP:SecondaryAttack() if ent:IsValid() and ent:IsPlayer() then local wep = ent:GetActiveWeapon():GetClass() if wep == "guigui_handcuffed" then - timer.Simple(0.4, function() PrintMessage(4, math.random(0,24).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(25,79).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(50,74).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(75,99).." %") end) end) end) end) + ply:PrintMessage(4, "...") timer.Simple(2, function() if ply:GetPos():DistToSqr(ent:GetPos())<2500 and ply:GetActiveWeapon():GetClass() == "guigui_handcuffs" then RemoveHandcuff(ent, ply) end end) end end diff --git a/lua/weapons/guigui_handcuffs_lockpick.lua b/lua/weapons/guigui_handcuffs_lockpick.lua index 20808bb..b38ce39 100644 --- a/lua/weapons/guigui_handcuffs_lockpick.lua +++ b/lua/weapons/guigui_handcuffs_lockpick.lua @@ -42,8 +42,8 @@ function SWEP:PrimaryAttack() if ent:IsValid() and ent:IsPlayer() then local wep = ent:GetActiveWeapon():GetClass() if wep == "guigui_handcuffed" then - timer.Simple(0.4, function() PrintMessage(4, math.random(0,24).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(25,79).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(50,74).." %") timer.Simple(0.4, function() PrintMessage(4, math.random(75,99).." %") end) end) end) end) - timer.Simple( 2, function() if ply:GetPos():DistToSqr(ent:GetPos())<2500 then RemoveHandcuff(ent, ply, 1) ply:StripWeapon("guigui_handcuffs_lockpick") end end ) + ply:PrintMessage(4, "...") + timer.Simple(2, function() if ply:GetPos():DistToSqr(ent:GetPos())<2500 then RemoveHandcuff(ent, ply, 1) ply:StripWeapon("guigui_handcuffs_lockpick") end end ) end end end