This commit is contained in:
lifestorm
2024-08-04 23:54:45 +03:00
parent 0e770b2b49
commit df294d03aa
7526 changed files with 4011945 additions and 15 deletions

View File

@@ -0,0 +1,55 @@
--[[
| 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/
--]]
local chatTypeWhitelist = {
["scoreboard"] = true,
["radio"] = true
}
function PLUGIN:GetHookCallPriority(hook)
if (hook == "GetCharacterName" or hook == "PopulateCharacterInfo") then
return 1500
end
end
function PLUGIN:GetCharacterName(client, chatType)
if (!IsValid(client)) then return end
if (LocalPlayer():IsCombine() or chatTypeWhitelist[chatType]) then return end
if (LocalPlayer():GetMoveType() == MOVETYPE_NOCLIP and !LocalPlayer():InVehicle()) then return end
if (ix.faction.Get(LocalPlayer():Team()).recogniseAll) then return end
if (client:Team() == FACTION_OTA) then
return client:GetCharacter():GetClass() == CLASS_EOW and "Elite Overwatch Soldier" or "Transhuman Arm Soldier"
elseif (client:GetNetVar("combineMaskEquipped")) then
return "Sivil Koruma Birimi"
end
end
function PLUGIN:PopulateCharacterInfo(client, character, container)
if (LocalPlayer():IsCombine() or !client:GetNetVar("combineMaskEquipped") and client:Team() != FACTION_OTA) then return end
timer.Simple(0.1, function()
local description = container:GetRow("description")
if (IsValid(description)) then
description:Remove()
end
local geneticDesc = container:GetRow("geneticDesc")
if (IsValid(geneticDesc)) then
local height = character:GetHeight()
geneticDesc:SetText(height .. " TALL")
end
end)
end