MiniDoom

src/d_net.ml

Runs legacy lockstep networking and host-authoritative input, snapshot, phase, stats, and chat replication.

Package
(global)
Reachable
Yes

Imports

Declarations

_DNet_CopyCmd

inline function _DNet_CopyCmd(src)

Copies a tic command by value so ring-buffer reuse cannot mutate queued input.

ParameterTypeDefaultDescription
srcdynamic—Src value supplied to `_DNet_CopyCmd`.

View source

_DNet_CopyStoreToBuffer

function _DNet_CopyStoreToBuffer(src)

Commits a decoded packet store into netbuffer only after validation succeeds.

ParameterTypeDefaultDescription
srcdynamic—Src value supplied to `_DNet_CopyStoreToBuffer`.

View source

_DNet_DefaultCmds

inline function _DNet_DefaultCmds()

Allocates a full BACKUPTICS command ring initialized to neutral input.

View source

_DNet_EnsureStateArrays

function _DNet_EnsureStateArrays()

Restores all legacy lockstep rings to protocol sizes before packet/tic access.

View source

_DNet_EnumIndex

inline function _DNet_EnumIndex(v, limit)

Normalizes enum/int values to a bounded integer enum index.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.
limitdynamic—Limit value supplied to `_DNet_EnumIndex`.

View source

_dnet_exitmsg

_dnet_exitmsg

Stores the mutable dnet exitmsg text used by the d net subsystem.

View source

_dnet_frameon

_dnet_frameon

Tracks the mutable dnet frameon value used by the d net subsystem.

View source

_dnet_frameskip

_dnet_frameskip

Stores the dnet frameskip collection used by the d net subsystem.

View source

_DNet_IDiv

inline function _DNet_IDiv(a, b)

Returns a quotient truncated toward zero for tic math, with invalid operands mapped to zero.

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_IsSeq

inline function _DNet_IsSeq(v)

Accepts arrays and lists wherever network codecs require indexed sequence access.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_DNet_MakeStoreFromBuffer

function _DNet_MakeStoreFromBuffer()

Takes an atomic value-copy snapshot of the mutable legacy netbuffer.

View source

_DNET_MP_ACTOR_CANDIDATE_MULTIPLIER

const _DNET_MP_ACTOR_CANDIDATE_MULTIPLIER = 6

Defines dnet mp actor candidate multiplier for the d net subsystem.

View source

_DNET_MP_ACTOR_POOL_PER_SNAPSHOT

const _DNET_MP_ACTOR_POOL_PER_SNAPSHOT = 80

Defines dnet mp actor pool per snapshot for the d net subsystem.

View source

_DNET_MP_CHAT_BROADCAST

const _DNET_MP_CHAT_BROADCAST = 5

Defines dnet mp chat broadcast for the d net subsystem.

View source

_DNET_MP_CHAT_COOLDOWN_TICS

const _DNET_MP_CHAT_COOLDOWN_TICS = 4

Defines dnet mp chat cooldown tics for the d net subsystem.

View source

_dnet_mp_client_actor_ids

_dnet_mp_client_actor_ids

Stores the dnet mp client actor ids collection used by the d net subsystem.

View source

_dnet_mp_client_actor_kind

_dnet_mp_client_actor_kind

Stores the dnet mp client actor kind collection used by the d net subsystem.

View source

_dnet_mp_client_actor_last_snap_tic

_dnet_mp_client_actor_last_snap_tic

Stores the dnet mp client actor last snap tic collection used by the d net subsystem.

View source

_dnet_mp_client_actor_miss

_dnet_mp_client_actor_miss

Stores the dnet mp client actor miss collection used by the d net subsystem.

View source

_dnet_mp_client_actor_refs

_dnet_mp_client_actor_refs

Stores the dnet mp client actor refs collection used by the d net subsystem.

View source

_dnet_mp_client_actor_tang

_dnet_mp_client_actor_tang

Stores the dnet mp client actor tang collection used by the d net subsystem.

View source

_dnet_mp_client_actor_tx

_dnet_mp_client_actor_tx

Stores the dnet mp client actor tx collection used by the d net subsystem.

View source

_dnet_mp_client_actor_ty

_dnet_mp_client_actor_ty

Stores the dnet mp client actor ty collection used by the d net subsystem.

View source

_dnet_mp_client_actor_tz

_dnet_mp_client_actor_tz

Stores the dnet mp client actor tz collection used by the d net subsystem.

View source

_dnet_mp_client_actor_vx

_dnet_mp_client_actor_vx

Stores the dnet mp client actor vx collection used by the d net subsystem.

View source

_dnet_mp_client_actor_vy

_dnet_mp_client_actor_vy

Stores the dnet mp client actor vy collection used by the d net subsystem.

View source

_dnet_mp_client_actor_vz

_dnet_mp_client_actor_vz

Stores the dnet mp client actor vz collection used by the d net subsystem.

View source

_dnet_mp_client_cached_wistats

_dnet_mp_client_cached_wistats

Holds the optional dnet mp client cached wistats resource used by the d net subsystem.

View source

_dnet_mp_client_claimed_actors

_dnet_mp_client_claimed_actors

Tracks the mutable dnet mp client claimed actors value used by the d net subsystem.

View source

_DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MISSILE

const _DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MISSILE = 24 * FRACUNIT

Defines the maximum dnet mp client extrap abs vel max missile accepted by the d net subsystem.

View source

_DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MOBILE

const _DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MOBILE = 12 * FRACUNIT

Defines the maximum dnet mp client extrap abs vel max mobile accepted by the d net subsystem.

View source

_DNET_MP_CLIENT_HARD_SNAP_DIST

const _DNET_MP_CLIENT_HARD_SNAP_DIST = 128 * FRACUNIT

Defines dnet mp client hard snap dist for the d net subsystem.

View source

_dnet_mp_client_have_wistats

_dnet_mp_client_have_wistats

Tracks whether dnet mp client have wistats is active in the d net subsystem.

View source

_DNET_MP_CLIENT_INTERP_DEN

const _DNET_MP_CLIENT_INTERP_DEN = 3

Defines dnet mp client interp den for the d net subsystem.

View source

_DNET_MP_CLIENT_INTERP_NUM

const _DNET_MP_CLIENT_INTERP_NUM = 1

Defines the dnet mp client interp num count used by the d net subsystem.

View source

_dnet_mp_client_last_phase_tick

_dnet_mp_client_last_phase_tick

Tracks the mutable dnet mp client last phase tick value used by the d net subsystem.

View source

_dnet_mp_client_last_smooth_tic

_dnet_mp_client_last_smooth_tic

Tracks the mutable dnet mp client last smooth tic value used by the d net subsystem.

View source

_dnet_mp_client_last_snapshot_tick

_dnet_mp_client_last_snapshot_tick

Tracks the mutable dnet mp client last snapshot tick value used by the d net subsystem.

View source

_dnet_mp_client_local_pickups_armed

_dnet_mp_client_local_pickups_armed

Tracks whether dnet mp client local pickups armed is active in the d net subsystem.

View source

_DNET_MP_CLIENT_MAX_EXTRAP_MISSILE

const _DNET_MP_CLIENT_MAX_EXTRAP_MISSILE = 4

Defines the maximum dnet mp client max extrap missile accepted by the d net subsystem.

View source

_DNET_MP_CLIENT_MAX_EXTRAP_MOBILE

const _DNET_MP_CLIENT_MAX_EXTRAP_MOBILE = 2

Defines the maximum dnet mp client max extrap mobile accepted by the d net subsystem.

View source

_dnet_mp_client_pending_snapshot

_dnet_mp_client_pending_snapshot

Holds the optional dnet mp client pending snapshot resource used by the d net subsystem.

View source

_dnet_mp_client_player_last_snap_tic

_dnet_mp_client_player_last_snap_tic

Stores the dnet mp client player last snap tic collection used by the d net subsystem.

View source

_dnet_mp_client_player_tang

_dnet_mp_client_player_tang

Stores the dnet mp client player tang collection used by the d net subsystem.

View source

_dnet_mp_client_player_tx

_dnet_mp_client_player_tx

Stores the dnet mp client player tx collection used by the d net subsystem.

View source

