show speed

This commit is contained in:
ineedbots 2021-07-24 20:36:03 -06:00
parent 0a5cf7b895
commit 3e406c5492

View File

@ -35,6 +35,7 @@ destoryHPdraw()
{
self waittill_either("disconnect", "death");
self.drawHP destroy();
self.drawSpeed destroy();
}
initHPdraw()
@ -42,6 +43,10 @@ initHPdraw()
self.drawHP = self createFontString("default", 1.2);
self.drawHP setPoint("BOTTOMRIGHT", "BOTTOMRIGHT", -150, -20);
self thread destoryHPdraw();
self.drawSpeed = self createFontString("default", 1.2);
self.drawSpeed setPoint("BOTTOMRIGHT", "BOTTOMRIGHT", -150, -10);
self thread destoryHPdraw();
}
drawHP()
@ -52,7 +57,8 @@ drawHP()
for(;;)
{
//self.drawHP setText("HP: "+self.health+" KS: "+self.pers["cur_kill_streak"]);
self.drawHP setText(self.health);
self.drawHP setValue(self.health);
self.drawSpeed setValue(length(self getVelocity()));
wait 0.05;
}
}