diff --git a/src/d_netcmd.c b/src/d_netcmd.c index a4f52e383..14f581a97 100644 --- a/src/d_netcmd.c +++ b/src/d_netcmd.c @@ -208,6 +208,7 @@ CV_PossibleValue_t kartdebugitem_cons_t[] = {POWERUP_BUMPER, "Bumper"}, {POWERUP_BADGE, "Badge"}, {POWERUP_SUPERFLICKY, "SuperFlicky"}, + {POWERUP_POINTS, "Points"}, {0} }; diff --git a/src/d_player.h b/src/d_player.h index 75002da11..ab6a1d917 100644 --- a/src/d_player.h +++ b/src/d_player.h @@ -207,6 +207,7 @@ typedef enum POWERUP_BUMPER, POWERUP_BADGE, POWERUP_SUPERFLICKY, + POWERUP_POINTS, ENDOFPOWERUPS, LASTPOWERUP = ENDOFPOWERUPS - 1, NUMPOWERUPS = ENDOFPOWERUPS - FIRSTPOWERUP, diff --git a/src/deh_tables.c b/src/deh_tables.c index 304cc2e8b..ea36c5ae0 100644 --- a/src/deh_tables.c +++ b/src/deh_tables.c @@ -7500,6 +7500,7 @@ struct int_const_s const INT_CONST[] = { {"POWERUP_BUMPER",POWERUP_BUMPER}, {"POWERUP_BADGE",POWERUP_BADGE}, {"POWERUP_SUPERFLICKY",POWERUP_SUPERFLICKY}, + {"POWERUP_POINTS",POWERUP_POINTS}, {"ENDOFPOWERUPS",ENDOFPOWERUPS}, {"LASTPOWERUP",LASTPOWERUP}, {"NUMPOWERUPS",NUMPOWERUPS}, diff --git a/src/k_powerup.cpp b/src/k_powerup.cpp index 96b020b81..33d1e72f4 100644 --- a/src/k_powerup.cpp +++ b/src/k_powerup.cpp @@ -88,6 +88,11 @@ void K_GivePowerUp(player_t* player, kartitems_t powerup, tic_t time) } break; + case POWERUP_POINTS: + K_AddMessageForPlayer(player, "Got 6 POINTS!", true, false); + K_GivePointsToPlayer(player, nullptr, 6); + break; + default: break; }