mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-23 06:15:43 +00:00
show speed
This commit is contained in:
parent
0a5cf7b895
commit
3e406c5492
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user