Jump to content

HP Bar / Colored Icons / Alive Players


Recommended Posts

I think he is talking about teamHPpool score, it should be 15:15 instead of 0:0 right?
That's TeamHP issue not correlation bar?

Instead of {{py:sp.allyFrags}} and {{py:sp.enemyFrags}} should be {{py:sp.allyAlive}} and {{py:sp.enemyAlive}}.

Link to comment
  • Administrator
17 minutes ago, Ress said:

I think he is talking about teamHPpool score, it should be 15:15 instead of 0:0 right?
That's TeamHP issue not correlation bar?

Instead of {{py:sp.allyFrags}} and {{py:sp.enemyFrags}} should be {{py:sp.allyAlive}} and {{py:sp.enemyAlive}}.

 

I will try that trick.

Link to comment

@Aslain it will work since right now it's showing frags inside config #4 Straight.

	// фраги союзников
	"totalHP_frags_ally": { 
	  "enabled": true,
      "updateEvent": "PY(ON_UPDATE_HP)",
      "x": -20,
      "y": 0,
	  "width": 30,
      "height": 30,
      "screenHAlign": "center",
	  "shadow": { "distance": 1, "angle": 90, "alpha": 80, "blur": 5, "strength": 1.5 },
      "textFormat": { "font": "$TitleFont", "size": 20, "align": "center" },
	  "format": "{{py:sp.allyFrags}}"
	},
	// фраги противников
	"totalHP_frags_enemy": { 
	  "$ref": { "path":"def.totalHP_frags_ally" },
      "x": 20,
      "format": "{{py:sp.enemyFrags}}"
	},

But you will probably have todo same for each HPpool config
with {{py:sp.allyFrags}}>{{py:sp.allyAlive}} and {{py:sp.allyFrags}}>{{py:sp.enemyAlive}} options.
12 options in total for each config frags or allive, yikes. :fearful:

Link to comment

Sadly default state is 0:0 and "allive not frags" is "special case", you will have to deal with this delay until someone deals dmg (hp updates). :confused:
Since this macro updates on hp change PY(ON_UPDATE_HP), don't think much can be done about it without extra py macros.

Using constant refresh like PY(ON_EVERY_FRAME) or PY(ON_EVERY_SECOND) can reduce performance.
Maybe by adding PY(ON_BATTLE_STATE_CHANGED) to the mix might work, but need to be tested.

Link to comment
30 minutes ago, Aslain said:

"updateEvent": "PY(ON_UPDATE_FRAG_COR_BAR), PY(ON_BATTLE_STATE_CHANGED)" does the trick and will be included in next modpack update (prolly tomorrow)

Sidenote PY(ON_UPDATE_FRAG_COR_BAR) is from extra py_macro.
So fragCorrelationBar.py would need to be installed with HP bar (even if colored icons are not selected/installed). :wink1:

Link to comment
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.