[Any] Simple HealthBars
1 Attachment(s)
This plugin is an example.
It is not configurable since the objective is simply to make a proof of concept. It is easy to reprogram so you can easily use it as a base or simply copypaste the parts you want into your plugin. It will display a helth bar above every player's head (except yourself). Since the Beams can only be displayed for a minimun of 0.1 second, the bar will only update on a 0.1 second timer. This results in a laggy movement of the bar. There are a few solutions: 1 - Render the bar once per freme. This will look great if the bar is not moving, but will create a ghosting effect since the bar still takes 0.1 seconds to disapear. 2 - use laser beam attached to another entity. It gives the best looking results, but the objective of this plugin is just to showcase the maths. Feel free to ask for help about the plugin and to make your own better version of it. |
Re: [Any] Simple HealthBars
Nice!!
|
Re: [Any] Simple HealthBars
Thank You <3
|
Re: [Any] Simple HealthBars
You should change this
PHP Code:
PHP Code:
Code:
TIMER_FLAG_NO_MAPCHANGE |
Re: [Any] Simple HealthBars
Thanks Franc1sco, I've updated it.
|
Re: [Any] Simple HealthBars
Worked for NMRIH
Thanks so much ♥️ |
Re: [Any] Simple HealthBars
1 Attachment(s)
Slightly optimized the plugin code (moved all variable creations out of the loop) and made it compatible with SM1.11+
PHP Code:
|
All times are GMT -4. The time now is 05:05. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.