_dnet_mp_client_player_ty

_dnet_mp_client_player_ty

Stores the dnet mp client player ty collection used by the d net subsystem.

View source

_dnet_mp_client_player_tz

_dnet_mp_client_player_tz

Stores the dnet mp client player tz collection used by the d net subsystem.

View source

_dnet_mp_client_player_vx

_dnet_mp_client_player_vx

Stores the dnet mp client player vx collection used by the d net subsystem.

View source

_dnet_mp_client_player_vy

_dnet_mp_client_player_vy

Stores the dnet mp client player vy collection used by the d net subsystem.

View source

_dnet_mp_client_player_vz

_dnet_mp_client_player_vz

Stores the dnet mp client player vz collection used by the d net subsystem.

View source

_dnet_mp_client_seen_players

_dnet_mp_client_seen_players

Tracks the mutable dnet mp client seen players value used by the d net subsystem.

View source

_DNET_MP_CLIENT_STALE_GRACE_SWEEPS

const _DNET_MP_CLIENT_STALE_GRACE_SWEEPS = 2

Defines dnet mp client stale grace sweeps for the d net subsystem.

View source

_dnet_mp_client_ui_tic

_dnet_mp_client_ui_tic

Tracks the mutable dnet mp client ui tic value used by the d net subsystem.

View source

_dnet_mp_client_wait_wistats

_dnet_mp_client_wait_wistats

Tracks whether dnet mp client wait wistats is active in the d net subsystem.

View source

_dnet_mp_client_wistats_error

_dnet_mp_client_wistats_error

Stores the mutable dnet mp client wistats error text used by the d net subsystem.

View source

_dnet_mp_client_wistats_last_tick

_dnet_mp_client_wistats_last_tick

Tracks the mutable dnet mp client wistats last tick value used by the d net subsystem.

View source

_dnet_mp_client_wistats_next_req_tic

_dnet_mp_client_wistats_next_req_tic

Tracks the mutable dnet mp client wistats next req tic value used by the d net subsystem.

View source

_dnet_mp_client_wistats_req_count

_dnet_mp_client_wistats_req_count

Tracks the mutable dnet mp client wistats req count value used by the d net subsystem.

View source

_dnet_mp_client_world_bootstrapped

_dnet_mp_client_world_bootstrapped

Tracks whether dnet mp client world bootstrapped is active in the d net subsystem.

View source

_dnet_mp_dbg_snap_built

_dnet_mp_dbg_snap_built

Tracks the mutable dnet mp dbg snap built value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_calls

_dnet_mp_dbg_snap_calls

Tracks the mutable dnet mp dbg snap calls value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_sent

_dnet_mp_dbg_snap_sent

Tracks the mutable dnet mp dbg snap sent value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_skip_nosend

_dnet_mp_dbg_snap_skip_nosend

Tracks the mutable dnet mp dbg snap skip nosend value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_skip_not_host

_dnet_mp_dbg_snap_skip_not_host

Tracks the mutable dnet mp dbg snap skip not host value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_skip_not_level

_dnet_mp_dbg_snap_skip_not_level

Tracks the mutable dnet mp dbg snap skip not level value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_skip_rate

_dnet_mp_dbg_snap_skip_rate

Tracks the mutable dnet mp dbg snap skip rate value used by the d net subsystem.

View source

_dnet_mp_dbg_snap_targets

_dnet_mp_dbg_snap_targets

Tracks the mutable dnet mp dbg snap targets value used by the d net subsystem.

View source

_dnet_mp_dbg_unknown_payload_drop

_dnet_mp_dbg_unknown_payload_drop

Tracks the mutable dnet mp dbg unknown payload drop value used by the d net subsystem.

View source

_DNET_MP_FULL_SNAPSHOT_PERIOD

const _DNET_MP_FULL_SNAPSHOT_PERIOD = 35

Defines dnet mp full snapshot period for the d net subsystem.

View source

_dnet_mp_host_actor_active_count

_dnet_mp_host_actor_active_count

Tracks the mutable dnet mp host actor active count value used by the d net subsystem.

View source

_dnet_mp_host_actor_cursor

_dnet_mp_host_actor_cursor

Tracks the mutable dnet mp host actor cursor value used by the d net subsystem.

View source

_dnet_mp_host_actor_ids

_dnet_mp_host_actor_ids

Stores the dnet mp host actor ids collection used by the d net subsystem.

View source

_dnet_mp_host_actor_miss

_dnet_mp_host_actor_miss

Stores the dnet mp host actor miss collection used by the d net subsystem.

View source

_dnet_mp_host_actor_nodes

_dnet_mp_host_actor_nodes

Stores the dnet mp host actor nodes collection used by the d net subsystem.

View source

_dnet_mp_host_actor_refs

_dnet_mp_host_actor_refs

Stores the dnet mp host actor refs collection used by the d net subsystem.

View source

_dnet_mp_host_actor_seen

_dnet_mp_host_actor_seen

Tracks the mutable dnet mp host actor seen value used by the d net subsystem.

View source

_dnet_mp_host_cached_wistats

_dnet_mp_host_cached_wistats

Holds the optional dnet mp host cached wistats resource used by the d net subsystem.

View source

_dnet_mp_host_input_active_logged

_dnet_mp_host_input_active_logged

Stores the dnet mp host input active logged collection used by the d net subsystem.

View source

_dnet_mp_host_last_actor_sig

_dnet_mp_host_last_actor_sig

Stores the dnet mp host last actor sig collection used by the d net subsystem.

View source

_dnet_mp_host_last_chat_tic

_dnet_mp_host_last_chat_tic

Stores the dnet mp host last chat tic collection used by the d net subsystem.

View source

_dnet_mp_host_last_frags

_dnet_mp_host_last_frags

Stores the dnet mp host last frags collection used by the d net subsystem.

View source

_dnet_mp_host_last_phase_key

_dnet_mp_host_last_phase_key

Holds the optional dnet mp host last phase key resource used by the d net subsystem.

View source

_dnet_mp_host_last_player_sig

_dnet_mp_host_last_player_sig

Stores the dnet mp host last player sig collection used by the d net subsystem.

View source

_dnet_mp_host_last_sector_ceiling

_dnet_mp_host_last_sector_ceiling

Stores the dnet mp host last sector ceiling collection used by the d net subsystem.

View source

_dnet_mp_host_last_sector_floor

_dnet_mp_host_last_sector_floor

Stores the dnet mp host last sector floor collection used by the d net subsystem.

View source

_dnet_mp_host_last_sector_light

_dnet_mp_host_last_sector_light

Stores the dnet mp host last sector light collection used by the d net subsystem.

View source

_dnet_mp_host_last_sector_special

_dnet_mp_host_last_sector_special

Stores the dnet mp host last sector special collection used by the d net subsystem.

View source

_dnet_mp_host_last_side_bottom

_dnet_mp_host_last_side_bottom

Stores the dnet mp host last side bottom collection used by the d net subsystem.

View source

_dnet_mp_host_last_side_mid

_dnet_mp_host_last_side_mid

Stores the dnet mp host last side mid collection used by the d net subsystem.

View source

_dnet_mp_host_last_side_top

_dnet_mp_host_last_side_top

Stores the dnet mp host last side top collection used by the d net subsystem.

View source

_dnet_mp_host_last_wistats_req_tic

_dnet_mp_host_last_wistats_req_tic

Stores the dnet mp host last wistats req tic collection used by the d net subsystem.

View source

_dnet_mp_host_last_wistats_tic

_dnet_mp_host_last_wistats_tic

Tracks the mutable dnet mp host last wistats tic value used by the d net subsystem.

View source

_dnet_mp_host_next_actor_id

_dnet_mp_host_next_actor_id

Tracks the mutable dnet mp host next actor id value used by the d net subsystem.

View source

_dnet_mp_host_removed_ids

_dnet_mp_host_removed_ids

Stores the dnet mp host removed ids collection used by the d net subsystem.

View source

_dnet_mp_host_sector_cursor

_dnet_mp_host_sector_cursor

Tracks the mutable dnet mp host sector cursor value used by the d net subsystem.

View source

_dnet_mp_host_side_cursor

_dnet_mp_host_side_cursor

