MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / StartTeamHUDInputMessage

Function StartTeamHUDInputMessage

Descent3/hudmessage.cpp:716–727  ·  view source on GitHub ↗

Called when the player hits the Multiplayer team-message key. Puts the player in input mode, or if already inputting resets the hud input message.

Source from the content-addressed store, hash-verified

714// Called when the player hits the Multiplayer team-message key.
715// Puts the player in input mode, or if already inputting resets the hud input message.
716void StartTeamHUDInputMessage() {
717 // make sure that HUD_MESSAGE_TEAM is only set for team games
718 if (!Team_game) {
719 StartHUDInputMessage();
720 return;
721 }
722
723 HudInputMessage[0] = 0;
724 Doing_input_message = HUD_MESSAGE_TEAM;
725 HudInputMessageLen = 0;
726 SuspendControls();
727}
728
729// Given a hud message, it will determine who should get this message.
730// "name: message" = the player with the callsign name should get the message

Callers 2

ProcessNormalKeyFunction · 0.85
DoHUDInputMessageKeyFunction · 0.85

Calls 2

StartHUDInputMessageFunction · 0.85
SuspendControlsFunction · 0.85

Tested by

no test coverage detected