Raised This Month: $ Target: $400
 0% 

Solved HP Bar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MayroN
Senior Member
Join Date: Aug 2017
Location: Kyiv
Old 06-25-2020 , 21:11   HP Bar
Reply With Quote #1

There is a bar ( Health) Sprite that counts health from the end
In this section of the code produces Health from the beginning
How do I set the countdown from the end?
Thanks
PHP Code:
    if(HEALTH_BOSS < (cso_boss_health 1000.0))
    {
        
set_pev(y_hpbarpev_frame100.0)
    } else {
        
set_pev(y_hpbarpev_frame0.0 + ((((cso_boss_health 1000.0) - ) * 100) / HEALTH_BOSS))
    } 

Last edited by MayroN; 07-02-2020 at 19:18.
MayroN is offline
Send a message via ICQ to MayroN Send a message via Skype™ to MayroN
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode