mirror of
https://github.com/ENSL/NS.git
synced 2024-11-28 23:32:04 +00:00
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:
parent
23dc6c3a9c
commit
af04d9a078
3 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue