mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-19 16:32:53 +00:00
chat event
This commit is contained in:
parent
c4481626a5
commit
82c0c1152d
@ -193,6 +193,9 @@ init()
|
|||||||
thread handleBots();
|
thread handleBots();
|
||||||
|
|
||||||
thread doNonDediBots();
|
thread doNonDediBots();
|
||||||
|
level thread onPlayerChat();
|
||||||
|
|
||||||
|
// todo: _bot_chat
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1264,3 +1267,21 @@ fixGamemodes()
|
|||||||
wait 0.05;
|
wait 0.05;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
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 );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user