Kloki38 Posted February 14, 2020 Hello, I have a problem with this health bar script - it is based on Enjay's modification of Apothem's HP bar from the wiki. It shows the boss name and his HP in %. In older versions of GZDoom (3.x.x) it works fine, but in newer versions (4.x.x) nothing shows up on the screen for some reason. Thanks for help. Here is the whole block of the scripts: int monhp; int mtid = 555; int mmaxhp = 900; script 2 (void) //boss health bar { int hdisp; monhp = getactorproperty(MTID, APROP_Health); setfont("HBIGFONT"); hdisp = (monhp * 100 / mmaxhp); sethudsize(640,480,0); if (hdisp <= 0) hdisp = 0; hudmessage(i:hdisp; 1, 0, CR_red, 320.0, 25.0, 0, 0); hudmessage(s:"Boss"; 1, 0, CR_TAN, 320.0, 55.0, 0, 0); int acounter; int bcounter; setfont ("MONHPBAR"); for (acounter = 0; acounter <= hdisp; acounter++) { if (hdisp <= 0) break; } bcounter = 0; acounter = 0; delay(1); restart; } script 3 (void) //terminates the boss bar when the boss dies { While(thingCountname("Royal_Guard", 555) > 0) Delay(10); ACS_Terminate(2,0); SetMusic("track11"); } script 4 (void) //activates the boss bar script + the counter { SetMusic("boss1"); delay(1); ACS_Execute(2,0,0,0,0); delay(1); ACS_Execute(3,0,0,0,0); } 0 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.