mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-07 18:38:26 +00:00
commit
fda9d81bc7
@ -23,7 +23,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define _shavit_included
|
#define _shavit_included
|
||||||
|
|
||||||
#define SHAVIT_VERSION "2.1.0"
|
#define SHAVIT_VERSION "2.1.1"
|
||||||
#define STYLE_LIMIT 256
|
#define STYLE_LIMIT 256
|
||||||
#define MAX_ZONES 64
|
#define MAX_ZONES 64
|
||||||
|
|
||||||
|
|||||||
@ -1673,9 +1673,6 @@ void SQL_DBConnect()
|
|||||||
// support unicode names
|
// support unicode names
|
||||||
gH_SQL.SetCharset("utf8");
|
gH_SQL.SetCharset("utf8");
|
||||||
|
|
||||||
Call_StartForward(gH_Forwards_OnDatabaseLoaded);
|
|
||||||
Call_Finish();
|
|
||||||
|
|
||||||
char[] sDriver = new char[8];
|
char[] sDriver = new char[8];
|
||||||
gH_SQL.Driver.GetIdentifier(sDriver, 8);
|
gH_SQL.Driver.GetIdentifier(sDriver, 8);
|
||||||
gB_MySQL = StrEqual(sDriver, "mysql", false);
|
gB_MySQL = StrEqual(sDriver, "mysql", false);
|
||||||
@ -1727,6 +1724,9 @@ public void SQL_CreateTable_Callback(Database db, DBResultSet results, const cha
|
|||||||
FormatEx(sQuery, 192, "SELECT map FROM %s%s WHERE map LIKE 'workshop%%' GROUP BY map;", gS_MySQLPrefix, sTables[i]);
|
FormatEx(sQuery, 192, "SELECT map FROM %s%s WHERE map LIKE 'workshop%%' GROUP BY map;", gS_MySQLPrefix, sTables[i]);
|
||||||
gH_SQL.Query(SQL_TableMigration3_Callback, sQuery, dp, DBPrio_Low);
|
gH_SQL.Query(SQL_TableMigration3_Callback, sQuery, dp, DBPrio_Low);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Call_StartForward(gH_Forwards_OnDatabaseLoaded);
|
||||||
|
Call_Finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SQL_TableMigration1_Callback(Database db, DBResultSet results, const char[] error, any data)
|
public void SQL_TableMigration1_Callback(Database db, DBResultSet results, const char[] error, any data)
|
||||||
|
|||||||
@ -1801,7 +1801,16 @@ bool SaveCheckpoint(int client, int index, bool overflow = false)
|
|||||||
cpcache[fCPGravity] = GetEntityGravity(target);
|
cpcache[fCPGravity] = GetEntityGravity(target);
|
||||||
cpcache[fCPSpeed] = GetEntPropFloat(target, Prop_Send, "m_flLaggedMovementValue");
|
cpcache[fCPSpeed] = GetEntPropFloat(target, Prop_Send, "m_flLaggedMovementValue");
|
||||||
cpcache[fCPStamina] = (gEV_Type != Engine_TF2)? GetEntPropFloat(target, Prop_Send, "m_flStamina"):0.0;
|
cpcache[fCPStamina] = (gEV_Type != Engine_TF2)? GetEntPropFloat(target, Prop_Send, "m_flStamina"):0.0;
|
||||||
cpcache[iCPFlags] = GetEntityFlags(target);
|
|
||||||
|
int iFlags = GetEntityFlags(target);
|
||||||
|
|
||||||
|
if(IsFakeClient(target))
|
||||||
|
{
|
||||||
|
iFlags |= FL_CLIENT;
|
||||||
|
iFlags |= FL_AIMTARGET;
|
||||||
|
}
|
||||||
|
|
||||||
|
cpcache[iCPFlags] = iFlags;
|
||||||
|
|
||||||
if(gEV_Type != Engine_TF2)
|
if(gEV_Type != Engine_TF2)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1724,15 +1724,15 @@ public void SQL_SubMenu_Callback(Database db, DBResultSet results, const char[]
|
|||||||
// 2 - jumps
|
// 2 - jumps
|
||||||
int style = results.FetchInt(3);
|
int style = results.FetchInt(3);
|
||||||
int jumps = results.FetchInt(2);
|
int jumps = results.FetchInt(2);
|
||||||
|
float perfs = results.FetchFloat(9);
|
||||||
|
|
||||||
if(gA_StyleSettings[style][bAutobhop])
|
if(gA_StyleSettings[style][bAutobhop] && perfs > 0.0)
|
||||||
{
|
{
|
||||||
FormatEx(sDisplay, 128, "%T: %d", "WRJumps", client, jumps);
|
FormatEx(sDisplay, 128, "%T: %d", "WRJumps", client, jumps);
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
float perfs = results.FetchFloat(9);
|
|
||||||
FormatEx(sDisplay, 128, "%T: %d (%.2f%%)", "WRJumps", client, jumps, perfs);
|
FormatEx(sDisplay, 128, "%T: %d (%.2f%%)", "WRJumps", client, jumps, perfs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user