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

Function aPriestKeyEnter

scripts/Level6.cpp:953–966  ·  view source on GitHub ↗

$$ACTION Scripts Call When [o:Player] Enters Priest Puzzle aPriestKeyEnter Call When Player Enters Priest Puzzle $$END */

Source from the content-addressed store, hash-verified

951$$END
952*/
953void aPriestKeyEnter(int Player) {
954 if (Var_PriestPuzzleCompleted != 1.0f) {
955 Var_ThereIsPlayerInPriestKeyPuzzle = 1;
956 Var_PriestPlayerCurrentRoom = PriestKeySafeRoom;
957 Var_PriestPlayerCurrNode = 0;
958 Var_PriestPuzzleGoofed = 0;
959 Var_SavedObject = Player;
960
961 PriestPlaySoundAtNode(-1);
962 PriestJustEnteredPuzzle();
963 PriestResetPuzzle();
964 PriestTurnForceFieldOn(true);
965 }
966}
967
968/*
969$$ACTION

Callers 1

CallEventMethod · 0.85

Calls 4

PriestPlaySoundAtNodeFunction · 0.85
PriestJustEnteredPuzzleFunction · 0.85
PriestResetPuzzleFunction · 0.85
PriestTurnForceFieldOnFunction · 0.85

Tested by

no test coverage detected