Files
Cesarus85--mjolnir-vr/source/interface/hud_weapon.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

35 lines
706 B
C

#ifndef __HUD_WEAPON_H
#define __HUD_WEAPON_H
#pragma once
struct player_datum;
void hud_initialize_weapon_interface(
void);
void hud_initialize_weapon_interface_for_new_map(
void);
void hud_dispose_weapon_interface_from_old_map(
void);
void hud_dispose_weapon_interface(
void);
/* port: network co-op (port/linux/game/network_coop.c) */
long hud_weapon_port_script_flags(
void);
void hud_weapon_port_set_script_flags(
long flags);
void scripted_hud_show_crosshair(
boolean show);
void hud_fix_weapon_data(
short old_local_player_index,
short new_local_player_index);
void hud_update_weapon(
void);
void hud_render_weapon_interface(
struct player_datum *player);
#endif // __HUD_WEAPON_H