autism bot added mask solid and racetimer wrote table names correct
This commit is contained in:
parent
7b920741ea
commit
cd21fbaf56
@ -289,7 +289,7 @@ public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float
|
||||
downwards[0] = 90.0;
|
||||
downwards[1] = 0.0;
|
||||
downwards[2] = 0.0;
|
||||
TR_TraceRayFilter(feet_origin, downwards, MASK_ALL, RayType_Infinite, TraceRayDontHitSelf, client);
|
||||
TR_TraceRayFilter(feet_origin, downwards, MASK_SOLID, RayType_Infinite, TraceRayDontHitSelf, client);
|
||||
if (TR_DidHit())
|
||||
{
|
||||
TR_GetEndPosition(ground_pos);
|
||||
@ -300,7 +300,7 @@ public void OnPlayerRunCmdPost(int client, int buttons, int impulse, const float
|
||||
float angles_eye[3];
|
||||
GetClientEyeAngles(client, angles_eye);
|
||||
//feet_origin[2] += 10.0;
|
||||
TR_TraceRayFilter(feet_origin, angles_eye, MASK_ALL, RayType_Infinite, TraceRayDontHitSelf, client);
|
||||
TR_TraceRayFilter(feet_origin, angles_eye, MASK_SOLID, RayType_Infinite, TraceRayDontHitSelf, client);
|
||||
if (TR_DidHit())
|
||||
{
|
||||
TR_GetEndPosition(ground_pos);
|
||||
|
@ -531,9 +531,9 @@ public void FinishedStageRaceZone(int client)
|
||||
{
|
||||
CPrintToChat(client, "Your record: None yet\nCommand: !toptime !mytime !stages");
|
||||
if (l_iZoneCount < 2)
|
||||
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer SET `%s` = '%s', name = '%s' WHERE steam_auth = '%s'", g_cMapname, sTime, sEscapedName, sSID);
|
||||
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer_table SET `%s` = '%s', name = '%s' WHERE steam_auth = '%s'", g_cMapname, sTime, sEscapedName, sSID);
|
||||
else
|
||||
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer SET `%sS%i` = '%s', name = '%s' WHERE steam_auth = '%s'", g_cMapname, stage, sTime, sEscapedName, sSID);
|
||||
Format(sQuery, sizeof(sQuery), "UPDATE unloze_racetimer_css.zetimer_table SET `%sS%i` = '%s', name = '%s' WHERE steam_auth = '%s'", g_cMapname, stage, sTime, sEscapedName, sSID);
|
||||
}
|
||||
else
|
||||
CPrintToChat(client, "Your record: %s\nCommand: !toptime !mytime !stages", g_csTime_record[client]);
|
||||
|
Loading…
Reference in New Issue
Block a user