January 24, 2022, 11:07:42 am

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1]

Author Topic: Allow viewing of teammates' health bars while dead  (Read 1897 times)

Wiggles

  • Lucky Member
  • *******
  • Karma: 1
  • Offline Offline
  • Posts: 951
  • nothing he bloops he really bleeps
Allow viewing of teammates' health bars while dead
« on: January 31, 2013, 11:33:35 pm »

Kind of self-explanatory
« Last Edit: April 04, 2013, 08:34:27 pm by Phantom Brave »
Logged


Quote
[19:31] <prime> kawaii desu~~~~~ [19:31] <prime> sugoiii~~
and you say i am a nigga

Footpöp

  • Veteran Member
  • ******
  • Karma: 24
  • Offline Offline
  • Posts: 4115
  • I /saw/ him
Re: Allow viewing of teammates' health bars while dead
« Reply #1 on: February 01, 2013, 12:42:06 am »

why
Logged
Team /ABC/

CobaltBW

  • Veteran Beta Tester
  • *****
  • Karma: 65
  • Offline Offline
  • Posts: 5102
  • Blue Warrior
Re: Allow viewing of teammates' health bars while dead
« Reply #2 on: February 01, 2013, 12:47:41 am »

Arena spectating, probably.
Logged
~CobaltBW

"Success is the progressive realization of a worthy goal or ideal." - Earl Nightingale

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Allow viewing of teammates' health bars while dead
« Reply #3 on: February 01, 2013, 01:18:24 pm »

Don't see why it isn't like this already, honestly.
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters

Phantom Brave

  • All Hail Classicwell
  • Moderator
  • *****
  • Karma: 70
  • Offline Offline
  • Posts: 12701
  • Another one --
Re: Allow viewing of teammates' health bars while dead
« Reply #4 on: April 04, 2013, 08:48:07 pm »

Bug: cannot see teammates' health while dead if "Additional Healthbar" is disabled.
if team == global.myself.team && (id != global.myself.object.id || global.showHealthBar == 1)
When dead, global.myself.object is set to -1. That happens to be the "self" constant. When a variable within -1 is dereferenced, it becomes the same thing as "self.var". So, it's testing (id != self.id). Which is always false.
Solution: Use players instead of characters for "is me" comparison.
https://github.com/wareya/Gang-Garrison-2/commit/7aa8e86d32a40669fa3d7df2a6d49b9bd273f881
Please post on the above commit or launchpad to continue discussion.
« Last Edit: April 04, 2013, 08:50:36 pm by Phantom Brave »
Logged

http://steamcommunity.com/id/wareya/
ladies and gentlemen i would like to announce that the fact of the matter is up that the fact of the matter is a fact and it matters
Pages: [1]
 

Page created in 0.029 seconds with 37 queries.