fix grapple in courses if grapple is disabled + remove unused vars

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-04 19:44:04 +05:00
parent a4200839b6
commit 62e1d5fdb4
4 changed files with 1 additions and 5 deletions

View file

@ -1,4 +1,3 @@
GM_DATATHEFT = 0
DATATHEFT_LOADOUTS = {
{"weapon_357", "weapon_ar2"}
}

View file

@ -1,5 +1,3 @@
GM_DEATHMATCH = 0
if SERVER then
util.AddNetworkString("Deathmatch_Start")
util.AddNetworkString("Deathmatch_Sync")

View file

@ -6,7 +6,7 @@ if CLIENT then
hook.Add("HUDPaint", "grappleicon", function()
local ply = LocalPlayer()
if disable_grapple:GetBool() then return end
if disable_grapple:GetBool() and Course_Name == "" then return end
if ply:GetMantle() ~= 0 or ply:GetClimbing() ~= 0 then return end
if not ply:Alive() or Course_Name ~= "" then return end

View file

@ -1,4 +1,3 @@
GM_INFECTION = 0
Infection_StartTime = 0
Infection_EndTime = 0