mirror of
https://github.com/shavitush/bhoptimer.git
synced 2025-12-08 02:48:26 +00:00
add buttons, scrolls, and anglediff to huddata_t
This commit is contained in:
parent
6bba2072fe
commit
8e0e5ec8c1
@ -108,6 +108,11 @@ enum struct huddata_t
|
|||||||
float fClosestVelocityDifference;
|
float fClosestVelocityDifference;
|
||||||
int iMapTier;
|
int iMapTier;
|
||||||
float fClosestReplayLength;
|
float fClosestReplayLength;
|
||||||
|
|
||||||
|
int iButtons;
|
||||||
|
int iScrolls;
|
||||||
|
int iScrollsPrev;
|
||||||
|
float fAngleDiff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -1757,6 +1757,20 @@ void UpdateMainHUD(int client)
|
|||||||
huddata.iPreviousSpeed = gI_PreviousSpeed[client];
|
huddata.iPreviousSpeed = gI_PreviousSpeed[client];
|
||||||
huddata.iMapTier = gB_Rankings ? Shavit_GetMapTier() : 0;
|
huddata.iMapTier = gB_Rankings ? Shavit_GetMapTier() : 0;
|
||||||
|
|
||||||
|
if (IsValidClient(target))
|
||||||
|
{
|
||||||
|
huddata.fAngleDiff = gF_AngleDiff[target];
|
||||||
|
huddata.iButtons = gI_Buttons[target];
|
||||||
|
huddata.iScrolls = gI_ScrollCount[target];
|
||||||
|
huddata.iScrollsPrev = gI_LastScrollCount[target];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
huddata.iButtons = Shavit_GetReplayButtons(target, huddata.fAngleDiff);
|
||||||
|
huddata.iScrolls = -1;
|
||||||
|
huddata.iScrollsPrev = -1;
|
||||||
|
}
|
||||||
|
|
||||||
huddata.fClosestReplayTime = -1.0;
|
huddata.fClosestReplayTime = -1.0;
|
||||||
huddata.fClosestVelocityDifference = 0.0;
|
huddata.fClosestVelocityDifference = 0.0;
|
||||||
huddata.fClosestReplayLength = 0.0;
|
huddata.fClosestReplayLength = 0.0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user