This commit is contained in:
23
scripts/mp/_chat.gsc
Normal file
23
scripts/mp/_chat.gsc
Normal file
@ -0,0 +1,23 @@
|
||||
CHAT_MESSAGE_COUNT = 3096;
|
||||
|
||||
init()
|
||||
{
|
||||
thread message_thread();
|
||||
}
|
||||
|
||||
message_thread()
|
||||
{
|
||||
level endon( "game_ended" );
|
||||
|
||||
while ( true )
|
||||
{
|
||||
row = randomintrange( 0, CHAT_MESSAGE_COUNT );
|
||||
|
||||
out = tablelookupbyrow( "mp/chat_messages.csv", row, 0 );
|
||||
|
||||
printconsole( "Sending chat message: \"" + out + "\"\n" );
|
||||
exec( "say \"" + out + "\"" );
|
||||
|
||||
wait( 6 );
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user