Added cl_showfirebullethitboxes
This commit is contained in:
parent
d87ac59033
commit
d294fe4f94
2 changed files with 5 additions and 3 deletions
|
@ -1333,8 +1333,9 @@ void CInput::CreateMove ( int sequence_number, float input_sample_frametime, boo
|
||||||
}
|
}
|
||||||
|
|
||||||
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
||||||
|
static ConVarRef cl_showfirebullethitboxes("cl_showfirebullethitboxes");
|
||||||
if (cl_showhitboxes.GetBool())
|
|
||||||
|
if (cl_showhitboxes.GetBool() || cl_showfirebullethitboxes.GetBool())
|
||||||
{
|
{
|
||||||
cmd->debug_hitboxes = true;
|
cmd->debug_hitboxes = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
|
|
||||||
ConVar sv_showimpacts("sv_showimpacts", "0", FCVAR_REPLICATED, "Shows client (red) and server (blue) bullet impact point (1=both, 2=client-only, 3=server-only)" );
|
ConVar sv_showimpacts("sv_showimpacts", "0", FCVAR_REPLICATED, "Shows client (red) and server (blue) bullet impact point (1=both, 2=client-only, 3=server-only)" );
|
||||||
ConVar weapon_accuracy_nospread( "weapon_accuracy_nospread", "0", FCVAR_REPLICATED );
|
ConVar weapon_accuracy_nospread( "weapon_accuracy_nospread", "0", FCVAR_REPLICATED );
|
||||||
|
ConVar cl_showfirebullethitboxes( "cl_showfirebullethitboxes", "0" );
|
||||||
|
|
||||||
#define CS_MASK_SHOOT (MASK_SOLID|CONTENTS_DEBRIS)
|
#define CS_MASK_SHOOT (MASK_SOLID|CONTENTS_DEBRIS)
|
||||||
|
|
||||||
|
@ -463,7 +464,7 @@ void CCSPlayer::FireBullet(
|
||||||
#ifdef CLIENT_DLL
|
#ifdef CLIENT_DLL
|
||||||
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
static ConVarRef cl_showhitboxes("cl_showhitboxes");
|
||||||
|
|
||||||
if( cl_showhitboxes.GetBool() )
|
if( cl_showhitboxes.GetBool() || cl_showfirebullethitboxes.GetBool() )
|
||||||
{
|
{
|
||||||
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue