mirror of
https://github.com/ineedbots/iw2_bot_warfare.git
synced 2025-04-22 07:25:42 +00:00
Fix weirdness
This commit is contained in:
parent
221785f437
commit
39cc0f9a15
@ -272,9 +272,21 @@ onPlayerConnect()
|
|||||||
player thread watchWeapons();
|
player thread watchWeapons();
|
||||||
player thread watchVelocity();
|
player thread watchVelocity();
|
||||||
player thread watchVars();
|
player thread watchVars();
|
||||||
|
player thread doPlayerModelFix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Fixes a weird iw3 bug when for a frame the player doesn't have any bones when they first spawn in.
|
||||||
|
*/
|
||||||
|
doPlayerModelFix()
|
||||||
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
self waittill( "spawned_player" );
|
||||||
|
wait 0.05;
|
||||||
|
self.bot_model_fix = true;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
CoD2
|
CoD2
|
||||||
*/
|
*/
|
||||||
@ -442,6 +454,8 @@ connected()
|
|||||||
|
|
||||||
spawnBot()
|
spawnBot()
|
||||||
{
|
{
|
||||||
|
self endon( "disconnect" );
|
||||||
|
|
||||||
wait 5;
|
wait 5;
|
||||||
|
|
||||||
self notify( "menuresponse", game["menu_team"], "autoassign" );
|
self notify( "menuresponse", game["menu_team"], "autoassign" );
|
||||||
|
@ -466,6 +466,9 @@ getTagOrigin( where )
|
|||||||
if ( !isAlive( self ) )
|
if ( !isAlive( self ) )
|
||||||
return ( 0, 0, 0 );
|
return ( 0, 0, 0 );
|
||||||
|
|
||||||
|
if ( !isDefined( self.bot_model_fix ) )
|
||||||
|
return self.origin;
|
||||||
|
|
||||||
if ( !isDefined( self.tags ) )
|
if ( !isDefined( self.tags ) )
|
||||||
{
|
{
|
||||||
self.tags = [];
|
self.tags = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user