Skip to content

Commit

Permalink
Update to latest main of HDest
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrukar committed Oct 9, 2021
1 parent 3a91551 commit c9c5ac8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
All changes are sorted from top to bottom, Latest to Oldest.
Date format: DD/MM/YYYY
---
**9/10/2021**

Compat:
* Updated to latest main of Hideous Destructor.
---
**8/09/2021**

Compat:
Expand Down
18 changes: 13 additions & 5 deletions zscript/statusbar.zs
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,8 @@ class HDStatusBar:DoomStatusBar{

//update loadout1 based on old custom
//delete once old custom is gone!
let lomt=cplayer.mo.findinventory("LoadoutMenuHackToken");
if(lomt){
cvar.findcvar("hd_loadout1").setstring(lomt.species);
}
let lomt=LoadoutMenuHackToken(ThinkerFlag.Find(cplayer.mo,"LoadoutMenuHackToken"));
if(lomt)cvar.findcvar("hd_loadout1").setstring(lomt.loadout);



Expand Down Expand Up @@ -709,9 +707,19 @@ class HDStatusBar:DoomStatusBar{
DTA_VirtualHeight,480,
DTA_Alpha,0.8
);

}

if(hd_debug>=3){
double velspd=hpl.vel.length();
string velspdout=velspd.." "..(velspd*HDCONST_MPSTODUPT).."mps "..(velspd*HDCONST_MPSTODUPT*HDCONST_MPSTOKPH).."km/h";
screen.DrawText(NewSmallFont,
font.CR_GRAY,
600-(NewSmallFont.StringWidth(velspdout)>>1),
NewSmallFont.GetHeight(),
velspdout,
DTA_VirtualWidth,640,DTA_VirtualHeight,480
);
}

//object description
drawstring(
Expand Down

0 comments on commit c9c5ac8

Please sign in to comment.