From 3c9e58326067fb631c548737e0d0337d319a6430 Mon Sep 17 00:00:00 2001 From: Nord1cWarr1or <47604048+Nord1cWarr1or@users.noreply.github.com> Date: Sat, 23 Oct 2021 13:05:16 +0300 Subject: [PATCH] cssdk_const.inc: add `ScoreAttrib` constants (#214) * cssdk_const.inc: add ScoreAttrib constants for https://wiki.alliedmods.net/Half-Life_1_Game_Events#ScoreAttrib * cssdk_const.inc: rename ScoreAttrib constants * cdll_dll.h: update SCORE_STATUS_* constants --- reapi/extra/amxmodx/scripting/include/cssdk_const.inc | 10 ++++++++++ reapi/include/cssdk/dlls/cdll_dll.h | 8 +++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc index 4148390..8ce0887 100644 --- a/reapi/extra/amxmodx/scripting/include/cssdk_const.inc +++ b/reapi/extra/amxmodx/scripting/include/cssdk_const.inc @@ -1348,3 +1348,13 @@ enum InfoMapBuyParam #define DEFAULT_SMALL_SNIPERS_ZOOM 40 #define DEFAULT_AUG_SG552_ZOOM 55 #define DEFAULT_NO_ZOOM 90 + +/** +* Scoreboard attribute constants +* For "ScoreAttrib" game event +*/ +#define SCORE_STATUS_NONE 0 +#define SCORE_STATUS_DEAD (1<<0) +#define SCORE_STATUS_BOMB (1<<1) +#define SCORE_STATUS_VIP (1<<2) +#define SCORE_STATUS_DEFKIT (1<<3) diff --git a/reapi/include/cssdk/dlls/cdll_dll.h b/reapi/include/cssdk/dlls/cdll_dll.h index 15ff9b9..1589a00 100644 --- a/reapi/include/cssdk/dlls/cdll_dll.h +++ b/reapi/include/cssdk/dlls/cdll_dll.h @@ -60,9 +60,11 @@ const int DEFAULT_FOV = 90; // the default field of view #define ITEM_STATUS_NIGHTVISION BIT(0) #define ITEM_STATUS_DEFUSER BIT(1) -#define SCORE_STATUS_DEAD BIT(0) -#define SCORE_STATUS_BOMB BIT(1) -#define SCORE_STATUS_VIP BIT(2) +#define SCORE_STATUS_NONE 0 +#define SCORE_STATUS_DEAD BIT(0) +#define SCORE_STATUS_BOMB BIT(1) +#define SCORE_STATUS_VIP BIT(2) +#define SCORE_STATUS_DEFKIT BIT(3) // player data iuser3 #define PLAYER_CAN_SHOOT BIT(0)