Tracks the mutable dnet mp host side cursor value used by the d net subsystem.

View source

_dnet_mp_host_slot_fullsync_burst

_dnet_mp_host_slot_fullsync_burst

Stores the dnet mp host slot fullsync burst collection used by the d net subsystem.

View source

_DNET_MP_INPUT_ACTIVE_REDUNDANT_COPIES

const _DNET_MP_INPUT_ACTIVE_REDUNDANT_COPIES = 2

Defines dnet mp input active redundant copies for the d net subsystem.

View source

_DNET_MP_INPUT_KEEPALIVE_TICS

const _DNET_MP_INPUT_KEEPALIVE_TICS = 1

Defines dnet mp input keepalive tics for the d net subsystem.

View source

_DNET_MP_JOIN_FULLSYNC_BURST_TICS

const _DNET_MP_JOIN_FULLSYNC_BURST_TICS = 70

Defines dnet mp join fullsync burst tics for the d net subsystem.

View source

_dnet_mp_last_input_cmd

_dnet_mp_last_input_cmd

Holds the optional dnet mp last input cmd resource used by the d net subsystem.

View source

_dnet_mp_last_input_send_tic

_dnet_mp_last_input_send_tic

Tracks the mutable dnet mp last input send tic value used by the d net subsystem.

View source

_dnet_mp_last_input_seq

_dnet_mp_last_input_seq

Tracks the mutable dnet mp last input seq value used by the d net subsystem.

View source

_dnet_mp_last_phase_tic

_dnet_mp_last_phase_tic

Tracks the mutable dnet mp last phase tic value used by the d net subsystem.

View source

_dnet_mp_last_snapshot_tic

_dnet_mp_last_snapshot_tic

Tracks the mutable dnet mp last snapshot tic value used by the d net subsystem.

View source

_dnet_mp_local_name_announced

_dnet_mp_local_name_announced

Tracks whether dnet mp local name announced is active in the d net subsystem.

View source

_DNET_MP_MAX_ACTORS_PER_SNAPSHOT

const _DNET_MP_MAX_ACTORS_PER_SNAPSHOT = 20

Defines the maximum dnet mp max actors per snapshot accepted by the d net subsystem.

View source

_DNET_MP_MAX_REMOVED_PER_SNAPSHOT

const _DNET_MP_MAX_REMOVED_PER_SNAPSHOT = 96

Defines the maximum dnet mp max removed per snapshot accepted by the d net subsystem.

View source

_DNET_MP_MAX_SECTORS_PER_SNAPSHOT

const _DNET_MP_MAX_SECTORS_PER_SNAPSHOT = 8

Defines the maximum dnet mp max sectors per snapshot accepted by the d net subsystem.

View source

_DNET_MP_MAX_SIDES_PER_SNAPSHOT

const _DNET_MP_MAX_SIDES_PER_SNAPSHOT = 8

Defines the maximum dnet mp max sides per snapshot accepted by the d net subsystem.

View source

_DNET_MP_NAME_BYTES

const _DNET_MP_NAME_BYTES = 26

Defines dnet mp name bytes for the d net subsystem.

View source

_DNET_MP_PAYLOAD_BUDGET

const _DNET_MP_PAYLOAD_BUDGET = 1391

Keep below transport frame size (_MPPLAT_RECV_MAX=1400, minus 9-byte MP frame header with checksum). Defines dnet mp payload budget for the d net subsystem.

View source

_DNET_MP_PHASE_INTERVAL

const _DNET_MP_PHASE_INTERVAL = 4

Defines dnet mp phase interval for the d net subsystem.

View source

_DNET_MP_PLAYER_ROW_BYTES

const _DNET_MP_PLAYER_ROW_BYTES = 88

Defines dnet mp player row bytes for the d net subsystem.

View source

_DNET_MP_RELEVANCE_DISTANCE

const _DNET_MP_RELEVANCE_DISTANCE = 1536 * FRACUNIT

Defines dnet mp relevance distance for the d net subsystem.

View source

_DNET_MP_RELEVANCE_MISSILE_BONUS

const _DNET_MP_RELEVANCE_MISSILE_BONUS = 768 * FRACUNIT

Defines dnet mp relevance missile bonus for the d net subsystem.

View source

_DNET_MP_RELEVANCE_SPECIAL_BONUS

const _DNET_MP_RELEVANCE_SPECIAL_BONUS = 384 * FRACUNIT

Defines dnet mp relevance special bonus for the d net subsystem.

View source

_DNET_MP_RELEVANCE_VIEW_BONUS

const _DNET_MP_RELEVANCE_VIEW_BONUS = 2048 * FRACUNIT

Defines dnet mp relevance view bonus for the d net subsystem.

View source

_DNET_MP_RELEVANCE_VIEW_HALFANGLE

const _DNET_MP_RELEVANCE_VIEW_HALFANGLE = 536870912

Defines dnet mp relevance view halfangle for the d net subsystem.

View source

_DNET_MP_REMOTE_CMD_STALE_TICS

const _DNET_MP_REMOTE_CMD_STALE_TICS = 6

Defines dnet mp remote cmd stale tics for the d net subsystem.

View source

_dnet_mp_remote_cmd_tic

_dnet_mp_remote_cmd_tic

Stores the dnet mp remote cmd tic collection used by the d net subsystem.

View source

_dnet_mp_remote_cmd_valid

_dnet_mp_remote_cmd_valid

Stores the dnet mp remote cmd valid collection used by the d net subsystem.

View source

_dnet_mp_remote_cmds

_dnet_mp_remote_cmds

Stores the dnet mp remote cmds collection used by the d net subsystem.

View source

_dnet_mp_remote_input_last_seq

_dnet_mp_remote_input_last_seq

Stores the dnet mp remote input last seq collection used by the d net subsystem.

View source

_DNET_MP_REMOVE_RESEND_COUNT

const _DNET_MP_REMOVE_RESEND_COUNT = 3

Defines dnet mp remove resend count for the d net subsystem.

View source

_DNET_MP_REMOVED_QUEUE_MAX

const _DNET_MP_REMOVED_QUEUE_MAX = 4096

Defines the maximum dnet mp removed queue max accepted by the d net subsystem.

View source

_dnet_mp_snap_cache_actor_ids

_dnet_mp_snap_cache_actor_ids

Stores the dnet mp snap cache actor ids collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_actor_refs

_dnet_mp_snap_cache_actor_refs

Stores the dnet mp snap cache actor refs collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_force_all

_dnet_mp_snap_cache_force_all

Tracks whether dnet mp snap cache force all is active in the d net subsystem.

View source

_dnet_mp_snap_cache_player_rows

_dnet_mp_snap_cache_player_rows

Stores the dnet mp snap cache player rows collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_removed_ids

_dnet_mp_snap_cache_removed_ids

Stores the dnet mp snap cache removed ids collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_sector_rows

_dnet_mp_snap_cache_sector_rows

Stores the dnet mp snap cache sector rows collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_side_rows

_dnet_mp_snap_cache_side_rows

Stores the dnet mp snap cache side rows collection used by the d net subsystem.

View source

_dnet_mp_snap_cache_tick

_dnet_mp_snap_cache_tick

Tracks the mutable dnet mp snap cache tick value used by the d net subsystem.

View source

_DNET_MP_SNAPSHOT_INTERVAL

const _DNET_MP_SNAPSHOT_INTERVAL = 1

Defines dnet mp snapshot interval for the d net subsystem.

View source

_DNET_MP_STATIC_HEARTBEAT_FULLS

const _DNET_MP_STATIC_HEARTBEAT_FULLS = 8

Defines dnet mp static heartbeat fulls for the d net subsystem.

View source

_dnet_mp_was_authoritative

_dnet_mp_was_authoritative

Tracks whether dnet mp was authoritative is active in the d net subsystem.

View source

_dnet_mp_was_client

_dnet_mp_was_client

Tracks whether dnet mp was client is active in the d net subsystem.

View source

_DNET_MP_WISTATS_BASE_ROW_BYTES

const _DNET_MP_WISTATS_BASE_ROW_BYTES = 24

Defines dnet mp wistats base row bytes for the d net subsystem.

View source

_DNET_MP_WISTATS_BROADCAST_INTERVAL

