add sborka

This commit is contained in:
2026-03-31 10:27:04 +03:00
commit f5e5f56c84
2345 changed files with 382127 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
local sp = game.SinglePlayer()
hook.Add("PlayerSwitchWeapon", "TFA_Bodygroups_PSW", function(ply, oldwep, wep)
if not IsValid(wep) or not wep.IsTFAWeapon then return end
timer.Simple(0, function()
if not IsValid(ply) or ply:GetActiveWeapon() ~= wep then return end
wep:ApplyViewModelModifications()
if sp then
wep:CallOnClient("ApplyViewModelModifications")
end
end)
end)