Thread Contributor: davajBetter SpecList !
#1
Bug 
Code:
void CMisc::OnRenderSpectatorList()
{
if (Settings::Misc::misc_Spectators)
{
int DrawIndex = 1;

for (int playerId : GetObservervators(Interfaces::Engine()->GetLocalPlayer()))
{
if (playerId == Interfaces::Engine()->GetLocalPlayer())
continue;

CBaseEntity* pPlayer = (CBaseEntity*)Interfaces::EntityList()->GetClientEntity(playerId);

if (!pPlayer)
continue;

PlayerInfo Pinfo;
Interfaces::Engine()->GetPlayerInfo(playerId, &Pinfo);

if (Pinfo.m_bIsFakePlayer)
continue;

if (g_pRender)
{
string Name = Pinfo.m_szPlayerName;

if (Name != "")
{
Color PlayerObsColor;
//[junk_disable /]
switch (pPlayer->GetObserverMode())
{
case ObserverMode_t::OBS_MODE_IN_EYE:
Name.append(" - Perspective");
PlayerObsColor = Color::White();
break;
case ObserverMode_t::OBS_MODE_CHASE:
Name.append(" - 3rd person");
PlayerObsColor = Color::White();
break;
case ObserverMode_t::OBS_MODE_ROAMING:
Name.append(" - Free look");
PlayerObsColor = Color::White();
break;
case ObserverMode_t::OBS_MODE_DEATHCAM:
Name.append(" - Deathcam");
PlayerObsColor = Color::White();
break;
case ObserverMode_t::OBS_MODE_FREEZECAM:
Name.append(" - Freezecam");
PlayerObsColor = Color::White();
break;
case ObserverMode_t::OBS_MODE_FIXED:
Name.append(" - Fixed");
PlayerObsColor = Color::White();
break;
default:
break;
}
//[junk_enable /]
g_pRender->Text(iScreenWidth - 300, 300 + (DrawIndex * 13), false, true, PlayerObsColor, "%s", Name.c_str());
DrawIndex++;
}
}
}
}
}
Better SpecList ! Just Replace ! ( It's Older SpecList )
  Reply
Thanks given by:
#2
Nice release

How do I position to the top right corner of screen?
  Reply
Thanks given by:
#3
for what indigo?
  Reply
Thanks given by:
#4
(8 hours ago)death Wrote: Nice release

How do I position to the top right corner of screen?

g_pRender->Text(iScreenWidth - 300, 300 + (DrawIndex * 13), false, true, PlayerObsColor, "%s", Name.c_str());
                                ^    ^
                                |    |
                               Customize These according to your resolution
  Reply
Thanks given by:
#5
ScreensHot please
  Reply
Thanks given by:
#6
ss pls
  Reply
Thanks given by:
#7
Thank you for this release
Discord Marketplace: https://discord.gg/XJWS2jT
Discord ID: Wilson#1505 [NEW, MY LAST ACCOUNT GOT BANNED]
  Reply
Thanks given by:
#8
tank you for spoonfeed
  Reply
Thanks given by:


Forum Jump:


Users browsing this thread: 1 Guest(s)