const _DNET_MP_WISTATS_BROADCAST_INTERVAL = 18

Defines dnet mp wistats broadcast interval for the d net subsystem.

View source

_DNET_MP_WISTATS_MAX_RETRIES

const _DNET_MP_WISTATS_MAX_RETRIES = 3

Defines the maximum dnet mp wistats max retries accepted by the d net subsystem.

View source

_DNET_MP_WISTATS_REQ_COOLDOWN_TICS

const _DNET_MP_WISTATS_REQ_COOLDOWN_TICS = 4

Defines dnet mp wistats req cooldown tics for the d net subsystem.

View source

_DNET_MP_WISTATS_RETRY_TICS

const _DNET_MP_WISTATS_RETRY_TICS = 12

Defines dnet mp wistats retry tics for the d net subsystem.

View source

_DNET_MP_WISTATS_ROW_BYTES

const _DNET_MP_WISTATS_ROW_BYTES = _DNET_MP_WISTATS_BASE_ROW_BYTES + _DNET_MP_NAME_BYTES

Defines dnet mp wistats row bytes for the d net subsystem.

View source

_DNet_MPAbs32

inline function _DNet_MPAbs32(v)

Returns integer absolute value for authoritative snapshot math.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_DNet_MPActiveSlots

inline function _DNet_MPActiveSlots()

Returns currently active multiplayer slots with host slot always present.

View source

_DNet_MPActorIsStaticForSync

inline function _DNet_MPActorIsStaticForSync(mo)

Detects mostly-static actor classes (pickups/corpses/decor) that can be heartbeated less often.

ParameterTypeDefaultDescription
modynamic—Map object affected by the operation.

View source

_DNet_MPActorStateKey

inline function _DNet_MPActorStateKey(mo)

Builds compact actor state key used to suppress unchanged actor replication.

ParameterTypeDefaultDescription
modynamic—Map object affected by the operation.

View source

_DNet_MPActorUsable

inline function _DNet_MPActorUsable(mo)

Checks whether thinker owner is a currently valid non-player mobj for replication.

ParameterTypeDefaultDescription
modynamic—Map object affected by the operation.

View source

_DNet_MPAngleAbsDelta

inline function _DNet_MPAngleAbsDelta(a, b)

Returns shortest unsigned absolute angle delta (0..0x80000000).

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPAngleDeltaSigned

inline function _DNet_MPAngleDeltaSigned(toAng, fromAng)

Returns shortest signed angular delta (to-from) in Doom angle space.

ParameterTypeDefaultDescription
toAngdynamic—To ang value supplied to `_DNet_MPAngleDeltaSigned`.
fromAngdynamic—From ang value supplied to `_DNet_MPAngleDeltaSigned`.

View source

_DNet_MPApproxDist2D

inline function _DNet_MPApproxDist2D(dx, dy)

Computes Doom-style fast 2D distance approximation for relevance filtering.

ParameterTypeDefaultDescription
dxdynamic—Horizontal coordinate or vector component represented by dx.
dydynamic—Vertical coordinate or vector component represented by dy.

View source

_DNet_MPBuildChatPacket

function _DNet_MPBuildChatPacket(senderSlot, dest, msg)

Builds one authoritative multiplayer chat packet.

ParameterTypeDefaultDescription
senderSlotdynamic—Sender slot value supplied to `_DNet_MPBuildChatPacket`.
destdynamic—Dest value supplied to `_DNet_MPBuildChatPacket`.
msgdynamic—Msg value supplied to `_DNet_MPBuildChatPacket`.

View source

_DNet_MPBuildFeedPacket

inline function _DNet_MPBuildFeedPacket(code, a, b)

Builds a small gameplay event packet (kill feed, etc.).

ParameterTypeDefaultDescription
codedynamic—Code value supplied to `_DNet_MPBuildFeedPacket`.
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPBuildIntermissionWB

function _DNet_MPBuildIntermissionWB()

Builds a complete intermission stats struct from wminfo with runtime fallback.

View source

_DNet_MPBuildNamePacket

function _DNet_MPBuildNamePacket(slot, name)

Encodes one sanitized player-name update in a compact fixed-protocol packet.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPBuildNamePacket`.
namedynamic—Resource or object name to resolve.

View source

_DNet_MPBuildPhasePacket

function _DNet_MPBuildPhasePacket()

Builds a compact host phase packet for client flow synchronization.

View source

_DNet_MPBuildSnapshotPacket

function _DNet_MPBuildSnapshotPacket(forceAll, snapshotTick)

Builds one server snapshot payload for client replication.

ParameterTypeDefaultDescription
forceAlldynamic—Force all value supplied to `_DNet_MPBuildSnapshotPacket`.
snapshotTickdynamic—Snapshot tick value supplied to `_DNet_MPBuildSnapshotPacket`.

View source

_DNet_MPBuildWIStatsPacket

function _DNet_MPBuildWIStatsPacket()

Serializes host intermission stats so clients can render exact percentages and icons.

View source

_DNet_MPClampAbs

inline function _DNet_MPClampAbs(v, limit)

Clamps value into [-limit, +limit].

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.
limitdynamic—Limit value supplied to `_DNet_MPClampAbs`.

View source

_DNet_MPClientActorMissLimit

inline function _DNet_MPClientActorMissLimit(baseLimit, mo)

Returns per-actor stale miss threshold so short-lived effects are culled quickly.

ParameterTypeDefaultDescription
baseLimitdynamic—Base limit value supplied to `_DNet_MPClientActorMissLimit`.
modynamic—Map object affected by the operation.

View source

_DNet_MPClientAdvanceActors

function _DNet_MPClientAdvanceActors()

Client-side actor smoothing using interpolation with bounded short extrapolation.

View source

_DNet_MPClientAdvancePlayers

function _DNet_MPClientAdvancePlayers()

Client-side smoothing for remote player movement and turning.

View source

_DNet_MPClientApplyChat

inline function _DNet_MPClientApplyChat(payload)

Applies one authoritative multiplayer chat message on the local HUD.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplyChat`.

View source

_DNet_MPClientApplyFeed

function _DNet_MPClientApplyFeed(payload)

Applies one host kill-feed packet on client HUD.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplyFeed`.

View source

_DNet_MPClientApplyName

function _DNet_MPClientApplyName(payload)

Applies one authoritative rename and reports changes made by another player.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplyName`.

View source

_DNet_MPClientApplyPhase

function _DNet_MPClientApplyPhase(payload)

Applies host phase sync packets (level/intermission/finale) on client.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplyPhase`.

View source

_DNet_MPClientApplySnapshot

function _DNet_MPClientApplySnapshot(payload)

Applies one authoritative world snapshot on client runtime.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplySnapshot`.

View source

_DNet_MPClientApplyWIStats

function _DNet_MPClientApplyWIStats(payload)

