mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-09-07 16:07:26 +00:00
Fix gib error
This commit is contained in:
@@ -255,6 +255,7 @@ onPlayerConnect()
|
||||
player thread onGrenadeFire();
|
||||
player thread onWeaponFired();
|
||||
player thread doPlayerModelFix();
|
||||
player thread onPlayerSpawned();
|
||||
|
||||
player thread connected();
|
||||
}
|
||||
@@ -664,6 +665,19 @@ addBots()
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
When any player spawns
|
||||
*/
|
||||
onPlayerSpawned()
|
||||
{
|
||||
self endon("disconnect");
|
||||
for(;;)
|
||||
{
|
||||
self waittill ( "spawned_player" );
|
||||
self.gib_ref = undefined;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
A thread for ALL players, will monitor and grenades thrown.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user