Wing Commander II
Reconstructed Win32 source (1996)
Toggle main menu visibility
Loading...
Searching...
No Matches
eject.c
Go to the documentation of this file.
1
/*
2
* Player ejection and stranding sequences.
3
*
4
* Retail object 0x438020-0x4380AF (link order; see docs/ORDER.md).
5
*/
6
#include "
game.h
"
7
8
/* Function start: 0x438020 */
9
void
ShowPlayerEjectionSequence
(
void
)
10
{
11
InputPumpContext
*savedInputContext;
12
13
savedInputContext =
g_37_stPersonnelMousePointerState
.
context
;
14
ejection_sequence
((
short
)(
g_stCurrentPilotProfile
.
playerShipType
+ 0x19), 0);
15
if
(savedInputContext != 0)
16
SetInputViewport
(savedInputContext->
viewport
);
17
ConfigureInputPump
(1, 0);
18
g_18_nInterfaceEventMode
= 1;
19
g_88_nEventRepeatDelayState
= 0x14;
20
}
21
22
/* Function start: 0x438080 */
23
void
ShowPlayerStrandingSequence
(
void
)
24
{
25
ejection_sequence
((
short
)(
g_stCurrentPilotProfile
.
playerShipType
+ 500), 0);
26
}
ConfigureInputPump
int ConfigureInputPump(int slot, void(*pump)(void))
Definition
eventmgr.c:2112
SetInputViewport
void SetInputViewport(Viewport *viewport)
Definition
eventmgr.c:2093
ejection_sequence
void ejection_sequence(short outcome, signed char restoreCockpit)
Definition
midscene.c:63
ShowPlayerStrandingSequence
void ShowPlayerStrandingSequence(void)
Definition
eject.c:23
ShowPlayerEjectionSequence
void ShowPlayerEjectionSequence(void)
Definition
eject.c:9
game.h
Shared Win32 declarations, types and library interfaces.
g_37_stPersonnelMousePointerState
MouseCursorState g_37_stPersonnelMousePointerState
Definition
eventmgr.c:2544
g_88_nEventRepeatDelayState
unsigned char g_88_nEventRepeatDelayState
Definition
eventmgr.c:2500
g_stCurrentPilotProfile
PilotProfile g_stCurrentPilotProfile
Definition
viewrect.c:73
g_18_nInterfaceEventMode
short g_18_nInterfaceEventMode
Definition
eventmgr.c:2570
InputPumpContext
Definition
game_data.h:608
InputPumpContext::viewport
struct Viewport * viewport
Definition
game_data.h:610
MouseCursorState::context
struct InputPumpContext * context
Definition
game.h:175
PilotProfile::playerShipType
short playerShipType
Definition
game_data.h:1123
src
eject.c
Generated by
1.18.0