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/game.h | 38 ++++++++++++++++++-------------------- 1 file changed, 18 insertions(+), 20 deletions(-) (limited to 'src/fpsgame/game.h') diff --git a/src/fpsgame/game.h b/src/fpsgame/game.h index 3ab0447..9427864 100644 --- a/src/fpsgame/game.h +++ b/src/fpsgame/game.h @@ -268,9 +268,23 @@ static const struct guninfo { { S_RLFIRE, 800, 120, 0, 270, 10, 1024, 1, 160, 40, 0, "rocketlauncher", "rocket", 0 }, { S_RIFLE, 1200, 120, 0, 0, 30, 2048, 1, 80, 0, 0, "rifle", "rifle", 0 }, { S_FLAUNCH, 600, 90, 0, 300, 20, 1024, 1, 250, 45, 1500, "grenadelauncher", "gl", 0 }, - { S_PISTOL, 400, 60, 160, 0, 10, 1024, 1, 80, 0, 0, "pistol", "pistol", 0 }, + { S_PISTOL, 400, 60, 110, 0, 10, 1024, 1, 80, 0, 0, "pistol", "pistol", 0 }, }; +/// Rough accuracy code, client-side only. + +extern int pwshotsfired[NUMGUNS]; +extern int pwshotshit[NUMGUNS]; +extern int pwdamagedealt[NUMGUNS]; +extern int pwaccuracy[NUMGUNS]; +extern int pwavgaccuracy; +extern int pwitemspicked[7]; + +extern void pwshot(int gun); +extern void pwhit(int gun, int damage); +extern void pwcalcaccuracy(void); +extern void pwreset(void); + #include "ai.h" // inherited by fpsent and server clients @@ -318,12 +332,6 @@ struct fpsstate [[fallthrough]]; case I_YELLOWARMOUR: return maxarmour=50)return false; - //~case I_GREENARMOUR: - //~// (100h/100g only absorbs 200 damage) - //~if(armourtype==A_YELLOW && armour>=100)return false; - //~case I_YELLOWARMOUR: return !armourtype || armourarmour) ad = armour; armour -= ad; damage -= ad; -- cgit v1.2.3