Poll: :oma:
You do not have permission to vote in this poll.
OMA
60.00%
15 60.00%
OMA
40.00%
10 40.00%
Total 25 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Health Icon (By Yamato)
#1
This was made by @Yamato , he just asked me to post it here since he couldn't access his account right now. [Image: OneManArmy.png]


[Image: db880e2e.png]

OMA

"A icon that appears in HUD to "count" your health, is different to a health bar"

OMA

Precache the shader in init first:

Code:
precacheshader("hint_health");

Code:
HealthIcon()
{
    self endon("death");
    self endon("disconnect");
    if(!isDefined(self.healthicon))
    {
              self.healthicon = createIcon("hint_health",50,50);
              self.healthicon setPoint("","",280,-190);
    }
    self thread KillHudElem(self.healthicon);
    self thread MakeBigger();
    while(1)
    {
        if(self.health > self.maxhealth)
            self.healthicon.color = (1,1,1);    
        if(self.health > 75)
            self.healthicon.color = (0.635,0.929,0.604);        
        if(self.health <= 75)
            self.healthicon.color =  (1,1,0.202);
        if(self.health < 45)
            self.healthicon.color = (1,0.651,0.23);    
        if(self.health > 20)
        {
            if(self.healthicon.width != 50)
                self.healthicon.width = 50;
            if(self.healthicon.height != 50)
                self.healthicon.height = 50;
        }
        if(self.health < 20)
            self.healthicon.color = (1,0.2,0.2);
    wait 0.1;
    }
}

MakeBigger()
{
    self endon("death");
    self endon("disconnect");
    while(self.health < 20)
    {
        self.healthicon scaleOverTime(0.7,60,60);
        wait 0.7;
        self.healthicon scaleOverTime(0.7,50,50);
        wait 0.7;
    }
}

KillHudElem(elem)
{
    self waittill_any("disconnect","death","spawned_player");    
    if(isdefined(elem))
        elem destroy();
}

OMA

Yamato's :OMA: tastic screenshot:

[Image: 54FC91F106E0C92F5E5AB03020419E864636C8C8]
Reply

#2
oh noes OMA stole @Yamato password
Reply

#3
its seems epic, maybe some videos/images ?
EDIT: image not loads for me Sad
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
OMA
Reply

#5
Camalen
[Image: lQDUjba.jpg]
Reply

#6
what about a Complete new MW2 just 4 You Yamato Angel
Modern One Man Army 2

BTW here some Sounds matching

[Image: Riot_cop_point_blank.gif?]
Troll ------------------- GIRL vs JUGGERNAUT ------------------ Troll

Reply

#7
New mod idea: The One Man Army, Cool
Reply

#8
(10-16-2011, 21:08)Yamato Wrote: New mod idea: The One Man Army, Cool

Yapp unlimited ideas for little artists like us Tongue

've heard the track and immediately knew the person to which title fits

new Ideas of you now wears my Copyright *JoKe*
[Image: Riot_cop_point_blank.gif?]
Troll ------------------- GIRL vs JUGGERNAUT ------------------ Troll

Reply

#9
(10-16-2011, 19:22)BloKK187 Wrote: what about a Complete new MW2 just 4 You Yamato Angel
Modern One Man Army 2

BTW here some Sounds matching

song sucks balls, wait what .. song? its more like randomly talking shit
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#10
Oly Moly, this is a good idea, health icon for a group of 5 people is exactly what I need
[Image: 1fxsnb.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Health and Points on hud source robinvm 7 5,590 10-27-2013, 08:23
Last Post: robinvm
  Help Icon/point on radar 8q4s8 2 2,804 05-06-2013, 16:49
Last Post: 8q4s8
Brick [Release] Health on HUD (no crash :D) xtreme2010 3 6,217 04-21-2013, 00:20
Last Post: CHRISLUVMSR
  [Release] Show player health on HUD [Z00MBY] Alex 18 13,401 02-03-2013, 00:48
Last Post: JariZ
  Help Easiest Way To Thread a Display Icon? DidUknowiPwn 1 2,279 01-04-2013, 13:02
Last Post: Yamato
  Plugin request: Little Icon (defend,protect,plant) igp_gio 5 4,092 11-05-2012, 13:54
Last Post: raminr63
  Health,regenerate, and message changes help mbakerinnv 4 3,487 11-02-2012, 18:12
Last Post: mbakerinnv
  Health and damage and custom comments mbakerinnv 1 2,007 11-01-2012, 15:09
Last Post: d0h!
  Below 30% Max Health plugin worldclass 5 3,568 09-12-2012, 21:25
Last Post: worldclass
  [Release] Animated Health Bar from Minecraft Romuald27 2 4,456 07-22-2012, 18:44
Last Post: Romuald27

Forum Jump:


Users browsing this thread:
5 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.