Files
2026-03-31 10:27:04 +03:00

28 lines
615 B
Lua

local WEAPON = FindMetaTable("Weapon")
if WEAPON then
function WEAPON:IsTFA() -- please do not use, just check for IsTFAWeapon directly
return self.IsTFAWeapon
end
else
print("[TFA Base] Can't find weapon metatable!")
end
local PLAYER = FindMetaTable("Player")
if PLAYER then
function PLAYER:TFA_ZoomKeyDown()
if not IsValid(self) then return false end
return self:GetNW2Bool("TFA_ZoomKeyDown", false)
end
function PLAYER:TFA_SetZoomKeyDown(isdown)
if not IsValid(self) then return end
self:SetNW2Bool("TFA_ZoomKeyDown", isdown)
end
else
print("[TFA Base] Can't find player metatable!")
end