From bdb9c225075d98687db51896ec2f9eed56867577 Mon Sep 17 00:00:00 2001 From: icedream Date: Sat, 21 Dec 2013 10:06:05 +0100 Subject: [PATCH] Make error message for missing sound file red in the debug console. --- lua/weapons/disguiser/sh_init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/weapons/disguiser/sh_init.lua b/lua/weapons/disguiser/sh_init.lua index 6342940..552fffa 100644 --- a/lua/weapons/disguiser/sh_init.lua +++ b/lua/weapons/disguiser/sh_init.lua @@ -96,7 +96,7 @@ for soundName, soundPaths in pairs(SWEP.Sounds) do resource.AddFile("sound/" .. soundPath) end if !file.Exists("sound/" .. soundPath, "GAME") then - print("[Disguiser] WARNING: Sound not found: " .. soundPath) + MsgC(Color(255, 0, 0), "[Disguiser] WARNING: Sound not found: " .. soundPath) end util.PrecacheSound(soundPath) end