Skip to content

Commit

Permalink
cssdk_const.inc: add ScoreAttrib constants (#214)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Nord1cWarr1or committed Oct 23, 2021
1 parent de26345 commit 3c9e583
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 10 additions & 0 deletions reapi/extra/amxmodx/scripting/include/cssdk_const.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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)
8 changes: 5 additions & 3 deletions reapi/include/cssdk/dlls/cdll_dll.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3c9e583

Please sign in to comment.