Debug only local player bullets, the rest is useless
This commit is contained in:
parent
f67ec63443
commit
a9bd881a56
1 changed files with 3 additions and 3 deletions
|
@ -492,7 +492,7 @@ void CCSPlayer::FireBullet(
|
||||||
#ifdef CLIENT_DLL
|
#ifdef CLIENT_DLL
|
||||||
static ConVarRef cl_showfirebullethitboxes("cl_showfirebullethitboxes");
|
static ConVarRef cl_showfirebullethitboxes("cl_showfirebullethitboxes");
|
||||||
|
|
||||||
if (cl_showfirebullethitboxes.GetBool())
|
if (cl_showfirebullethitboxes.GetBool() && IsLocalPlayer())
|
||||||
{
|
{
|
||||||
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
||||||
{
|
{
|
||||||
|
@ -569,7 +569,7 @@ void CCSPlayer::FireBullet(
|
||||||
|
|
||||||
static ConVarRef cl_showimpacts("cl_showimpacts");
|
static ConVarRef cl_showimpacts("cl_showimpacts");
|
||||||
|
|
||||||
if (cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 2)
|
if ((cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 2) && IsLocalPlayer())
|
||||||
{
|
{
|
||||||
NDebugOverlay::SweptBox(vecSrc,
|
NDebugOverlay::SweptBox(vecSrc,
|
||||||
tr.endpos,
|
tr.endpos,
|
||||||
|
@ -588,7 +588,7 @@ void CCSPlayer::FireBullet(
|
||||||
{
|
{
|
||||||
C_BasePlayer* player = ToBasePlayer(tr.m_pEnt);
|
C_BasePlayer* player = ToBasePlayer(tr.m_pEnt);
|
||||||
|
|
||||||
if (cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 2)
|
if ((cl_showimpacts.GetInt() == 1 || cl_showimpacts.GetInt() == 2) && IsLocalPlayer())
|
||||||
{
|
{
|
||||||
player->DrawClientHitboxes(60.0f, true);
|
player->DrawClientHitboxes(60.0f, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue