mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 13:53:45 +03:00
Upload
This commit is contained in:
21
lua/arccw/shared/sh_truenames.lua
Normal file
21
lua/arccw/shared/sh_truenames.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
--[[
|
||||
| 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)
|
||||
Reference in New Issue
Block a user