mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
fix player/weapon color proxies in mdlzips #1308
This commit is contained in:
parent
73e4a6f55d
commit
0cdf58b9ff
@ -598,6 +598,8 @@ function pac.DownloadMDL(url, callback, onfail, ply)
|
||||
for i, data in ipairs(files) do
|
||||
if data.file_name:EndsWith(".vmt") then
|
||||
data.buffer = data.buffer:lower():gsub("\\", "/")
|
||||
:gsub('("?%f[%w_]playercolor%f[^%w_]"?)','PlayerColor')
|
||||
:gsub('("?%f[%w_]playerweaponcolor%f[^%w_]"?)','PlayerWeaponColor')
|
||||
|
||||
if DEBUG_MDL or VERBOSE then
|
||||
print(data.file_name .. ":")
|
||||
|
Loading…
Reference in New Issue
Block a user