Bug #738

Healthbar bug

Added by Saukko about 5 years ago. Updated 15 days ago.

Status:Fixed% Done:

100%

Priority:LowSpent time:-
Assignee:Aranud
Category:Mod generic
Target version:2.77
OS: Arch:

Description

How to reproduce:

1. Join into the game as soldier
2. Join with other client as medic
3. Look with the medic to soldier, he seems not to have full HP even he has

The healthbar won’t update back to full HP until the soldier spawns next time. When he will spawn with 10 more HP.

-*S

2014-12-18-125306-mml_minastirith_fp3.jpg (333 KB) Saukko, 18.12.2014 12:26

497

Related issues

Related to ET: Legacy Development - Bug #726: Medic HP bug Invalid 15.12.2014
Related to ET: Legacy Development - Bug #875: Fix team class HP bonus at first spawn Fixed 26.08.2015

Associated revisions

Revision 37a396f1
Added by Aranud about 1 month ago

game: fix team class HP bonus at first spawn, refs #875 #738

Add dynamics max HP computation depending of medics count and decrease slowly HP in case health is too high

Revision 0642ec2b
Added by Spyhawk 23 days ago

Revert "game: fix team class HP bonus at first spawn, refs #875 #738"

This reverts commit 37a396f183bd9ba2ec510dda634b7a003131bfe7.

  • Max HP with all bonuses is wrong for medics (170hp instead of 156hp)
  • Autoregen for medics doesn’t kick at spawn, only when wounded
  • Some rounding errors in health values

Revision 9c49313a
Added by Aranud 20 days ago

mod: fix revert "game: fix team class HP bonus at first spawn, refs #875 #738"

This reverts commit 0642ec2ba310714e60e79954b773d12dddfa350d

History

#2 Updated by Spyhawk about 5 years ago

  • Category set to Mod generic
  • Status changed from New to Invalid
  • Target version changed from 2.78 to 2.71
  • % Done changed from 0 to 100

Not a bug, working as intended. Health is set at every new spawn.

#3 Updated by Spyhawk about 5 years ago

  • Related to Bug #726: Medic HP bug added

#4 Updated by Saukko about 5 years ago

Yes it is set at every new spawn but why does it indicate that you would be able to get more HP than you actually have? Many times I have given healthpacks away for nothing because of this. If your current HP is 100 then it is 100 and then then the healthbar is all ok. But when a medic joins then the current HP is still 100, not more or less and that’s why the healthbar should show the same until you will spawn for the next time, not change on the fly.

-*S

#5 Updated by Spyhawk about 5 years ago

Because you can receive additional HP. That’s not a bug.
Health is set at spawn, but MAX_HEALTH is dynamic and might change depending on the number of medic in a team.

#6 Updated by Saukko about 5 years ago

But the thing is... you can’t recieve more HP... That’s what I’m after. If a medic joins then your total HP should update to 110 HP and you should be able to recieve an additional healthpack, but this is not the case.

-*S

#7 Updated by Spyhawk about 5 years ago

  • Status changed from Invalid to New
  • Target version changed from 2.71 to 2.78

Sorry, I misunderstood the issue then. Reopening.

#8 Updated by Saukko about 5 years ago

  • % Done changed from 100 to 0

#9 Updated by Spyhawk over 4 years ago

  • Related to Bug #875: Fix team class HP bonus at first spawn added

#10 Updated by IR4T4 over 3 years ago

  • Priority changed from Normal to Low

#11 Updated by Aranud about 1 month ago

  • Status changed from New to Fixed
  • Assignee set to Aranud
  • Target version changed from 2.78 to 2.77
  • % Done changed from 0 to 100

#12 Updated by Spyhawk 23 days ago

  • Status changed from Fixed to New
  • % Done changed from 100 to 10

#13 Updated by Aranud 20 days ago

  • Status changed from New to Feedback
  • % Done changed from 10 to 90

#14 Updated by Spyhawk 15 days ago

  • Status changed from Feedback to Fixed
  • % Done changed from 90 to 100

#15 Updated by Spyhawk 15 days ago

  • Status changed from Fixed to In Progress
  • % Done changed from 100 to 80

This issue is still present on latest master. Or rather, it might be a side effect of not fully functional #875.

#16 Updated by Spyhawk 15 days ago

  • Status changed from In Progress to Fixed
  • % Done changed from 80 to 100

Nevermind, this is actually the expected behaviour. Closing as fixed.

Also available in: Atom PDF