Залив
This commit is contained in:
11
lua/entities/mg_arrow_emp/cl_init.lua
Normal file
11
lua/entities/mg_arrow_emp/cl_init.lua
Normal file
@@ -0,0 +1,11 @@
|
||||
include("shared.lua")
|
||||
|
||||
killicon.Add("mg_arrow_emp", "VGUI/entities/mg_crossbow", Color(255, 0, 0, 255))
|
||||
|
||||
hook.Add("HUDShouldDraw", "MW19_HUDShouldDraw_EMP", function(name)
|
||||
if (IsValid(GetViewEntity())) then
|
||||
if (CurTime() < GetViewEntity():GetNWFloat("MW19_EMPEffect", CurTime())) then
|
||||
return name != "CHudAmmo" && name != "CHudBattery" && name != "CHudHealth" && name != "CHudSecondaryAmmo"
|
||||
end
|
||||
end
|
||||
end)
|
||||
Reference in New Issue
Block a user