MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / enableMask

Function enableMask

TheForceEngine/TFE_DarkForces/mission.cpp:1042–1064  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040 }
1041
1042 void enableMask()
1043 {
1044 if (!s_playerInfo.itemMask) { return; }
1045
1046 if (!s_batteryPower)
1047 {
1048 hud_sendTextMessage(11);
1049 s_wearingGasmask = JFALSE;
1050 if (s_gasmaskTask)
1051 {
1052 task_free(s_gasmaskTask);
1053 s_gasmaskTask = nullptr;
1054 }
1055 return;
1056 }
1057
1058 s_wearingGasmask = JTRUE;
1059 hud_sendTextMessage(20);
1060 if (!s_gasmaskTask)
1061 {
1062 s_gasmaskTask = createSubTask("gasmask", gasmaskTaskFunc);
1063 }
1064 }
1065
1066 void cheat_gotoLevel(s32 index)
1067 {

Callers 2

handleGeneralInputFunction · 0.85

Calls 3

hud_sendTextMessageFunction · 0.85
task_freeFunction · 0.85
createSubTaskFunction · 0.85

Tested by

no test coverage detected