Add constants for stats functions (#509)

* Add constants for stats functions

* Changed STATS_ to STATSX_ and added 2 more defines

* Added constants for all games

* Add csstats_const.inc and add _MAX_ constats to enum

* Change bodyhits
This commit is contained in:
OciXCrom
2018-08-25 20:52:48 +02:00
committed by Vincent Herbet
parent 197db8c82b
commit 8aeefc3fca
10 changed files with 118 additions and 33 deletions

View File

@ -151,6 +151,7 @@ public stock const Float:NULL_VECTOR[3];
#define HIT_LEFTLEG 6
#define HIT_RIGHTLEG 7
#define HIT_SHIELD 8 // CS only
#define MAX_BODYHITS 8
/**
* @section emit_sound() constants
@ -516,4 +517,20 @@ enum FindPlayerFlags (<<= 1)
FindPlayer_IncludeConnecting // Include connecting clients
}
/**
* Constants for client statistics
*/
enum
{
STATSX_KILLS = 0,
STATSX_DEATHS,
STATSX_HEADSHOTS,
STATSX_TEAMKILLS,
STATSX_SHOTS,
STATSX_HITS,
STATSX_DAMAGE,
STATSX_RANK,
STATSX_MAX_STATS
}
#include <cstrike_const> // To keep backward compatibility