Applies host intermission stats packet to client WI runtime state.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPClientApplyWIStats`.

View source

_DNet_MPClientBindActorId

inline function _DNet_MPClientBindActorId(idx, aid)

Binds replicated actor id to one proxy slot and clears previous conflicting mapping.

ParameterTypeDefaultDescription
idxdynamic—Zero-based element or table index.
aiddynamic—Aid value supplied to `_DNet_MPClientBindActorId`.

View source

_DNet_MPClientBootstrapWorld

function _DNet_MPClientBootstrapWorld()

Clears client-side local non-player thinkers before authoritative actor replication takes over.

View source

_DNet_MPClientClassifyActor

inline function _DNet_MPClientClassifyActor(atype, flags, mo)

Classifies actor replication behavior: 0 static, 1 mobile, 2 fast/effect (missile-like).

ParameterTypeDefaultDescription
atypedynamic—Atype value supplied to `_DNet_MPClientClassifyActor`.
flagsdynamic—Bit flags that control the operation.
modynamic—Map object affected by the operation.

View source

_DNet_MPClientEnsureActorMotionSlot

inline function _DNet_MPClientEnsureActorMotionSlot(idx)

Ensures client-side actor smoothing arrays have capacity for one slot index.

ParameterTypeDefaultDescription
idxdynamic—Zero-based element or table index.

View source

_DNet_MPClientEnsurePlayerMotionSlots

inline function _DNet_MPClientEnsurePlayerMotionSlots()

Ensures client-side remote player smoothing arrays are sized for MAXPLAYERS.

View source

_DNet_MPClientFindActorByPose

function _DNet_MPClientFindActorByPose(atype, ax, ay, az, claimed)

Finds closest existing client actor proxy by type/position for id-churn recovery.

ParameterTypeDefaultDescription
atypedynamic—Atype value supplied to `_DNet_MPClientFindActorByPose`.
axdynamic—Horizontal coordinate or vector component represented by ax.
aydynamic—Vertical coordinate or vector component represented by ay.
azdynamic—Az value supplied to `_DNet_MPClientFindActorByPose`.
claimeddynamic—Claimed value supplied to `_DNet_MPClientFindActorByPose`.

View source

_DNet_MPClientFindActorByUidField

inline function _DNet_MPClientFindActorByUidField(aid)

Finds a client actor proxy whose local mobj mpuid already matches replicated actor id.

ParameterTypeDefaultDescription
aiddynamic—Aid value supplied to `_DNet_MPClientFindActorByUidField`.

View source

_DNet_MPClientFindActorIndex

inline function _DNet_MPClientFindActorIndex(idv)

Finds client-side actor proxy registry index by replicated id.

ParameterTypeDefaultDescription
idvdynamic—Idv value supplied to `_DNet_MPClientFindActorIndex`.

View source

_DNet_MPClientFindClaimedActorExact

function _DNet_MPClientFindClaimedActorExact(atype, ax, ay, az, aang, aspr, afrm, astate, claimed)

Finds already-claimed actor proxy with exact replicated pose/state to suppress duplicate spawns.

ParameterTypeDefaultDescription
atypedynamic—Atype value supplied to `_DNet_MPClientFindClaimedActorExact`.
axdynamic—Horizontal coordinate or vector component represented by ax.
aydynamic—Vertical coordinate or vector component represented by ay.
azdynamic—Az value supplied to `_DNet_MPClientFindClaimedActorExact`.
aangdynamic—Aang value supplied to `_DNet_MPClientFindClaimedActorExact`.
asprdynamic—Aspr value supplied to `_DNet_MPClientFindClaimedActorExact`.
afrmdynamic—Afrm value supplied to `_DNet_MPClientFindClaimedActorExact`.
astatedynamic—Astate value supplied to `_DNet_MPClientFindClaimedActorExact`.
claimeddynamic—Claimed value supplied to `_DNet_MPClientFindClaimedActorExact`.

View source

_DNet_MPClientFindFreeActorSlot

inline function _DNet_MPClientFindFreeActorSlot()

Returns reusable client registry slot whose actor id was cleared.

View source

_DNet_MPClientRemoveActorAt

inline function _DNet_MPClientRemoveActorAt(idx)

Removes one client-side replicated actor proxy.

ParameterTypeDefaultDescription
idxdynamic—Zero-based element or table index.

View source

_DNet_MPClientResetPlayerMotionSlot

inline function _DNet_MPClientResetPlayerMotionSlot(slot)

Clears remote player smoothing state for one slot.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPClientResetPlayerMotionSlot`.

View source

_DNet_MPClientStaleMissLimit

function _DNet_MPClientStaleMissLimit()

Computes how many full-snapshot misses an actor can accumulate before client-side stale removal.

View source

_DNet_MPClientTrackActorSnapshot

function _DNet_MPClientTrackActorSnapshot(idx, mo, atype, afl, ax, ay, az, aang, snapTick, spawnedNow)

Stores target pose and velocity estimate for one replicated actor snapshot.

ParameterTypeDefaultDescription
idxdynamic—Zero-based element or table index.
modynamic—Map object affected by the operation.
atypedynamic—Atype value supplied to `_DNet_MPClientTrackActorSnapshot`.
afldynamic—Afl value supplied to `_DNet_MPClientTrackActorSnapshot`.
axdynamic—Horizontal coordinate or vector component represented by ax.
aydynamic—Vertical coordinate or vector component represented by ay.
azdynamic—Az value supplied to `_DNet_MPClientTrackActorSnapshot`.
aangdynamic—Aang value supplied to `_DNet_MPClientTrackActorSnapshot`.
snapTickdynamic—Snap tick value supplied to `_DNet_MPClientTrackActorSnapshot`.
spawnedNowdynamic—Spawned now value supplied to `_DNet_MPClientTrackActorSnapshot`.

View source

_DNet_MPClientTrackPlayerSnapshot

function _DNet_MPClientTrackPlayerSnapshot(slot, px, py, pz, pang, snapTick, hardSnap)

Stores remote player target pose and velocity estimate from authoritative snapshots.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPClientTrackPlayerSnapshot`.
pxdynamic—Horizontal coordinate or vector component represented by px.
pydynamic—Vertical coordinate or vector component represented by py.
pzdynamic—Pz value supplied to `_DNet_MPClientTrackPlayerSnapshot`.
pangdynamic—Pang value supplied to `_DNet_MPClientTrackPlayerSnapshot`.
snapTickdynamic—Snap tick value supplied to `_DNet_MPClientTrackPlayerSnapshot`.
hardSnapdynamic—Hard snap value supplied to `_DNet_MPClientTrackPlayerSnapshot`.

View source

_DNet_MPClientUpdateWIStatsSync

function _DNet_MPClientUpdateWIStatsSync()

Runs bounded request/retry logic until client received host intermission stats.

View source

_DNet_MPCmdEquals

inline function _DNet_MPCmdEquals(a, b)

Returns true when two ticcmd structs carry the same gameplay input values.

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPCopyFrags4

inline function _DNet_MPCopyFrags4(src)

Returns a fixed-size 4-entry frag row copied from arbitrary source sequence.

ParameterTypeDefaultDescription
srcdynamic—Src value supplied to `_DNet_MPCopyFrags4`.

View source

_DNet_MPDrainAuthoritativePackets

function _DNet_MPDrainAuthoritativePackets()

Pumps and routes authoritative multiplayer packets for host/client.

View source

_DNet_MPEnsureHostSlotMobj

function _DNet_MPEnsureHostSlotMobj(slot)

Spawns missing remote player mobjs on host when late-joining clients become active.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPEnsureHostSlotMobj`.

View source

_DNet_MPEnsurePlayerStruct

inline function _DNet_MPEnsurePlayerStruct(slot)

Ensures player slot contains a valid player struct.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPEnsurePlayerStruct`.

View source

_DNet_MPHostActorRelevantForSlot

inline function _DNet_MPHostActorRelevantForSlot(slot, mo)

Returns true when an actor is relevant enough for a specific client slot snapshot.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPHostActorRelevantForSlot`.
modynamic—Map object affected by the operation.

View source

_DNet_MPHostApplyActiveSlots

function _DNet_MPHostApplyActiveSlots()

Synchronizes host player slot activity with platform peer list.

View source

_DNet_MPHostBroadcastAllNames

function _DNet_MPHostBroadcastAllNames()

Refreshes the complete small slot-name table so newly joined clients learn existing peers immediately.

View source

_DNet_MPHostBroadcastKillFeed

function _DNet_MPHostBroadcastKillFeed(killer, victim)

Broadcasts one host-authoritative kill message to all connected clients.

ParameterTypeDefaultDescription
killerdynamic—Killer value supplied to `_DNet_MPHostBroadcastKillFeed`.
victimdynamic—Victim value supplied to `_DNet_MPHostBroadcastKillFeed`.

View source

_DNet_MPHostBroadcastName

function _DNet_MPHostBroadcastName(slot, name)

