From 0220769ad3a5fcbfeed9640067a21007159bf17a Mon Sep 17 00:00:00 2001 From: Mad Kernel Date: Tue, 23 Feb 2016 02:18:23 +0200 Subject: [PATCH] Add new option to hitman module --- gamemode/config/config.lua | 2 ++ gamemode/modules/hitmenu/cl_init.lua | 1 + 2 files changed, 3 insertions(+) diff --git a/gamemode/config/config.lua b/gamemode/config/config.lua index 49f9a4412..68a170a5c 100644 --- a/gamemode/config/config.lua +++ b/gamemode/config/config.lua @@ -490,6 +490,8 @@ GM.Config.hitmanText = "Hit\naccepted!" GM.Config.hitTargetCooldown = 120 -- How long a customer has to wait to be able to buy another hit (from the moment the hit is accepted). GM.Config.hitCustomerCooldown = 240 +-- Show text above a hitman when he's got a hit. +GM.Config.showHitMessage = true --[[--------------------------------------------------------------------------- Hungermod module diff --git a/gamemode/modules/hitmenu/cl_init.lua b/gamemode/modules/hitmenu/cl_init.lua index bf5553adc..a3fd68df7 100644 --- a/gamemode/modules/hitmenu/cl_init.lua +++ b/gamemode/modules/hitmenu/cl_init.lua @@ -93,6 +93,7 @@ hook.Add("InitPostEntity", "HitmanMenu", function() end) function postPlayerDraw(ply) + if not GAMEMODE.Config.showHitMessage then return end if not activeHitmen[ply] then return end local pos, ang = ply:GetShootPos(), ply:EyeAngles() ang.p = 0