mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-05-15 16:14:51 +00:00
Compare commits
No commits in common. "825d147ea234d9ef2fd73c317969a116818b8b08" and "e4d101a326a15e81d8a838995f3c378a39656556" have entirely different histories.
825d147ea2
...
e4d101a326
@ -207,11 +207,8 @@ init()
|
|||||||
if ( !isdefined( game[ "botWarfare" ] ) )
|
if ( !isdefined( game[ "botWarfare" ] ) )
|
||||||
{
|
{
|
||||||
game[ "botWarfare" ] = true;
|
game[ "botWarfare" ] = true;
|
||||||
game[ "botWarfareInitTime" ] = gettime();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
level.bot_inittime = gettime();
|
|
||||||
|
|
||||||
level.defuseobject = undefined;
|
level.defuseobject = undefined;
|
||||||
level.bots_smokelist = List();
|
level.bots_smokelist = List();
|
||||||
level.tbl_perkdata[ 0 ][ "reference_full" ] = true;
|
level.tbl_perkdata[ 0 ][ "reference_full" ] = true;
|
||||||
@ -442,23 +439,6 @@ fixPerksAndScriptKick()
|
|||||||
self.pers[ "isBot" ] = true;
|
self.pers[ "isBot" ] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
When a bot disconnects.
|
|
||||||
*/
|
|
||||||
onDisconnectPlayer()
|
|
||||||
{
|
|
||||||
name = self.name;
|
|
||||||
|
|
||||||
self waittill( "disconnect" );
|
|
||||||
waittillframeend;
|
|
||||||
|
|
||||||
for ( i = 0; i < level.bots.size; i++ )
|
|
||||||
{
|
|
||||||
bot = level.bots[ i ];
|
|
||||||
bot BotNotifyBotEvent( "connection", "disconnected", self, name );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
When a bot disconnects.
|
When a bot disconnects.
|
||||||
*/
|
*/
|
||||||
@ -476,14 +456,6 @@ connected()
|
|||||||
{
|
{
|
||||||
self endon( "disconnect" );
|
self endon( "disconnect" );
|
||||||
|
|
||||||
for ( i = 0; i < level.bots.size; i++ )
|
|
||||||
{
|
|
||||||
bot = level.bots[ i ];
|
|
||||||
bot BotNotifyBotEvent( "connection", "connected", self, self.name );
|
|
||||||
}
|
|
||||||
|
|
||||||
self thread onDisconnectPlayer();
|
|
||||||
|
|
||||||
if ( !isdefined( self.pers[ "bot_host" ] ) )
|
if ( !isdefined( self.pers[ "bot_host" ] ) )
|
||||||
{
|
{
|
||||||
self thread doHostCheck();
|
self thread doHostCheck();
|
||||||
|
@ -268,31 +268,10 @@ start_chat_watch()
|
|||||||
case "attack_dog":
|
case "attack_dog":
|
||||||
self thread bot_chat_attack_dog_watch( a, b, c, d, e, f, g );
|
self thread bot_chat_attack_dog_watch( a, b, c, d, e, f, g );
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "connection":
|
|
||||||
self thread bot_chat_connection_player_watch( a, b, c, d, e, f, g );
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
When a player connected
|
|
||||||
*/
|
|
||||||
bot_chat_connection_player_watch( conn, player, playername, d, e, f, g )
|
|
||||||
{
|
|
||||||
self endon( "disconnect" );
|
|
||||||
|
|
||||||
switch ( conn )
|
|
||||||
{
|
|
||||||
case "connected":
|
|
||||||
break;
|
|
||||||
|
|
||||||
case "disconnected":
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
start_startgame_watch
|
start_startgame_watch
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user