Files
Cesarus85--ringfall-mjolnir-vr/source/interface/hud_unit.h
T
xshxdex98 8194c5a00b Online co-op: play the campaign together over LAN and the internet
Hosting a co-op level from the Map screen (CO-OP CAMPAIGN, a level and its
difficulty, then Server Setup) makes a network game on the campaign map
with no game engine, which is what co-op is. Only the host runs the
scripts and the AI; port/linux/game/network_coop.c sends clients what the
scripts do (cutscenes, camera, fades, HUD, sounds, devices, named objects,
animations), and network_actors.c drives the host's AI units on every
machine. Players spawn beside each other, respawn beside a safe teammate,
and spectate while dead or waiting. Skipping a cutscene is a vote.
Players can join a game in progress at any time.
2026-10-05 00:31:30 -05:00

53 lines
1.1 KiB
C

#ifndef __HUD_UNIT_H
#define __HUD_UNIT_H
#pragma once
struct player_datum;
void hud_initialize_unit_interface(
void);
void hud_initialize_unit_interface_for_new_map(
void);
void hud_dispose_unit_interface_from_old_map(
void);
void hud_dispose_unit_interface(
void);
void hud_fix_unit_data(
short old_local_player_index,
short new_local_player_index);
void hud_update_unit(
void);
void hud_render_unit_interface(
struct player_datum *player);
void hud_render_damage_indicators(
short local_player_index);
void hud_play_unit_sounds(
struct player_datum const *player,
boolean show_hud);
void hud_tick_shield(
long player_index,
real amount);
/* port: network co-op (port/linux/game/network_coop.c) */
long hud_unit_port_script_flags(
void);
void hud_unit_port_set_script_flags(
long flags);
void scripted_hud_show_health(
boolean show);
void scripted_hud_blink_health(
boolean blink);
void scripted_hud_show_shield(
boolean show);
void scripted_hud_blink_shield(
boolean blink);
void scripted_hud_show_motion_sensor(
boolean show);
void scripted_hud_blink_motion_sensor(
boolean blink);
#endif // __HUD_UNIT_H