nmrih / source-game

Bugs and issues reporting for NMRiH1
http://store.steampowered.com/app/224260
57 stars 25 forks source link

[public-1.12.1] Progress bar stuck after using ShowProgressBarEx #1267

Closed dysphie closed 2 years ago

dysphie commented 2 years ago

ProgressBarShowEx causes future interactions to show an empty progress bar

Repro via sourcemod:

  1. void ShowProgressBarEx(int client, int color[3], float duration, float prefill = 0.0)
    {
    BfWrite bf = UserMessageToBfWrite(StartMessageOne("ProgressBarShowEx", client));
    bf.WriteFloat(duration);
    bf.WriteFloat(prefill);
    bf.WriteBool(true);         // static
    bf.WriteFloat(100.0);         // percentage
    bf.WriteBool(false);         // invert
    bf.WriteBool(true);         // override color
    bf.WriteByte(color[0]);
    bf.WriteByte(color[1]);
    bf.WriteByte(color[2]);
    EndMessage();
    }
    ShowProgressBarEx(client, color,  5.0, 0.0);
  2. Interact with another progress entity nmrih_0TrriDpux1

felis-catus commented 2 years ago

Fixed in src-r5749.