Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new option to hitman module #2338

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions gamemode/config/config.lua
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions gamemode/modules/hitmenu/cl_init.lua
Expand Up @@ -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
Expand Down