Broadcasts one host-approved slot name to every connected multiplayer client.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPHostBroadcastName`.
namedynamic—Resource or object name to resolve.

View source

_DNet_MPHostBroadcastTelefragFeed

function _DNet_MPHostBroadcastTelefragFeed(killer, victim)

Broadcasts one host-authoritative telefrag message to all connected clients.

ParameterTypeDefaultDescription
killerdynamic—Killer value supplied to `_DNet_MPHostBroadcastTelefragFeed`.
victimdynamic—Victim value supplied to `_DNet_MPHostBroadcastTelefragFeed`.

View source

_DNet_MPHostBroadcastWIStats

function _DNet_MPHostBroadcastWIStats()

Broadcasts intermission stats snapshot to all connected clients.

View source

_DNet_MPHostCheckFragFeed

function _DNet_MPHostCheckFragFeed()

Detects host-side frag matrix increments and emits kill feed events.

View source

_DNet_MPHostCollectActorChunk

function _DNet_MPHostCollectActorChunk(maxCount, forceAll, snapshotTick)

Returns rotating subset of changed host actors for snapshot payloads.

ParameterTypeDefaultDescription
maxCountdynamic—Number of max to process.
forceAlldynamic—Force all value supplied to `_DNet_MPHostCollectActorChunk`.
snapshotTickdynamic—Snapshot tick value supplied to `_DNet_MPHostCollectActorChunk`.

View source

_DNet_MPHostCollectSectorChanges

function _DNet_MPHostCollectSectorChanges(maxCount, forceAll)

Collects a rotating subset of changed sector dynamics for snapshots.

ParameterTypeDefaultDescription
maxCountdynamic—Number of max to process.
forceAlldynamic—Force all value supplied to `_DNet_MPHostCollectSectorChanges`.

View source

_DNet_MPHostCollectSideChanges

function _DNet_MPHostCollectSideChanges(maxCount, forceAll)

Collects changed sidedef textures so clients see switch/button state transitions.

ParameterTypeDefaultDescription
maxCountdynamic—Number of max to process.
forceAlldynamic—Force all value supplied to `_DNet_MPHostCollectSideChanges`.

View source

_DNet_MPHostEnsureSectorCache

function _DNet_MPHostEnsureSectorCache()

Initializes host-side sector cache used for delta snapshots.

View source

_DNet_MPHostEnsureSideCache

function _DNet_MPHostEnsureSideCache()

Initializes host-side sidedef texture cache used for switch and wall texture replication.

View source

_DNet_MPHostFindActorIndex

inline function _DNet_MPHostFindActorIndex(nodeKey)

Locates host-side actor registry slot by stable actor key.

ParameterTypeDefaultDescription
nodeKeydynamic—Stable key identifying the network node.

View source

_DNet_MPHostFindActorIndexByPose

function _DNet_MPHostFindActorIndexByPose(owner)

Finds an existing host actor slot by tight type/pose match as fallback when thinker key is missing.

ParameterTypeDefaultDescription
ownerdynamic—Owner value supplied to `_DNet_MPHostFindActorIndexByPose`.

View source

_DNet_MPHostFindFreeActorSlot

inline function _DNet_MPHostFindFreeActorSlot()

Returns reusable host registry slot whose actor id was cleared.

View source

_DNet_MPHostHandleChatPacket

function _DNet_MPHostHandleChatPacket(node, payload)

Validates and relays one client chat packet as authoritative chat event.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_DNet_MPHostHandleChatPacket`.
payloaddynamic—Payload value supplied to `_DNet_MPHostHandleChatPacket`.

View source

_DNet_MPHostHandleInputPacket

function _DNet_MPHostHandleInputPacket(node, payload)

Applies one client input payload to host-side remote command cache.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_DNet_MPHostHandleInputPacket`.
payloaddynamic—Payload value supplied to `_DNet_MPHostHandleInputPacket`.

View source

_DNet_MPHostHandleNamePacket

function _DNet_MPHostHandleNamePacket(node, payload)

Authenticates a client rename by its transport slot, updates the peer table, and relays it.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_DNet_MPHostHandleNamePacket`.
payloaddynamic—Payload value supplied to `_DNet_MPHostHandleNamePacket`.

View source

_DNet_MPHostHandleWIStatsRequest

inline function _DNet_MPHostHandleWIStatsRequest(node, payload)

Handles one client request for intermission stats retransmission.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_DNet_MPHostHandleWIStatsRequest`.
payloaddynamic—Payload value supplied to `_DNet_MPHostHandleWIStatsRequest`.

View source

_DNet_MPHostInvalidateActorSigById

inline function _DNet_MPHostInvalidateActorSigById(aid)

Forces one host actor id to be considered dirty for next snapshot selection.

ParameterTypeDefaultDescription
aiddynamic—Aid value supplied to `_DNet_MPHostInvalidateActorSigById`.

View source

_DNet_MPHostIsLikelyTelefrag

function _DNet_MPHostIsLikelyTelefrag(killer, victim)

Detects teleport-stomp frags so feed can use telefrag wording.

ParameterTypeDefaultDescription
killerdynamic—Killer value supplied to `_DNet_MPHostIsLikelyTelefrag`.
victimdynamic—Victim value supplied to `_DNet_MPHostIsLikelyTelefrag`.

View source

_DNet_MPHostMarkSlotFullsync

inline function _DNet_MPHostMarkSlotFullsync(slot)

Schedules an immediate full-snapshot burst for a newly active remote slot.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPHostMarkSlotFullsync`.

View source

_DNet_MPHostMaybeSendPhase

function _DNet_MPHostMaybeSendPhase(force)

Periodically sends host game phase packets to keep clients flow-synchronized.

ParameterTypeDefaultDescription
forcedynamic—Force value supplied to `_DNet_MPHostMaybeSendPhase`.

View source

_DNet_MPHostMaybeSendSnapshot

function _DNet_MPHostMaybeSendSnapshot(forceAll)

Sends periodic world snapshots from authoritative host to all clients.

ParameterTypeDefaultDescription
forceAlldynamic—Force all value supplied to `_DNet_MPHostMaybeSendSnapshot`.

View source

_DNet_MPHostPopRemovedIds

function _DNet_MPHostPopRemovedIds(maxCount)

Returns and removes removed actor ids for snapshot notification.

ParameterTypeDefaultDescription
maxCountdynamic—Number of max to process.

View source

_DNet_MPHostQueueRemovedId

inline function _DNet_MPHostQueueRemovedId(idv)

Queues one removed actor id for multiple snapshots to tolerate UDP packet loss.

ParameterTypeDefaultDescription
idvdynamic—Idv value supplied to `_DNet_MPHostQueueRemovedId`.

View source

_DNet_MPHostRefreshActorRegistry

function _DNet_MPHostRefreshActorRegistry()

Updates host-side actor registry and tracks removed actor ids.

View source

_DNet_MPHostRelayChat

function _DNet_MPHostRelayChat(sender, dest, txt)

Displays and routes a validated chat line to its sender and optional private recipient.

ParameterTypeDefaultDescription
senderdynamic—Sender value supplied to `_DNet_MPHostRelayChat`.
destdynamic—Dest value supplied to `_DNet_MPHostRelayChat`.
txtdynamic—Txt value supplied to `_DNet_MPHostRelayChat`.

View source

_DNet_MPHostRequeueDroppedActorRows

function _DNet_MPHostRequeueDroppedActorRows(actorIds, startIdx)

Re-queues actor rows trimmed by packet budget so they are retried next snapshots.

ParameterTypeDefaultDescription
actorIdsdynamic—Actor ids value supplied to `_DNet_MPHostRequeueDroppedActorRows`.
startIdxdynamic—Start idx value supplied to `_DNet_MPHostRequeueDroppedActorRows`.

View source

_DNet_MPHostSelectActorsForSlot

function _DNet_MPHostSelectActorsForSlot(slot, actorIds, actorRefs, maxCount, forceAll, snapshotTick)

Prioritizes client-relevant actor updates over non-relevant updates for one target slot.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPHostSelectActorsForSlot`.
actorIdsdynamic—Actor ids value supplied to `_DNet_MPHostSelectActorsForSlot`.
actorRefsdynamic—Actor refs value supplied to `_DNet_MPHostSelectActorsForSlot`.
maxCountdynamic—Number of max to process.
forceAlldynamic—Force all value supplied to `_DNet_MPHostSelectActorsForSlot`.
snapshotTickdynamic—Snapshot tick value supplied to `_DNet_MPHostSelectActorsForSlot`.

View source

_DNet_MPHostSendWIStatsTo

inline function _DNet_MPHostSendWIStatsTo(slot)

Sends a full intermission stats packet to one client slot.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPHostSendWIStatsTo`.

View source

_DNet_MPHostSnapshotInterval

