Whitelist localplayer for showing hitboxes etc
This commit is contained in:
parent
e09d89d7ed
commit
f67ec63443
1 changed files with 3 additions and 3 deletions
|
@ -2146,7 +2146,7 @@ void C_BasePlayer::Simulate()
|
||||||
static ConVarRef cl_showimpacts("cl_showimpacts");
|
static ConVarRef cl_showimpacts("cl_showimpacts");
|
||||||
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
||||||
|
|
||||||
if (m_bDebugServerBullets)
|
if (m_bDebugServerBullets && IsLocalPlayer())
|
||||||
{
|
{
|
||||||
if (cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 3)
|
if (cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 3)
|
||||||
{
|
{
|
||||||
|
@ -2179,7 +2179,7 @@ void C_BasePlayer::Simulate()
|
||||||
{
|
{
|
||||||
auto player = UTIL_PlayerByIndex(i);
|
auto player = UTIL_PlayerByIndex(i);
|
||||||
|
|
||||||
if (player)
|
if (player && !player->IsLocalPlayer())
|
||||||
{
|
{
|
||||||
player->DrawServerHitboxes(60.0f, true);
|
player->DrawServerHitboxes(60.0f, true);
|
||||||
}
|
}
|
||||||
|
@ -2191,7 +2191,7 @@ void C_BasePlayer::Simulate()
|
||||||
{
|
{
|
||||||
auto player = UTIL_PlayerByIndex(entityIndex);
|
auto player = UTIL_PlayerByIndex(entityIndex);
|
||||||
|
|
||||||
if (player)
|
if (player && !player->IsLocalPlayer())
|
||||||
{
|
{
|
||||||
player->DrawServerHitboxes(60.0f, true);
|
player->DrawServerHitboxes(60.0f, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue