From a5a051f3356046fcaeaa295272d6859defebb320 Mon Sep 17 00:00:00 2001 From: xolatile Date: Wed, 23 Jul 2025 17:33:57 +0200 Subject: Alternative GUI, more info in scoreboard, icons, accuracy, pickup state... --- src/fpsgame/entities.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/fpsgame/entities.cpp') diff --git a/src/fpsgame/entities.cpp b/src/fpsgame/entities.cpp index 63d35d0..4676ca8 100644 --- a/src/fpsgame/entities.cpp +++ b/src/fpsgame/entities.cpp @@ -1,5 +1,7 @@ #include "game.h" +int pwitemspicked[7] = { 0 }; + namespace entities { using namespace game; @@ -183,6 +185,15 @@ namespace entities } playsound(itemstats[type-I_SHELLS].sound, d!=h ? &d->o : NULL, NULL, 0, 0, 0, -1, 0, 1500); d->pickup(type); + switch(type) { + case I_TINYARMOUR: pwitemspicked[0]++; break; + case I_GREENARMOUR: pwitemspicked[1]++; break; + case I_YELLOWARMOUR: pwitemspicked[2]++; break; + case I_TINYHEALTH: pwitemspicked[3]++; break; + case I_HEALTH: pwitemspicked[4]++; break; + case I_BOOST: pwitemspicked[5]++; break; + case I_QUAD: pwitemspicked[6]++; break; + } if(d==h) switch(type) { case I_BOOST: -- cgit v1.2.3