Files
perfect-dark/src/game/bondcutscene.c
T
2021-11-13 16:54:12 +10:00

36 lines
650 B
C

#include <ultra64.h>
#include "constants.h"
#include "bss.h"
#include "lib/lib_317f0.h"
#include "data.h"
#include "types.h"
void bcutsceneInit(void)
{
s32 i;
s32 j;
g_Vars.currentplayer->bondmovemode = MOVEMODE_CUTSCENE;
for (i = 0; i < PLAYERCOUNT(); i++) {
g_Vars.players[i]->joybutinhibit = 0xffffffff;
// @bug? Should this be < 2?
for (j = 0; j < 1; j++) {
struct hand *hand = &g_Vars.players[i]->hands[j];
if (hand->audiohandle && sndGetState(hand->audiohandle) != AL_STOPPED) {
audioStop(hand->audiohandle);
hand->audiohandle = NULL;
}
hand->firing = false;
}
}
}
void bcutsceneTick(void)
{
// empty
}