From d942381df3a2d6983b375a51fab9cbcba6cb6c11 Mon Sep 17 00:00:00 2001 From: Kamay Xutax Date: Sat, 31 Aug 2024 06:48:01 +0200 Subject: [PATCH] Commenting debug stuff --- game/shared/cstrike/cs_player_shared.cpp | 34 ++++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/game/shared/cstrike/cs_player_shared.cpp b/game/shared/cstrike/cs_player_shared.cpp index 11b8c0558c..5414d6c704 100644 --- a/game/shared/cstrike/cs_player_shared.cpp +++ b/game/shared/cstrike/cs_player_shared.cpp @@ -39,7 +39,7 @@ #include "engine/ivdebugoverlay.h" #include "obstacle_pushaway.h" #include "props_shared.h" -#include +// #include ConVar weapon_accuracy_nospread( "weapon_accuracy_nospread", "0", FCVAR_REPLICATED ); #define CS_MASK_SHOOT (MASK_SOLID|CONTENTS_DEBRIS) @@ -529,28 +529,28 @@ void CCSPlayer::FireBullet( CBasePlayer* lagPlayer = UTIL_PlayerByIndex(i); if (lagPlayer && lagPlayer != this) { -#ifdef CLIENT_DLL - if ( !m_pCurrentCommand->hasbeenpredicted ) - { - std::string text = "client:\n"; +// #ifdef CLIENT_DLL +// if ( !m_pCurrentCommand->hasbeenpredicted ) +// { +// std::string text = "client:\n"; - auto angles = lagPlayer->GetRenderAngles(); +// auto angles = lagPlayer->GetRenderAngles(); - text += "x: " + std::to_string(angles.x) + ", y: " + std::to_string(angles.y) + ", z: " + std::to_string(angles.z) + '\n'; +// text += "x: " + std::to_string(angles.x) + ", y: " + std::to_string(angles.y) + ", z: " + std::to_string(angles.z) + '\n'; - NDebugOverlay::EntityBounds( lagPlayer, 255, 0, 0, 32, 60 ); - std::cout << text; - } -#else - std::string text = "server:\n"; +// NDebugOverlay::EntityBounds( lagPlayer, 255, 0, 0, 32, 60 ); +// std::cout << text; +// } +// #else +// std::string text = "server:\n"; - auto angles = lagPlayer->GetAbsAngles(); +// auto angles = lagPlayer->GetAbsAngles(); - text += "x: " + std::to_string(angles.x) + ", y: " + std::to_string(angles.y) + ", z: " + std::to_string(angles.z) + '\n'; +// text += "x: " + std::to_string(angles.x) + ", y: " + std::to_string(angles.y) + ", z: " + std::to_string(angles.z) + '\n'; - NDebugOverlay::EntityBounds( lagPlayer, 0, 255, 0, 32, 60 ); - std::cout << text; -#endif +// NDebugOverlay::EntityBounds( lagPlayer, 0, 255, 0, 32, 60 ); +// std::cout << text; +// #endif #ifdef CLIENT_DLL if (!m_pCurrentCommand->hasbeenpredicted) {