Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[EO] Adding Mini HP Bars for Npcs


Kimimaru
 Share

Recommended Posts

  • Replies 81
  • Created
  • Last Reply

Top Posters In This Topic

@DishWasher:

> I just try on 1.3 but there's a strange problem with the npc hp bar
> it is too large
>
> the piece is here but I cant find what is the problem
>
> >! Call DDS_BackBuffer.DrawBox(ConvertMapX(X), ConvertMapY(Y), ConvertMapX(X + Int(((MapNpc(Index).Vital(Vitals.HP) / 32) / (Npc(NpcNum).HP / 32)) * 32)), ConvertMapY(Y + 4))
>
> here is what looks like ![](http://img411.imageshack.us/img411/500/screenhunter02jan210202.png)
>
> the back bar(black) works perfectly.Anyone can help?'='
>
> edit: /450000

Me too.
I'm using EO1.3.1
Link to comment
Share on other sites

Having this feature is excellent through it will drastically cut your FPS if you show them all the time for every NPC due to it rendering so many (I have 10 Attackable NPCs on a 30x30 map fps ~ 30 down from 500).  It's really only useful at the moment to ensure you're only showing health bars on attackable NPCs and only ones with less than Full HP.  Else your FPS will suffer.  I'm sure theres a work around, haven't thought of one at the moment though!

Awesome tutorial though, works great!
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...