diff --git a/Hitmarker/configs/Hitmarkers.cfg b/Hitmarker/configs/Hitmarkers.cfg index 975715c2..607692c5 100644 --- a/Hitmarker/configs/Hitmarkers.cfg +++ b/Hitmarker/configs/Hitmarkers.cfg @@ -1,6 +1,6 @@ "Hitmarkers" { - "0" // default one + "0" //default one { "Path" "unloze/hitmarker/hitmarker_nano" "Name" "Skin 1" @@ -10,4 +10,9 @@ "Path" "unloze/hitmarker/hitmarker_guc" "Name" "Skin 2" } + "2" + { + "Path" "unloze/hitmarker/hitmarker_es" + "Name" "Skin 3" + } } diff --git a/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vmt b/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vmt new file mode 100644 index 00000000..b5ece8ba --- /dev/null +++ b/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vmt @@ -0,0 +1,7 @@ +"MonitorScreen" +{ + "$basetexture" "unloze/hitmarker/hitmarker_es" + "$alphatest" 1 + "$translucent" 1 + "$vertexalpha" 1 +} \ No newline at end of file diff --git a/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vtf b/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vtf new file mode 100644 index 00000000..d13dd419 Binary files /dev/null and b/Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vtf differ diff --git a/Hitmarker/scripting/Hitmarker.sp b/Hitmarker/scripting/Hitmarker.sp index c519d809..d1219aa6 100644 --- a/Hitmarker/scripting/Hitmarker.sp +++ b/Hitmarker/scripting/Hitmarker.sp @@ -32,6 +32,8 @@ Handle g_hCookie_HitmarkerSound; Handle g_hCookie_HitmarkerSoundVolume; Handle g_hCookie_HitmarkerSkin; +bool g_bLate; + //---------------------------------------------------------------------------------------------------- // Purpose: //---------------------------------------------------------------------------------------------------- @@ -43,6 +45,15 @@ public Plugin myinfo = version = "2.0.0", }; +//---------------------------------------------------------------------------------------------------- +// Purpose: +//---------------------------------------------------------------------------------------------------- +public APLRes AskPluginLoad2(Handle hMyself, bool bLate, char[] sError, int errorSize) +{ + g_bLate = bLate; + return APLRes_Success; +} + //---------------------------------------------------------------------------------------------------- // Purpose: //---------------------------------------------------------------------------------------------------- @@ -63,6 +74,15 @@ public void OnPluginStart() SetCookieMenuItem(MenuHandler_CookieMenu, 0, "Hitmarker"); HookEvent("player_hurt", OnClientHurt); + + if (g_bLate) + { + for (int i = 1; i <= MaxClients; i++) + { + if (IsValidClient(i) && AreClientCookiesCached(i)) + OnClientCookiesCached(i); + } + } } //----------------------------------------------------------------------------------------------------