Jump to content
Korean Random

Damage taken on the OTM's HP bar


Recommended Posts

I have a feeling that something has changed in 9.15.1 regarding damage taken on the OTM's HP bar. 

 

I would like the hp bar to show damage taken as green and red flash depending who is the victim (ally or enemy), I don't want it to show any other colors. Currently it's showing green, red, yellow and maybe other colors too (depending who is shooting). How to limit it all to green/red only?

 

I played a bit with colors in code below, tried to replace null with {{c:system}} but I couldn't make it to work like prior to 9.15.1

 

    "healthBar": {
      "enabled": true,                  //   false - не отображать
      "x": -36,                         //   положение по оси X
      "y": -34,                         //   положение по оси Y
      "alpha": 100,                     //   прозрачность (допускается использование динамической прозрачности, см. macros.txt)
      "color": null,                    //   цвет основной (допускается использование динамического цвета, см. macros.txt)
      "lcolor": null,                   //   цвет дополнительный (для градиента)
      "width": 70,                      //   ширина полосы здоровья
      "height": 4,                     //   высота полосы здоровья
      // Параметры подложки и рамки.
      "border": {
        "alpha": 45,                    //     прозрачность
        "color": "0x000000",            //     цвет
        "size": 1                       //     размер рамки
      },
      // Параметры оставшегося здоровья.
      "fill": {
        "alpha": 50                     //     прозрачность
      },
      // Параметры анимации отнимаемого здоровья.
      "damage": {
        "alpha": 100,                   //     прозрачность
        "color": null,           //     цвет
        "fade": 1                       //     время затухания в секундах
      }
    },

Edited by Aslain
Link to comment
Short link
Share on other sites

Yeah but it will affect damage colors, and I want to see them as floating damage, just do not want it on the hp bar as "fill" after being hit.

 

Oh, I see what you mean. My hp bars show reduction only in red and green. My markers configs contain the following:

 

"healthBar": {

      "enabled": true,              

      "x": -41, "y": -33, "width": 80, "height": 12,

      "alpha": 100, "color": null, "lcolor": null,               

      "border": { "alpha": 30, "color": "0x000000", "size": 1 },

      "fill": { "alpha": 30 },

      "damage": { "alpha": 80, "color": null, "fade": 1 }

    },

 

Not sure if the bolded parts above are the determinative factors.

Link to comment
Short link
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...