waypoints update

- hud_drawwaypoints was fixed in an earlier commit so waypoints don't show again when respawning
- add additional hud_waypointblinking code
This commit is contained in:
pierow 2024-04-29 18:11:46 -04:00
parent 23dc6c3a9c
commit af04d9a078
3 changed files with 2 additions and 4 deletions

View file

@ -229,7 +229,7 @@ void CHud :: Init( void )
CVAR_CREATE("hud_mapnamesBlue", "255", FCVAR_ARCHIVE); CVAR_CREATE("hud_mapnamesBlue", "255", FCVAR_ARCHIVE);
CVAR_CREATE("hud_nameinfo", "1", FCVAR_ARCHIVE); CVAR_CREATE("hud_nameinfo", "1", FCVAR_ARCHIVE);
CVAR_CREATE("hud_drawwaypoints", "2", FCVAR_ARCHIVE); CVAR_CREATE("hud_drawwaypoints", "2", FCVAR_ARCHIVE);
CVAR_CREATE("hud_waypointblinking", "0", FCVAR_ARCHIVE); CVAR_CREATE("hud_waypointblinking", "1", FCVAR_ARCHIVE);
m_pCvarWidescreen = gEngfuncs.pfnGetCvarPointer("gl_widescreen_yfov"); m_pCvarWidescreen = gEngfuncs.pfnGetCvarPointer("gl_widescreen_yfov");
m_pSpriteList = NULL; m_pSpriteList = NULL;

View file

@ -2831,8 +2831,6 @@ int AvHHud::MsgFunc_SetOrder(const char* pszName, int iSize, void* pbuf)
{ {
this->mDrawOrderOverlay = true; this->mDrawOrderOverlay = true;
} }
if (!this->mDrawOrderOverlay)
gEngfuncs.Con_Printf("waypoint trapped \n");
} }
else else
{ {

View file

@ -386,7 +386,7 @@ void AvHOverviewMap::DrawMiniMapEntity(const DrawInfo& inDrawInfo, const Drawabl
float theFractionalLastUpdate = mLastUpdateTime - (int)mLastUpdateTime; float theFractionalLastUpdate = mLastUpdateTime - (int)mLastUpdateTime;
if (theFractionalLastUpdate < .25f) if (theFractionalLastUpdate < .25f && CVAR_GET_FLOAT("hud_waypointblinking") >= 1.0f)
{ {
return; return;
} }