Hitmarker: late load support + new skin
This commit is contained in:
		
							parent
							
								
									7ddf0db34e
								
							
						
					
					
						commit
						94f6a42864
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
"Hitmarkers"
 | 
					"Hitmarkers"
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	"0" // default one
 | 
						"0" //default one
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
		"Path"		"unloze/hitmarker/hitmarker_nano"
 | 
							"Path"		"unloze/hitmarker/hitmarker_nano"
 | 
				
			||||||
		"Name"		"Skin 1"
 | 
							"Name"		"Skin 1"
 | 
				
			||||||
@ -10,4 +10,9 @@
 | 
				
			|||||||
		"Path"		"unloze/hitmarker/hitmarker_guc"
 | 
							"Path"		"unloze/hitmarker/hitmarker_guc"
 | 
				
			||||||
		"Name"		"Skin 2"
 | 
							"Name"		"Skin 2"
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
						"2"
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							"Path"		"unloze/hitmarker/hitmarker_es"
 | 
				
			||||||
 | 
							"Name"		"Skin 3"
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
@ -0,0 +1,7 @@
 | 
				
			|||||||
 | 
					"MonitorScreen"
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						"$basetexture" "unloze/hitmarker/hitmarker_es"
 | 
				
			||||||
 | 
						"$alphatest" 1
 | 
				
			||||||
 | 
						"$translucent" 1
 | 
				
			||||||
 | 
						"$vertexalpha" 1
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
							
								
								
									
										
											BIN
										
									
								
								Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vtf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								Hitmarker/content/materials/unloze/hitmarker/hitmarker_es.vtf
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							@ -32,6 +32,8 @@ Handle g_hCookie_HitmarkerSound;
 | 
				
			|||||||
Handle g_hCookie_HitmarkerSoundVolume;
 | 
					Handle g_hCookie_HitmarkerSoundVolume;
 | 
				
			||||||
Handle g_hCookie_HitmarkerSkin;
 | 
					Handle g_hCookie_HitmarkerSkin;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					bool g_bLate;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
// Purpose:
 | 
					// Purpose:
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
@ -43,6 +45,15 @@ public Plugin myinfo =
 | 
				
			|||||||
	version      = "2.0.0",
 | 
						version      = "2.0.0",
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					// Purpose:
 | 
				
			||||||
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
					public APLRes AskPluginLoad2(Handle hMyself, bool bLate, char[] sError, int errorSize)
 | 
				
			||||||
 | 
					{
 | 
				
			||||||
 | 
						g_bLate = bLate;
 | 
				
			||||||
 | 
						return APLRes_Success;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
// Purpose:
 | 
					// Purpose:
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
@ -63,6 +74,15 @@ public void OnPluginStart()
 | 
				
			|||||||
	SetCookieMenuItem(MenuHandler_CookieMenu, 0, "Hitmarker");
 | 
						SetCookieMenuItem(MenuHandler_CookieMenu, 0, "Hitmarker");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	HookEvent("player_hurt", OnClientHurt);
 | 
						HookEvent("player_hurt", OnClientHurt);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						if (g_bLate)
 | 
				
			||||||
 | 
						{
 | 
				
			||||||
 | 
							for (int i = 1; i <= MaxClients; i++)
 | 
				
			||||||
 | 
							{
 | 
				
			||||||
 | 
								if (IsValidClient(i) && AreClientCookiesCached(i))
 | 
				
			||||||
 | 
									OnClientCookiesCached(i);
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
//----------------------------------------------------------------------------------------------------
 | 
					//----------------------------------------------------------------------------------------------------
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user