inline function _DNet_MPHostSnapshotInterval()

Computes adaptive snapshot cadence based on active replicated actor load.

View source

_DNet_MPIntermissionNextMap

inline function _DNet_MPIntermissionNextMap()

Resolves the next map number while host is in intermission.

View source

_DNet_MPIsAuthoritative

inline function _DNet_MPIsAuthoritative()

Returns true while host-authoritative multiplayer runtime is active.

View source

_DNet_MPIsClient

inline function _DNet_MPIsClient()

Returns true when multiplayer platform is currently connected as client.

View source

_DNet_MPIsHost

inline function _DNet_MPIsHost()

Returns true when multiplayer platform is currently hosting.

View source

_DNet_MPLevelReady

function _DNet_MPLevelReady()

Returns true when level state is initialized enough for authoritative snapshots.

View source

_DNet_MPMakeWBRowForSlot

function _DNet_MPMakeWBRowForSlot(slot)

Builds one intermission player row from current authoritative runtime player state.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPMakeWBRowForSlot`.

View source

_DNET_MPMSG_CHAT

const _DNET_MPMSG_CHAT = 7

Defines dnet mpmsg chat for the d net subsystem.

View source

_DNET_MPMSG_FEED

const _DNET_MPMSG_FEED = 4

Defines dnet mpmsg feed for the d net subsystem.

View source

_DNET_MPMSG_INPUT

const _DNET_MPMSG_INPUT = 1

Defines dnet mpmsg input for the d net subsystem.

View source

_DNET_MPMSG_NAME

const _DNET_MPMSG_NAME = 8

Defines dnet mpmsg name for the d net subsystem.

View source

_DNET_MPMSG_PHASE

const _DNET_MPMSG_PHASE = 3

Defines dnet mpmsg phase for the d net subsystem.

View source

_DNET_MPMSG_SNAPSHOT

const _DNET_MPMSG_SNAPSHOT = 2

Defines dnet mpmsg snapshot for the d net subsystem.

View source

_DNET_MPMSG_SOUND

const _DNET_MPMSG_SOUND = 201

Defines dnet mpmsg sound for the d net subsystem.

View source

_DNET_MPMSG_WISTATS

const _DNET_MPMSG_WISTATS = 5

Defines dnet mpmsg wistats for the d net subsystem.

View source

_DNET_MPMSG_WISTATS_REQ

const _DNET_MPMSG_WISTATS_REQ = 6

Defines dnet mpmsg wistats req for the d net subsystem.

View source

_DNet_MPNormalizeChatText

function _DNet_MPNormalizeChatText(msg)

Normalizes chat text to printable ASCII and trims packet size.

ParameterTypeDefaultDescription
msgdynamic—Msg value supplied to `_DNet_MPNormalizeChatText`.

View source

_DNet_MPPhaseCode

inline function _DNet_MPPhaseCode()

Maps Doom gamestate to compact phase code used by phase sync packets.

View source

_DNet_MPPlayerHasAnyOwnedWeapon

inline function _DNet_MPPlayerHasAnyOwnedWeapon(p)

Returns true if a player struct already carries any weapon ownership flag.

ParameterTypeDefaultDescription
pdynamic—Object or data record consumed by the operation.

View source

_DNet_MPPlayerName

inline function _DNet_MPPlayerName(slot)

Resolves a readable player name for HUD/event messages.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPPlayerName`.

View source

_DNet_MPReadFixedName

function _DNet_MPReadFixedName(payload, off, width)

Reads one fixed-width null-terminated ASCII player name field.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPReadFixedName`.
offdynamic—Zero-based byte or element offset.
widthdynamic—Width of the target in pixels or map units.

View source

_DNet_MPReadI16

inline function _DNet_MPReadI16(buf, off)

Reads a 16-bit signed integer from byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPReadI16`.
offdynamic—Zero-based byte or element offset.

View source

_DNet_MPReadI32

inline function _DNet_MPReadI32(buf, off)

Reads a 32-bit signed integer from byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPReadI32`.
offdynamic—Zero-based byte or element offset.

View source

_DNet_MPReadNamePacket

function _DNet_MPReadNamePacket(payload)

Validates a name packet's declared length and returns its canonical player name.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPReadNamePacket`.

View source

_DNet_MPReadU16

inline function _DNet_MPReadU16(buf, off)

Reads a 16-bit unsigned integer from byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPReadU16`.
offdynamic—Zero-based byte or element offset.

View source

_DNet_MPReadU32

inline function _DNet_MPReadU32(buf, off)

Reads a 32-bit unsigned integer from byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPReadU32`.
offdynamic—Zero-based byte or element offset.

View source

_DNet_MPResetRuntime

function _DNet_MPResetRuntime()

Clears host/client authoritative replication caches.

View source

_DNet_MPReturnToOffline

function _DNet_MPReturnToOffline(wasClient)

Collapses stale multiplayer clocks/slots after transport loss and returns to a defined title state.

ParameterTypeDefaultDescription
wasClientdynamic—Was client value supplied to `_DNet_MPReturnToOffline`.

View source

_DNet_MPSendInputCmd

function _DNet_MPSendInputCmd(cmd)

Sends one client input command to authoritative host.

ParameterTypeDefaultDescription
cmddynamic—Cmd value supplied to `_DNet_MPSendInputCmd`.

View source

_DNet_MPSendWIStatsRequest

inline function _DNet_MPSendWIStatsRequest()

Sends one client-side intermission stats request to the host.

View source

_DNet_MPSeqIsNewer

inline function _DNet_MPSeqIsNewer(a, b)

Returns true when input sequence a is newer than b (uint32 wrap-around aware).

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPSetPlayerSlotActive

function _DNet_MPSetPlayerSlotActive(slot, active)

Toggles slot active state and removes stale mobjs on deactivate.

ParameterTypeDefaultDescription
slotdynamic—Slot value supplied to `_DNet_MPSetPlayerSlotActive`.
activedynamic—Whether the requested state should be active.

View source

_DNet_MPSign32

inline function _DNet_MPSign32(v)

Returns sign of integer value (-1, 0, +1).

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_DNet_MPSlotActive

inline function _DNet_MPSlotActive(active, slot)

Checks if slot is present in active slot list.

ParameterTypeDefaultDescription
activedynamic—Whether the requested state should be active.
slotdynamic—Slot value supplied to `_DNet_MPSlotActive`.

View source

_DNet_MPStateKeyEquals

inline function _DNet_MPStateKeyEquals(a, b)

Compares two compact snapshot keys for player/actor delta detection.

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPStaticActorHeartbeatHit

inline function _DNet_MPStaticActorHeartbeatHit(idv, snapshotTick)

Spreads static actor heartbeat replication across full snapshots.

ParameterTypeDefaultDescription
idvdynamic—Idv value supplied to `_DNet_MPStaticActorHeartbeatHit`.
snapshotTickdynamic—Snapshot tick value supplied to `_DNet_MPStaticActorHeartbeatHit`.

View source

_DNet_MPThinkerIsMobj

inline function _DNet_MPThinkerIsMobj(node)

Returns true when thinker node is a mobj thinker callback.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `_DNet_MPThinkerIsMobj`.

View source

_DNet_MPU32

inline function _DNet_MPU32(v)

Normalizes signed int values into unsigned 32-bit angle space.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.

View source

_DNet_MPWBRowChanged

inline function _DNet_MPWBRowChanged(a, b)

Compares one intermission row for gameplay-relevant stat changes.

ParameterTypeDefaultDescription
adynamic—First input operand.
bdynamic—Second input operand.

View source

_DNet_MPWBStatsChanged

inline function _DNet_MPWBStatsChanged(oldwb, newwb)

Detects whether a newer WI stats packet requires intermission state refresh.

ParameterTypeDefaultDescription
oldwbdynamic—Oldwb value supplied to `_DNet_MPWBStatsChanged`.
newwbdynamic—Newwb value supplied to `_DNet_MPWBStatsChanged`.

View source

_DNet_MPWriteFixedName

function _DNet_MPWriteFixedName(payload, off, width, name)

Writes one fixed-width null-terminated ASCII player name field.

