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

Function DoSecretForPlayer

Descent3/object.cpp:3073–3079  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3071// Prints out a message when you've found a secret
3072#define SECRET_COLOR GR_RGB(0, 128, 255)
3073void DoSecretForPlayer(room *rp, object *objp) {
3074 int y = Game_window_h / 4;
3075 AddPersistentHUDMessage(SECRET_COLOR, HUD_MSG_PERSISTENT_CENTER, y, 5, HPF_FADEOUT + HPF_FREESPACE_DRAW,
3076 SOUND_GAME_MESSAGE, TXT_FOUND_SECRET);
3077
3078 ClearSecretFlags(rp);
3079}
3080
3081// --------------------------------------------------------------------
3082

Callers 1

DoSpecialPlayerStuffFunction · 0.85

Calls 2

AddPersistentHUDMessageFunction · 0.85
ClearSecretFlagsFunction · 0.85

Tested by

no test coverage detected