mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 10:28:26 +00:00
remove Shavit_Core_CookiesRetrieved
This commit is contained in:
parent
fb5c247953
commit
1230bf9266
@ -1358,15 +1358,6 @@ native float Shavit_GetClientTimescale(int client);
|
||||
*/
|
||||
native void Shavit_UpdateLaggedMovement(int client, bool user_timescale=true);
|
||||
|
||||
/**
|
||||
* Check if there are client cookies to retrieve. **NATIVE CURRENTLY USED ONLY FOR HUD**.
|
||||
*
|
||||
* @param client Client index
|
||||
*
|
||||
* @return True if there are client cookies retrieved and set to client.
|
||||
*/
|
||||
native bool Shavit_Core_CookiesRetrieved(int client);
|
||||
|
||||
/**
|
||||
* When using the timer's timescale_tas stuff, this returns whether the current frame should be recorded by replay plugins.
|
||||
*
|
||||
@ -1449,7 +1440,6 @@ public void __pl_shavit_core_SetNTVOptional()
|
||||
MarkNativeAsOptional("Shavit_SetStyleSettingFloat");
|
||||
MarkNativeAsOptional("Shavit_SetStyleSettingBool");
|
||||
MarkNativeAsOptional("Shavit_SetStyleSettingInt");
|
||||
MarkNativeAsOptional("Shavit_Core_CookiesRetrieved");
|
||||
MarkNativeAsOptional("Shavit_ShouldProcessFrame");
|
||||
MarkNativeAsOptional("Shavit_GotoEnd");
|
||||
MarkNativeAsOptional("Shavit_UpdateLaggedMovement");
|
||||
|
||||
@ -216,7 +216,6 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
|
||||
CreateNative("Shavit_GetMaxVelocity", Native_GetMaxVelocity);
|
||||
CreateNative("Shavit_SetAvgVelocity", Native_SetAvgVelocity);
|
||||
CreateNative("Shavit_SetMaxVelocity", Native_SetMaxVelocity);
|
||||
CreateNative("Shavit_Core_CookiesRetrieved", Native_Core_CookiesRetrieved);
|
||||
CreateNative("Shavit_ShouldProcessFrame", Native_ShouldProcessFrame);
|
||||
CreateNative("Shavit_GotoEnd", Native_GotoEnd);
|
||||
CreateNative("Shavit_UpdateLaggedMovement", Native_UpdateLaggedMovement);
|
||||
@ -2278,11 +2277,6 @@ public any Native_SetMaxVelocity(Handle plugin, int numParams)
|
||||
return 1;
|
||||
}
|
||||
|
||||
public any Native_Core_CookiesRetrieved(Handle plugin, int numParams)
|
||||
{
|
||||
return gB_CookiesRetrieved[GetNativeCell(1)];
|
||||
}
|
||||
|
||||
public any Native_ShouldProcessFrame(Handle plugin, int numParams)
|
||||
{
|
||||
int client = GetNativeCell(1);
|
||||
|
||||
@ -1206,7 +1206,7 @@ int AddHUDToBuffer_Source2013(int client, huddata_t data, char[] buffer, int max
|
||||
int iLines = 0;
|
||||
char sLine[128];
|
||||
|
||||
if (client == data.iTarget && !Shavit_Core_CookiesRetrieved(client))
|
||||
if (client == data.iTarget && !AreClientCookiesCached(client))
|
||||
{
|
||||
FormatEx(sLine, sizeof(sLine), "%T", "TimerLoading", client);
|
||||
AddHUDLine(buffer, maxlen, sLine, iLines);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user