ParameterTypeDefaultDescription
payloaddynamic—Payload value supplied to `_DNet_MPWriteFixedName`.
offdynamic—Zero-based byte or element offset.
widthdynamic—Width of the target in pixels or map units.
namedynamic—Resource or object name to resolve.

View source

_DNet_MPWriteI16

inline function _DNet_MPWriteI16(buf, off, v)

Writes a 16-bit signed integer into byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPWriteI16`.
offdynamic—Zero-based byte or element offset.
vdynamic—Value consumed by the operation.

View source

_DNet_MPWriteI32

inline function _DNet_MPWriteI32(buf, off, v)

Writes a 32-bit signed integer into byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPWriteI32`.
offdynamic—Zero-based byte or element offset.
vdynamic—Value consumed by the operation.

View source

_DNet_MPWriteU16

inline function _DNet_MPWriteU16(buf, off, v)

Writes a 16-bit unsigned integer into byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPWriteU16`.
offdynamic—Zero-based byte or element offset.
vdynamic—Value consumed by the operation.

View source

_DNet_MPWriteU32

inline function _DNet_MPWriteU32(buf, off, v)

Writes a 32-bit unsigned integer into byte buffer.

ParameterTypeDefaultDescription
bufdynamic—Buf value supplied to `_DNet_MPWriteU32`.
offdynamic—Zero-based byte or element offset.
vdynamic—Value consumed by the operation.

View source

_dnet_oldentertics

_dnet_oldentertics

Tracks the mutable dnet oldentertics value used by the d net subsystem.

View source

_dnet_oldnettics

_dnet_oldnettics

Tracks the mutable dnet oldnettics value used by the d net subsystem.

View source

_DNet_RunGameTics

function _DNet_RunGameTics(counts)

Runs a bounded number of host/legacy simulation tics and emits host snapshots after each authoritative tic.

ParameterTypeDefaultDescription
countsdynamic—Counts value supplied to `_DNet_RunGameTics`.

View source

_DNet_StateIndex

function _DNet_StateIndex(s)

Resolves a runtime state value to its authoritative state index for snapshot serialization.

ParameterTypeDefaultDescription
sdynamic—S value supplied to `_DNet_StateIndex`.

View source

_DNet_ToInt

inline function _DNet_ToInt(v, fallback)

Converts source to int values for the network game.

ParameterTypeDefaultDescription
vdynamic—Value consumed by the operation.
fallbackdynamic—Value returned when the requested conversion or lookup is unavailable.

View source

_DNet_TryRunTicsUncapped

function _DNet_TryRunTicsUncapped()

Drains every locally available tic for uncapped single-player rendering while preserving network clocks.

View source

BACKUPTICS

const BACKUPTICS = 12

Defines backuptics for the d net subsystem.

View source

CheckAbort

function CheckAbort()

Pumps input during net-start waits and aborts synchronization when Escape is pressed.

View source

command_t enum

D_ArbitrateNetStart

function D_ArbitrateNetStart()

Exchanges legacy startup settings so every node begins with the console node's map and rules.

View source

D_CheckNetGame

function D_CheckNetGame()

Resets legacy/authoritative network clocks and initializes the platform network driver once.

View source

D_NetInitSinglePlayer

function D_NetInitSinglePlayer()

Rebuilds Doom networking, slot ownership, and tic queues as one local player after startup or transport loss.

View source

D_NetMPDebugOverlayText

function D_NetMPDebugOverlayText()

Returns authoritative d_net snapshot diagnostics for on-screen overlay.

View source

D_NetMPSendChat

function D_NetMPSendChat(dest, msg)

Sends local HUD chat through the authoritative packet channel, preserving private destinations.

ParameterTypeDefaultDescription
destdynamic—Dest value supplied to `D_NetMPSendChat`.
msgdynamic—Msg value supplied to `D_NetMPSendChat`.

View source

D_NetMPSetPlayerName

function D_NetMPSetPlayerName(name)

Changes the local persistent name and propagates it through an active authoritative session.

ParameterTypeDefaultDescription
namedynamic—Resource or object name to resolve.

View source

D_QuitNetGame

function D_QuitNetGame()

Repeats a legacy exit notification to every active remote node before local shutdown.

View source

d_runtics_last

d_runtics_last

Tracks the mutable d runtics last value used by the d net subsystem.

View source

doomcom

doomcom

Holds the optional doomcom resource used by the d net subsystem.

View source

DOOMCOM_ID

const DOOMCOM_ID = 305419896

Defines doomcom id for the d net subsystem.

View source

doomcom_t struct

doomdata_t struct

ExpandTics

function ExpandTics(low)

Expands an 8-bit wire tic into the closest plausible absolute game tic.

ParameterTypeDefaultDescription
lowdynamic—Low value supplied to `ExpandTics`.

View source

gametime

gametime

Tracks the mutable gametime value used by the d net subsystem.

View source

GetPackets

function GetPackets()

Drains validated legacy packets, updates resend windows, and copies new remote commands into rings.

View source

HGetPacket

function HGetPacket()

Receives one legacy packet, verifies checksum/length, and exposes its source node.

View source

HSendPacket

function HSendPacket(node, flags)

Controls hSend Packet transitions in the network game system.

ParameterTypeDefaultDescription
nodedynamic—Node value supplied to `HSendPacket`.
flagsdynamic—Bit flags that control the operation.

View source

lastnettic

lastnettic

Tracks the mutable lastnettic value used by the d net subsystem.

View source

localcmds

localcmds

Stores the localcmds collection used by the d net subsystem.

View source

maketic

maketic

Tracks the mutable maketic value used by the d net subsystem.

View source

MAXNETNODES

const MAXNETNODES = 8

Defines the maximum maxnetnodes accepted by the d net subsystem.

View source

maxsend

maxsend

Tracks the mutable maxsend value used by the d net subsystem.

View source

NCMD_CHECKSUM

const NCMD_CHECKSUM = 268435455

Defines ncmd checksum for the d net subsystem.

View source

NCMD_EXIT

const NCMD_EXIT = 2147483648

Defines ncmd exit for the d net subsystem.

View source

NCMD_KILL

const NCMD_KILL = 268435456

Defines ncmd kill for the d net subsystem.

View source

NCMD_RETRANSMIT

const NCMD_RETRANSMIT = 1073741824

Defines ncmd retransmit for the d net subsystem.

View source

NCMD_SETUP

const NCMD_SETUP = 536870912

Defines ncmd setup for the d net subsystem.

View source

netbuffer

netbuffer

Holds the optional netbuffer resource used by the d net subsystem.

View source

NetbufferChecksum

function NetbufferChecksum()

Computes the legacy Doom packet checksum over header fields and the transmitted ticcmd rows.

View source

NetbufferSize

inline function NetbufferSize()

Computes the encoded byte count for the current bounded legacy packet.

View source

netcmds

netcmds

Stores the netcmds collection used by the d net subsystem.

View source

nettics

nettics

Stores the nettics collection used by the d net subsystem.

View source

NetUpdate

function NetUpdate()

Pumps authoritative packets, samples local input, and fills per-player ticcmd rings without simulating clients.

View source

nodeforplayer

nodeforplayer

Stores the nodeforplayer collection used by the d net subsystem.

View source

nodeingame

nodeingame

Stores the nodeingame collection used by the d net subsystem.

View source

PL_DRONE

const PL_DRONE = 128

Defines pl drone for the d net subsystem.

View source

reboundpacket

reboundpacket

Tracks whether reboundpacket is active in the d net subsystem.

View source

reboundstore

reboundstore

Holds the optional reboundstore resource used by the d net subsystem.

View source

remoteresend

remoteresend

Stores the remoteresend collection used by the d net subsystem.

View source

RESENDCOUNT

const RESENDCOUNT = 10

Defines resendcount for the d net subsystem.

View source

resendcount

resendcount

Stores the resendcount collection used by the d net subsystem.

View source

resendto

resendto

Stores the resendto collection used by the d net subsystem.

View source

skiptics

skiptics

Tracks the mutable skiptics value used by the d net subsystem.

View source

ticdup

ticdup

Tracks the mutable ticdup value used by the d net subsystem.

View source

TryRunTics

function TryRunTics()

Schedules host/legacy simulation or client-only UI/interpolation ticks from wall-clock and network availability.

View source