| if (_root.matrix) {
health=40; } else { health=10; } |
| health=3; |
| if (_root.maingame) {
health=175; } else { health=25; } |
| } else if (!_root.maingame) {
hat=beard=glasses=suit=1; } |
| } else{
if(guntype == #GUN#){ hat=#HAT#; beard=#BEARD#; glasses=#GLASSES#; suit=#SUIT#; } else{ hat=beard=glasses=suit=1; } } |
| } else{
if(guntype == #GUN# || guntype == #GUN#){ hat=#HAT#; beard=#BEARD#; glasses=#GLASSES#; suit=#SUIT#; } else{ hat=beard=glasses=suit=1; } } |
| } else{
if(guntype == #GUN#){ hat=#HAT#; beard=#BEARD#; glasses=#GLASSES#; suit=#SUIT#; } else if(guntype == #GUN#){ hat=#HAT#; beard=#BEARD#; glasses=#GLASSES#; suit=#SUIT#; } else{ hat=beard=glasses=suit=1; } } |
| }
} onClipEvent (enterFrame) { |
| }
HealthBarHealth = health; HealthBarWidth = 75; HealthBarHeight = 10; HealthBarColour = 0x3399FF; } onClipEvent (enterFrame) { clear(); if(health > 0){ this.beginFill(HealthBarColour); this.moveTo(-(HealthBarWidth/2),-105-HealthBarHeight); this.lineTo(((health/HealthBarHealth)*HealthBarWidth)-(HealthBarWidth/2),-105-HealthBarHeight); this.lineTo(((health/HealthBarHealth)*HealthBarWidth)-(HealthBarWidth/2),-105); this.lineTo(-(HealthBarWidth/2),-105); this.lineTo(-(HealthBarWidth/2),-105-HealthBarHeight); this.endFill(); } this.lineStyle(2,0x000000); this.moveTo(-(HealthBarWidth/2),-105-HealthBarHeight); this.lineTo(HealthBarWidth/2,-105-HealthBarHeight); this.lineTo(HealthBarWidth/2,-105); this.lineTo(-(HealthBarWidth/2),-105); this.lineTo(-(HealthBarWidth/2),-105-HealthBarHeight); |
| if (_root.invincibility || entertimer>0) {
health=10000000; } else if (health>100000) { health=10; } |
| if (_root.invincibility || entertimer>0) {
health=10000000; HealthBarHealth = health; } else if (health>100000) { health=10; HealthBarHealth = health; } |
| HealthBarColour = 0x3399FF; |
| HealthBarColour_Fine = 0x00CC00;
HealthBarColour_Hurt = 0xCCCC00; HealthBarColour_VeryHurt = 0xCC0000; |
| if(health > 0){
this.beginFill(HealthBarColour); |
| if(health > 0){
if(health/HealthBarHealth >= .75){ this.beginFill(HealthBarColour_Fine); } else if(health/HealthBarHealth >= .5){ this.beginFill(HealthBarColour_Hurt); } else{ this.beginFill(HealthBarColour_VeryHurt); } |