chat-mod/scripts/mp/_chat.gsc
6arelyFuture 23ba042119
All checks were successful
link / Link assets on Linux (push) Successful in 35s
init
2024-08-23 18:38:38 +02:00

26 lines
435 B
Plaintext

CHAT_MESSAGE_COUNT = 3096;
CHAT_PREFIX = "CHAT_MESSAGE_";
init()
{
thread message_thread();
}
message_thread()
{
level endon( "game_ended" );
while ( true )
{
index = randomint( 0, CHAT_MESSAGE_COUNT );
string = CHAT_PREFIX + index;
out = istring( string );
printconsole( "Sending chat message: \"" + out + "\"\n" );
exec("say \" + out + "\"" );
wait( 6 );
}
}