void showDmg()
{
void self = getlocalvar("self"); //Get calling entity.
void vSpawn1;
void vSpawn2;
void alg1;
void alg2;
int num1;
int num2;
int damage = getlocalvar("damage");
int dir = getentityproperty(self, "direction");
int Vx = 0.5;
int Vy = 1;
int Px = 0;
int Pdif = 10;
if(damage < 10){
num1 = "empty";
num2 = damage;
}else{
num1 = damage/10;
num2 = damage-num1*10;
}
if(num1 < 0){
alg1 = "0";
}
else
if(num1 >= 0 && num1 < 1){
alg1 = "0";
}
else
if(num1 >= 1 && num1 < 2){
alg1 = "1";
}
else
if(num1 >= 2 && num1 < 3){
alg1 = "2";
}
else
if(num1 >= 3 && num1 < 4){
alg1 = "3";
}
else
if(num1 >= 4 && num1 < 5){
alg1 = "4";
}
else
if(num1 >= 5 && num1 < 6){
alg1 = "5";
}
else
if(num1 >= 6 && num1 < 7){
alg1 = "6";
}
else
if(num1 >= 7 && num1 < 8){
alg1 = "7";
}
else
if(num1 >= 8 && num1 < 9){
alg1 = "8";
}
else
if(num1 >= 9 && num1 < 10){
alg1 = "9";
}
else
{
alg1 = "empty";
}
if(num2 < 0){
alg2 = "0";
}
else
if(num2 >= 0 && num2 < 1){
alg2 = "0";
}
else
if(num2 >= 1 && num2 < 2){
alg2 = "1";
}
else
if(num2 >= 2 && num2 < 3){
alg2 = "2";
}
else
if(num2 >= 3 && num2 < 4){
alg2 = "3";
}
else
if(num2 >= 4 && num2 < 5){
alg2 = "4";
}
else
if(num2 >= 5 && num2 < 6){
alg2 = "5";
}
else
if(num2 >= 6 && num2 < 7){
alg2 = "6";
}
else
if(num2 >= 7 && num2 < 8){
alg2 = "7";
}
else
if(num2 >= 8 && num2 < 9){
alg2 = "8";
}
else
if(num2 >= 9 && num2 < 10){
alg2 = "9";
}
else
{
alg2 = "empty";
}
if(dir == 0){
Vx = -Vx;
Pdif = -Pdif;
}
vSpawn1 = spawn01(alg1,Px,100,0);
vSpawn2 = spawn01(alg2,Px+Pdif,100,0);
tossentity(vSpawn1, Vy, -Vx, 0);
tossentity(vSpawn2, Vy, -Vx, 0);
}