Files
wnsrc/lua/arccw/shared/sh_truenames.lua
lifestorm 9c918c46e5 Upload
2024-08-04 23:12:27 +03:00

21 lines
559 B
Lua

--[[
| This file was obtained through the combined efforts
| of Madbluntz & Plymouth Antiquarian Society.
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
| Maloy, DrPepper10 @ RIP, Atle!
|
| Visit for more: https://plymouth.thetwilightzone.ru/
--]]
hook.Add("CreateTeams", "ArcCW_TrueNames", function()
if !ArcCW.ConVars["truenames"]:GetBool() then return end
for _, i in pairs(weapons.GetList()) do
local wpn = weapons.GetStored(i.ClassName)
if wpn.TrueName then
wpn.PrintName = wpn.TrueName
end
end
end)