View Single Post
  #1  
Old 03-10-2011, 03:50 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Showimg HUD, possible V6 beta bug?

I just downloaded the new V6 beta and my hud is messed up.
This is my script:
PHP Code:
//FULLHEARTS

  
if (!this.heartsfirstdisplayed || this.maxhearts != clientr.maxhearts) {
    
hideimgs(1100, 1299);
    for (
i = 0; i < clientr.maxhearts; i++) {
      
showimg(1100 + i, "sorna_hud_heart_background.png", 64 + 110 + 18 * i, 12);
      
changeimgvis(1100 + i, 5);

      
showimg(1200 + i, "sorna_hud_heart.png", 64 + 110 + 18 * i + 1, 12);
      
changeimgvis(1200 + i, 5);
    }
    
this.maxhearts = clientr.maxhearts;
    
this.hearts = clientr.maxhearts + 1;
    
this.heartsfirstdisplayed = true;
  }

  
//HEARTS

  
if (this.hearts != clientr.hearts) {
    for (
i = 0;i < clientr.maxhearts; i++) {
      if (
clientr.hearts > i) {
        
findimg(1200 + i).image = "sorna_hud_heart.png";
        
findimg(1200 + i).alpha = 1;
        if (
i > clientr.hearts - 1)
          switch (
clientr.hearts % 1) {
            case 
0:
              
findimg(1200 + i).image = "sorna_hud_heart.png";
              break;
            case 
0.25:
              
findimg(1200 + i).image = "sorna_hud_heart_quarter.png";
              break;
            case 
0.5:
              
findimg(1200 + i).image = "sorna_hud_heart_half.png";
              break;
            case 
0.75:
              
findimg(1200 + i).image = "sorna_hud_heart_threequarters.png";
              break;
          }

      } else {
        
findimg(1200 + i).alpha = 0;
      }
    }
    
this.hearts = clientr.hearts;
  } 
There are always some extra hearts displayed next to the actual hearts and I have no idea why. On V5 it works fine and I think it did on the last beta too.

Also somehow my ALT+2 is messed up and everything is blue. :/
Attached Thumbnails
Click image for larger version

Name:	graal_1299763755.png
Views:	310
Size:	36.6 KB
ID:	52524  
Reply With Quote