$$ACTION Misc Add Game Message [s:GameMessage] with HUD mesage [s:HUDMessage] aAddGameMessage Add Game Message Adds a message to the game message log, and shows another message on the HUD Parameters: GameMessage: The message that's added to the game message log HUDMessage: The message that's displayed on the HUD $$END */
| 1337 | $$END |
| 1338 | */ |
| 1339 | void aAddGameMessage(const char *game_message, const char *hud_message) { |
| 1340 | msafe_struct mstruct; |
| 1341 | |
| 1342 | strncpy(mstruct.message, game_message, sizeof(mstruct.message)); |
| 1343 | mstruct.message[sizeof(mstruct.message) - 1] = 0; |
| 1344 | |
| 1345 | strncpy(mstruct.message2, hud_message, sizeof(mstruct.message2)); |
| 1346 | mstruct.message[sizeof(mstruct.message) - 1] = 0; |
| 1347 | |
| 1348 | mstruct.color = GR_RGB(0, 242, 148); |
| 1349 | mstruct.state = 0; // means all players |
| 1350 | |
| 1351 | MSafe_CallFunction(MSAFE_MISC_GAME_MESSAGE, &mstruct); |
| 1352 | } |
| 1353 | |
| 1354 | /* |
| 1355 | $$ACTION |
no test coverage detected