mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-23 08:00:24 +02:00
181 lines
4.1 KiB
C
181 lines
4.1 KiB
C
/*
|
|
OBSERVER.C
|
|
|
|
symbols in this file:
|
|
00078970 0040:
|
|
_code_00078970 (0000)
|
|
000789B0 0010:
|
|
_observer_initialize (0000)
|
|
000789C0 0130:
|
|
_code_000789c0 (0000)
|
|
00078AF0 0050:
|
|
_observer_initialize_for_new_map (0000)
|
|
00078B40 0010:
|
|
_observer_dispose_from_old_map (0000)
|
|
00078B50 0090:
|
|
_observer_get_camera (0000)
|
|
00078BE0 0080:
|
|
_observer_command_has_finished (0000)
|
|
00078C60 0070:
|
|
_observer_reconnect_to_structure_bsp (0000)
|
|
00078CD0 01d0:
|
|
_code_00078cd0 (0000)
|
|
00078EA0 0200:
|
|
_code_00078ea0 (0000)
|
|
000790A0 0050:
|
|
_observer_obsolete_position (0000)
|
|
000790F0 0090:
|
|
_observer_up_from_forward (0000)
|
|
00079180 0080:
|
|
_code_00079180 (0000)
|
|
00079200 00e0:
|
|
_code_00079200 (0000)
|
|
000792E0 0040:
|
|
_code_000792e0 (0000)
|
|
00079320 03b0:
|
|
_observer_set_camera (0000)
|
|
000796D0 0410:
|
|
_code_000796d0 (0000)
|
|
00079AE0 05a0:
|
|
_code_00079ae0 (0000)
|
|
0007A080 0620:
|
|
_code_0007a080 (0000)
|
|
0007A6A0 0120:
|
|
_code_0007a6a0 (0000)
|
|
0007A7C0 02f0:
|
|
_code_0007a7c0 (0000)
|
|
0007AAB0 0070:
|
|
_code_0007aab0 (0000)
|
|
0007AB20 0840:
|
|
_code_0007ab20 (0000)
|
|
0007B360 0050:
|
|
_code_0007b360 (0000)
|
|
0007B3B0 00a0:
|
|
_code_0007b3b0 (0000)
|
|
0007B450 0130:
|
|
_observer_update (0000)
|
|
00256F3C 001c:
|
|
_rdata_00256f3c (0000)
|
|
00256F58 0021:
|
|
??_C@_0CB@MBFPPGME@c?3?2halo?2SOURCE?2camera?2observer?4c@ (0000)
|
|
00256F80 0084:
|
|
??_C@_0IE@MHMDJBI@observer?9?$DOresult?4location?4cluste@ (0000)
|
|
00257004 0028:
|
|
??_C@_0CI@NBOHAIIP@observer?9?$DOvelocities?4n?$FLparameter@ (0000)
|
|
0025702C 0009:
|
|
??_C@_08LOHDAPLH@forward1?$AA@ (0000)
|
|
00257038 0004:
|
|
??_C@_03BAPGBPKP@up1?$AA@ (0000)
|
|
00257040 0042:
|
|
??_C@_0EC@LAMMDMMJ@?$CFs?0?5?$CFs?3?5assert_valid_real_vector@ (0000)
|
|
00257084 0009:
|
|
??_C@_08KHGIDOPG@forward0?$AA@ (0000)
|
|
00257090 0004:
|
|
??_C@_03JONCOOO@up0?$AA@ (0000)
|
|
00257098 0008:
|
|
__real@3fb99999a0000000 (0000)
|
|
002570A0 002d:
|
|
??_C@_0CN@JLJEHJNH@valid_field_of_view?$CIobserver?9?$DOfi@ (0000)
|
|
002570D0 0035:
|
|
??_C@_0DF@POOMEEJD@valid_world_real_point3d?$CI?$CGobserv@ (0000)
|
|
00257108 0025:
|
|
??_C@_0CF@HBCBGNBI@valid_focus_distance?$CIfocus_dista@ (0000)
|
|
00257130 0043:
|
|
??_C@_0ED@DKCKLPPD@valid_world_real_point3d?$CI?$CIreal_p@ (0000)
|
|
00257174 0013:
|
|
??_C@_0BD@EHDGCMIA@?$CGobserver?9?$DOforward?$AA@ (0000)
|
|
00257188 000e:
|
|
??_C@_0O@NJKILIMK@?$CGobserver?9?$DOup?$AA@ (0000)
|
|
00257198 002a:
|
|
??_C@_0CK@OGOGINPI@valid_world_real_point3d?$CI?$CGfocus_@ (0000)
|
|
002571C4 001d:
|
|
??_C@_0BN@FGDILBJM@?$CBobserver?9?$DOupdated_for_frame?$AA@ (0000)
|
|
002571E8 0062:
|
|
??_C@_0GC@DNGKAJPP@observer?9?$DOheader_signature?$DN?$DNOBSE@ (0000)
|
|
002DCC6C 0016:
|
|
_data_002dcc6c (0000)
|
|
0031D4B8 0a74:
|
|
_bss_0031d4b8 (0000)
|
|
*/
|
|
|
|
/* ---------- headers */
|
|
|
|
#include "cseries/cseries.h"
|
|
#include "observer.h"
|
|
|
|
#include "game/players.h"
|
|
#include "networking/network_connection.h"
|
|
#include "scenario/scenario.h"
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
struct observer
|
|
{
|
|
byte reserved000[0x74];
|
|
struct observer_result result;
|
|
byte reserved0b0[0x1EC];
|
|
};
|
|
|
|
struct observer_globals
|
|
{
|
|
real dtime;
|
|
struct observer local_players[MAXIMUM_NUMBER_OF_LOCAL_PLAYERS];
|
|
};
|
|
|
|
typedef char observer_result_offset_assert[
|
|
offsetof(struct observer, result) == 0x74 ? 1 : -1];
|
|
typedef char observer_size_assert[
|
|
sizeof(struct observer) == 0x29C ? 1 : -1];
|
|
typedef char observer_globals_size_assert[
|
|
sizeof(struct observer_globals) == 0xA74 ? 1 : -1];
|
|
|
|
/* ---------- prototypes */
|
|
|
|
/* ---------- globals */
|
|
|
|
extern struct observer_globals bss_0031d4b8;
|
|
|
|
/* ---------- public code */
|
|
|
|
void observer_initialize(
|
|
void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void observer_dispose_from_old_map(
|
|
void)
|
|
{
|
|
return;
|
|
}
|
|
|
|
void observer_reconnect_to_structure_bsp(
|
|
void)
|
|
{
|
|
short local_player_index;
|
|
|
|
for (local_player_index = 0;
|
|
local_player_index < MAXIMUM_NUMBER_OF_LOCAL_PLAYERS;
|
|
local_player_index++)
|
|
{
|
|
if (local_player_get_player_index(local_player_index) != NONE)
|
|
{
|
|
match_assert(
|
|
"c:\\halo\\SOURCE\\camera\\observer.c",
|
|
0x72,
|
|
local_player_index>=0 && local_player_index<MAXIMUM_NUMBER_OF_LOCAL_PLAYERS);
|
|
scenario_location_from_point(
|
|
&bss_0031d4b8.local_players[local_player_index].result.location,
|
|
&bss_0031d4b8.local_players[local_player_index].result.position);
|
|
}
|
|
}
|
|
|
|
return;
|
|
}
|
|
|
|
/* ---------- private code */
|