mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
fix error
This commit is contained in:
parent
e0ad486ee0
commit
ca2f3c8f7c
@ -22,6 +22,7 @@ onPlayerConnect()
|
|||||||
onPlayerSpawned()
|
onPlayerSpawned()
|
||||||
{
|
{
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
self waittill( "spawned_player" );
|
self waittill( "spawned_player" );
|
||||||
@ -33,7 +34,8 @@ onPlayerSpawned()
|
|||||||
|
|
||||||
destoryHPdraw()
|
destoryHPdraw()
|
||||||
{
|
{
|
||||||
self waittill_either("disconnect", "death");
|
self endon( "disconnect" );
|
||||||
|
self waittill( "death" );
|
||||||
self.drawHP destroy();
|
self.drawHP destroy();
|
||||||
self.drawSpeed destroy();
|
self.drawSpeed destroy();
|
||||||
}
|
}
|
||||||
@ -54,6 +56,7 @@ drawHP()
|
|||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
self endon( "death" );
|
self endon( "death" );
|
||||||
self initHPdraw();
|
self initHPdraw();
|
||||||
|
|
||||||
for ( ;; )
|
for ( ;; )
|
||||||
{
|
{
|
||||||
//self.drawHP setText("HP: "+self.health+" KS: "+self.pers["cur_kill_streak"]);
|
//self.drawHP setText("HP: "+self.health+" KS: "+self.pers["cur_kill_streak"]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user