Merge pull request #8 from edshot99/master

Check for .vmt icon files
This commit is contained in:
StyledStrike 2024-03-13 22:33:03 -03:00 committed by GitHub
commit ff8796c94b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,6 +9,10 @@ function CLoadout:GetWeaponIcon( class )
if file.Exists( "materials/vgui/entities/" .. class .. ".vtf", "GAME" ) then
return "vgui/entities/" .. class
end
if file.Exists( "materials/vgui/entities/" .. class .. ".vmt", "GAME" ) then
return "vgui/entities/" .. class
end
end
function CLoadout:UpdateLists()