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:
@ -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
|
||||
|
Reference in New Issue
Block a user