mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-06-17 18:52:12 +00:00
refactor: remove bot chat
This commit is contained in:
@@ -289,7 +289,6 @@ init()
|
||||
level thread watchScrabler();
|
||||
|
||||
level thread handleBots();
|
||||
level thread onPlayerChat();
|
||||
|
||||
array_thread( getentarray( "misc_turret", "classname" ), ::turret_monitoruse_watcher );
|
||||
}
|
||||
@@ -1345,24 +1344,6 @@ doFiringThread()
|
||||
self.bots_firing = false;
|
||||
}
|
||||
|
||||
/*
|
||||
When a player chats
|
||||
*/
|
||||
onPlayerChat()
|
||||
{
|
||||
for ( ;; )
|
||||
{
|
||||
level waittill( "say", message, player, is_hidden );
|
||||
|
||||
for ( i = 0; i < level.bots.size; i++ )
|
||||
{
|
||||
bot = level.bots[ i ];
|
||||
|
||||
bot BotNotifyBotEvent( "chat", "chat", message, player, is_hidden );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Monitors turret usage
|
||||
*/
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -394,7 +394,7 @@ BotNotifyBotEvent_( msg, a, b, c, d, e, f, g )
|
||||
}
|
||||
|
||||
/*
|
||||
Notify the bot chat message
|
||||
Notify a bot event
|
||||
*/
|
||||
BotNotifyBotEvent( msg, a, b, c, d, e, f, g )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user