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

Function osipf_PlayerAddHudMessage

Descent3/osiris_predefs.cpp:2830–2839  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2828}
2829
2830void osipf_PlayerAddHudMessage(int handle, const char *str) {
2831 msafe_struct mo;
2832
2833 mo.objhandle = mo.id = handle;
2834 mo.color = GR_RGB(0, 255, 0);
2835 strncpy(mo.message, str, MSAFE_MESSAGE_LENGTH - 1);
2836 mo.message[MSAFE_MESSAGE_LENGTH - 1] = '\0';
2837
2838 msafe_CallFunction(MSAFE_MISC_HUD_MESSAGE, &mo);
2839}
2840
2841void osipf_ObjGhost(int handle, bool f_ghost) {
2842 object *obj = ObjGet(handle);

Callers

nothing calls this directly

Calls 2

msafe_CallFunctionFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected