# _DNet_CopyCmd
inline function _DNet_CopyCmd(src)Copies a tic command by value so ring-buffer reuse cannot mutate queued input.
| Parameter | Type | Default | Description |
|---|---|---|---|
src | dynamic | — | Src value supplied to `_DNet_CopyCmd`. |
src/d_net.mlRuns legacy lockstep networking and host-authoritative input, snapshot, phase, stats, and chat replication.
d_player.ml → src/d_player.mldoomdef.ml → src/doomdef.mldoomstat.ml → src/doomstat.mlg_game.ml → src/g_game.mli_net.ml → src/i_net.mli_system.ml → src/i_system.mli_video.ml → src/i_video.mlinfo.ml → src/info.mlm_menu.ml → src/m_menu.mlmp_platform.ml → src/mp_platform.mlp_maputl.ml → src/p_maputl.mlp_mobj.ml → src/p_mobj.mlp_tick.ml → src/p_tick.mlr_state.ml → src/r_state.mls_sound.ml → src/s_sound.mlsounds.ml → src/sounds.mlstd/math.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/math.ml external dependencyinline function _DNet_CopyCmd(src)Copies a tic command by value so ring-buffer reuse cannot mutate queued input.
| Parameter | Type | Default | Description |
|---|---|---|---|
src | dynamic | — | Src value supplied to `_DNet_CopyCmd`. |
function _DNet_CopyStoreToBuffer(src)Commits a decoded packet store into netbuffer only after validation succeeds.
| Parameter | Type | Default | Description |
|---|---|---|---|
src | dynamic | — | Src value supplied to `_DNet_CopyStoreToBuffer`. |
inline function _DNet_DefaultCmds()Allocates a full BACKUPTICS command ring initialized to neutral input.
function _DNet_EnsureStateArrays()Restores all legacy lockstep rings to protocol sizes before packet/tic access.
inline function _DNet_EnumIndex(v, limit)Normalizes enum/int values to a bounded integer enum index.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
limit | dynamic | — | Limit value supplied to `_DNet_EnumIndex`. |
_dnet_exitmsgStores the mutable dnet exitmsg text used by the d net subsystem.
_dnet_frameonTracks the mutable dnet frameon value used by the d net subsystem.
_dnet_frameskipStores the dnet frameskip collection used by the d net subsystem.
inline function _DNet_IDiv(a, b)Returns a quotient truncated toward zero for tic math, with invalid operands mapped to zero.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _DNet_IsSeq(v)Accepts arrays and lists wherever network codecs require indexed sequence access.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
function _DNet_MakeStoreFromBuffer()Takes an atomic value-copy snapshot of the mutable legacy netbuffer.
const _DNET_MP_ACTOR_CANDIDATE_MULTIPLIER = 6Defines dnet mp actor candidate multiplier for the d net subsystem.
const _DNET_MP_ACTOR_POOL_PER_SNAPSHOT = 80Defines dnet mp actor pool per snapshot for the d net subsystem.
const _DNET_MP_CHAT_BROADCAST = 5Defines dnet mp chat broadcast for the d net subsystem.
const _DNET_MP_CHAT_COOLDOWN_TICS = 4Defines dnet mp chat cooldown tics for the d net subsystem.
_dnet_mp_client_actor_idsStores the dnet mp client actor ids collection used by the d net subsystem.
_dnet_mp_client_actor_kindStores the dnet mp client actor kind collection used by the d net subsystem.
_dnet_mp_client_actor_last_snap_ticStores the dnet mp client actor last snap tic collection used by the d net subsystem.
_dnet_mp_client_actor_missStores the dnet mp client actor miss collection used by the d net subsystem.
_dnet_mp_client_actor_refsStores the dnet mp client actor refs collection used by the d net subsystem.
_dnet_mp_client_actor_tangStores the dnet mp client actor tang collection used by the d net subsystem.
_dnet_mp_client_actor_txStores the dnet mp client actor tx collection used by the d net subsystem.
_dnet_mp_client_actor_tyStores the dnet mp client actor ty collection used by the d net subsystem.
_dnet_mp_client_actor_tzStores the dnet mp client actor tz collection used by the d net subsystem.
_dnet_mp_client_actor_vxStores the dnet mp client actor vx collection used by the d net subsystem.
_dnet_mp_client_actor_vyStores the dnet mp client actor vy collection used by the d net subsystem.
_dnet_mp_client_actor_vzStores the dnet mp client actor vz collection used by the d net subsystem.
_dnet_mp_client_cached_wistatsHolds the optional dnet mp client cached wistats resource used by the d net subsystem.
_dnet_mp_client_claimed_actorsTracks the mutable dnet mp client claimed actors value used by the d net subsystem.
const _DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MISSILE = 24 * FRACUNITDefines the maximum dnet mp client extrap abs vel max missile accepted by the d net subsystem.
const _DNET_MP_CLIENT_EXTRAP_ABS_VEL_MAX_MOBILE = 12 * FRACUNITDefines the maximum dnet mp client extrap abs vel max mobile accepted by the d net subsystem.
const _DNET_MP_CLIENT_HARD_SNAP_DIST = 128 * FRACUNITDefines dnet mp client hard snap dist for the d net subsystem.
_dnet_mp_client_have_wistatsTracks whether dnet mp client have wistats is active in the d net subsystem.
const _DNET_MP_CLIENT_INTERP_DEN = 3Defines dnet mp client interp den for the d net subsystem.
const _DNET_MP_CLIENT_INTERP_NUM = 1Defines the dnet mp client interp num count used by the d net subsystem.
_dnet_mp_client_last_phase_tickTracks the mutable dnet mp client last phase tick value used by the d net subsystem.
_dnet_mp_client_last_smooth_ticTracks the mutable dnet mp client last smooth tic value used by the d net subsystem.
_dnet_mp_client_last_snapshot_tickTracks the mutable dnet mp client last snapshot tick value used by the d net subsystem.
_dnet_mp_client_local_pickups_armedTracks whether dnet mp client local pickups armed is active in the d net subsystem.
const _DNET_MP_CLIENT_MAX_EXTRAP_MISSILE = 4Defines the maximum dnet mp client max extrap missile accepted by the d net subsystem.
const _DNET_MP_CLIENT_MAX_EXTRAP_MOBILE = 2Defines the maximum dnet mp client max extrap mobile accepted by the d net subsystem.
_dnet_mp_client_pending_snapshotHolds the optional dnet mp client pending snapshot resource used by the d net subsystem.
_dnet_mp_client_player_last_snap_ticStores the dnet mp client player last snap tic collection used by the d net subsystem.
_dnet_mp_client_player_tangStores the dnet mp client player tang collection used by the d net subsystem.
_dnet_mp_client_player_txStores the dnet mp client player tx collection used by the d net subsystem.
_dnet_mp_client_player_tyStores the dnet mp client player ty collection used by the d net subsystem.
_dnet_mp_client_player_tzStores the dnet mp client player tz collection used by the d net subsystem.
_dnet_mp_client_player_vxStores the dnet mp client player vx collection used by the d net subsystem.
_dnet_mp_client_player_vyStores the dnet mp client player vy collection used by the d net subsystem.
_dnet_mp_client_player_vzStores the dnet mp client player vz collection used by the d net subsystem.
_dnet_mp_client_seen_playersTracks the mutable dnet mp client seen players value used by the d net subsystem.
const _DNET_MP_CLIENT_STALE_GRACE_SWEEPS = 2Defines dnet mp client stale grace sweeps for the d net subsystem.
_dnet_mp_client_ui_ticTracks the mutable dnet mp client ui tic value used by the d net subsystem.
_dnet_mp_client_wait_wistatsTracks whether dnet mp client wait wistats is active in the d net subsystem.
_dnet_mp_client_wistats_errorStores the mutable dnet mp client wistats error text used by the d net subsystem.
_dnet_mp_client_wistats_last_tickTracks the mutable dnet mp client wistats last tick value used by the d net subsystem.
_dnet_mp_client_wistats_next_req_ticTracks the mutable dnet mp client wistats next req tic value used by the d net subsystem.
_dnet_mp_client_wistats_req_countTracks the mutable dnet mp client wistats req count value used by the d net subsystem.
_dnet_mp_client_world_bootstrappedTracks whether dnet mp client world bootstrapped is active in the d net subsystem.
_dnet_mp_dbg_snap_builtTracks the mutable dnet mp dbg snap built value used by the d net subsystem.
_dnet_mp_dbg_snap_callsTracks the mutable dnet mp dbg snap calls value used by the d net subsystem.
_dnet_mp_dbg_snap_sentTracks the mutable dnet mp dbg snap sent value used by the d net subsystem.
_dnet_mp_dbg_snap_skip_nosendTracks the mutable dnet mp dbg snap skip nosend value used by the d net subsystem.
_dnet_mp_dbg_snap_skip_not_hostTracks the mutable dnet mp dbg snap skip not host value used by the d net subsystem.
_dnet_mp_dbg_snap_skip_not_levelTracks the mutable dnet mp dbg snap skip not level value used by the d net subsystem.
_dnet_mp_dbg_snap_skip_rateTracks the mutable dnet mp dbg snap skip rate value used by the d net subsystem.
_dnet_mp_dbg_snap_targetsTracks the mutable dnet mp dbg snap targets value used by the d net subsystem.
_dnet_mp_dbg_unknown_payload_dropTracks the mutable dnet mp dbg unknown payload drop value used by the d net subsystem.
const _DNET_MP_FULL_SNAPSHOT_PERIOD = 35Defines dnet mp full snapshot period for the d net subsystem.
_dnet_mp_host_actor_active_countTracks the mutable dnet mp host actor active count value used by the d net subsystem.
_dnet_mp_host_actor_cursorTracks the mutable dnet mp host actor cursor value used by the d net subsystem.
_dnet_mp_host_actor_idsStores the dnet mp host actor ids collection used by the d net subsystem.
_dnet_mp_host_actor_missStores the dnet mp host actor miss collection used by the d net subsystem.
_dnet_mp_host_actor_nodesStores the dnet mp host actor nodes collection used by the d net subsystem.
_dnet_mp_host_actor_refsStores the dnet mp host actor refs collection used by the d net subsystem.
_dnet_mp_host_actor_seenTracks the mutable dnet mp host actor seen value used by the d net subsystem.
_dnet_mp_host_cached_wistatsHolds the optional dnet mp host cached wistats resource used by the d net subsystem.
_dnet_mp_host_input_active_loggedStores the dnet mp host input active logged collection used by the d net subsystem.
_dnet_mp_host_last_actor_sigStores the dnet mp host last actor sig collection used by the d net subsystem.
_dnet_mp_host_last_chat_ticStores the dnet mp host last chat tic collection used by the d net subsystem.
_dnet_mp_host_last_fragsStores the dnet mp host last frags collection used by the d net subsystem.
_dnet_mp_host_last_phase_keyHolds the optional dnet mp host last phase key resource used by the d net subsystem.
_dnet_mp_host_last_player_sigStores the dnet mp host last player sig collection used by the d net subsystem.
_dnet_mp_host_last_sector_ceilingStores the dnet mp host last sector ceiling collection used by the d net subsystem.
_dnet_mp_host_last_sector_floorStores the dnet mp host last sector floor collection used by the d net subsystem.
_dnet_mp_host_last_sector_lightStores the dnet mp host last sector light collection used by the d net subsystem.
_dnet_mp_host_last_sector_specialStores the dnet mp host last sector special collection used by the d net subsystem.
_dnet_mp_host_last_side_bottomStores the dnet mp host last side bottom collection used by the d net subsystem.
_dnet_mp_host_last_side_midStores the dnet mp host last side mid collection used by the d net subsystem.
_dnet_mp_host_last_side_topStores the dnet mp host last side top collection used by the d net subsystem.
_dnet_mp_host_last_wistats_req_ticStores the dnet mp host last wistats req tic collection used by the d net subsystem.
_dnet_mp_host_last_wistats_ticTracks the mutable dnet mp host last wistats tic value used by the d net subsystem.
_dnet_mp_host_next_actor_idTracks the mutable dnet mp host next actor id value used by the d net subsystem.
_dnet_mp_host_removed_idsStores the dnet mp host removed ids collection used by the d net subsystem.
_dnet_mp_host_sector_cursorTracks the mutable dnet mp host sector cursor value used by the d net subsystem.
_dnet_mp_host_side_cursorTracks the mutable dnet mp host side cursor value used by the d net subsystem.
_dnet_mp_host_slot_fullsync_burstStores the dnet mp host slot fullsync burst collection used by the d net subsystem.
const _DNET_MP_INPUT_ACTIVE_REDUNDANT_COPIES = 2Defines dnet mp input active redundant copies for the d net subsystem.
const _DNET_MP_INPUT_KEEPALIVE_TICS = 1Defines dnet mp input keepalive tics for the d net subsystem.
const _DNET_MP_JOIN_FULLSYNC_BURST_TICS = 70Defines dnet mp join fullsync burst tics for the d net subsystem.
_dnet_mp_last_input_cmdHolds the optional dnet mp last input cmd resource used by the d net subsystem.
_dnet_mp_last_input_send_ticTracks the mutable dnet mp last input send tic value used by the d net subsystem.
_dnet_mp_last_input_seqTracks the mutable dnet mp last input seq value used by the d net subsystem.
_dnet_mp_last_phase_ticTracks the mutable dnet mp last phase tic value used by the d net subsystem.
_dnet_mp_last_snapshot_ticTracks the mutable dnet mp last snapshot tic value used by the d net subsystem.
_dnet_mp_local_name_announcedTracks whether dnet mp local name announced is active in the d net subsystem.
const _DNET_MP_MAX_ACTORS_PER_SNAPSHOT = 20Defines the maximum dnet mp max actors per snapshot accepted by the d net subsystem.
const _DNET_MP_MAX_REMOVED_PER_SNAPSHOT = 96Defines the maximum dnet mp max removed per snapshot accepted by the d net subsystem.
const _DNET_MP_MAX_SECTORS_PER_SNAPSHOT = 8Defines the maximum dnet mp max sectors per snapshot accepted by the d net subsystem.
const _DNET_MP_MAX_SIDES_PER_SNAPSHOT = 8Defines the maximum dnet mp max sides per snapshot accepted by the d net subsystem.
const _DNET_MP_NAME_BYTES = 26Defines dnet mp name bytes for the d net subsystem.
const _DNET_MP_PAYLOAD_BUDGET = 1391Keep 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.
const _DNET_MP_PHASE_INTERVAL = 4Defines dnet mp phase interval for the d net subsystem.
const _DNET_MP_PLAYER_ROW_BYTES = 88Defines dnet mp player row bytes for the d net subsystem.
const _DNET_MP_RELEVANCE_DISTANCE = 1536 * FRACUNITDefines dnet mp relevance distance for the d net subsystem.
const _DNET_MP_RELEVANCE_MISSILE_BONUS = 768 * FRACUNITDefines dnet mp relevance missile bonus for the d net subsystem.
const _DNET_MP_RELEVANCE_SPECIAL_BONUS = 384 * FRACUNITDefines dnet mp relevance special bonus for the d net subsystem.
const _DNET_MP_RELEVANCE_VIEW_BONUS = 2048 * FRACUNITDefines dnet mp relevance view bonus for the d net subsystem.
const _DNET_MP_RELEVANCE_VIEW_HALFANGLE = 536870912Defines dnet mp relevance view halfangle for the d net subsystem.
const _DNET_MP_REMOTE_CMD_STALE_TICS = 6Defines dnet mp remote cmd stale tics for the d net subsystem.
_dnet_mp_remote_cmd_ticStores the dnet mp remote cmd tic collection used by the d net subsystem.
_dnet_mp_remote_cmd_validStores the dnet mp remote cmd valid collection used by the d net subsystem.
_dnet_mp_remote_cmdsStores the dnet mp remote cmds collection used by the d net subsystem.
_dnet_mp_remote_input_last_seqStores the dnet mp remote input last seq collection used by the d net subsystem.
const _DNET_MP_REMOVE_RESEND_COUNT = 3Defines dnet mp remove resend count for the d net subsystem.
const _DNET_MP_REMOVED_QUEUE_MAX = 4096Defines the maximum dnet mp removed queue max accepted by the d net subsystem.
_dnet_mp_snap_cache_actor_idsStores the dnet mp snap cache actor ids collection used by the d net subsystem.
_dnet_mp_snap_cache_actor_refsStores the dnet mp snap cache actor refs collection used by the d net subsystem.
_dnet_mp_snap_cache_force_allTracks whether dnet mp snap cache force all is active in the d net subsystem.
_dnet_mp_snap_cache_player_rowsStores the dnet mp snap cache player rows collection used by the d net subsystem.
_dnet_mp_snap_cache_removed_idsStores the dnet mp snap cache removed ids collection used by the d net subsystem.
_dnet_mp_snap_cache_sector_rowsStores the dnet mp snap cache sector rows collection used by the d net subsystem.
_dnet_mp_snap_cache_side_rowsStores the dnet mp snap cache side rows collection used by the d net subsystem.
_dnet_mp_snap_cache_tickTracks the mutable dnet mp snap cache tick value used by the d net subsystem.
const _DNET_MP_SNAPSHOT_INTERVAL = 1Defines dnet mp snapshot interval for the d net subsystem.
const _DNET_MP_STATIC_HEARTBEAT_FULLS = 8Defines dnet mp static heartbeat fulls for the d net subsystem.
_dnet_mp_was_authoritativeTracks whether dnet mp was authoritative is active in the d net subsystem.
_dnet_mp_was_clientTracks whether dnet mp was client is active in the d net subsystem.
const _DNET_MP_WISTATS_BASE_ROW_BYTES = 24Defines dnet mp wistats base row bytes for the d net subsystem.
const _DNET_MP_WISTATS_BROADCAST_INTERVAL = 18Defines dnet mp wistats broadcast interval for the d net subsystem.
const _DNET_MP_WISTATS_MAX_RETRIES = 3Defines the maximum dnet mp wistats max retries accepted by the d net subsystem.
const _DNET_MP_WISTATS_REQ_COOLDOWN_TICS = 4Defines dnet mp wistats req cooldown tics for the d net subsystem.
const _DNET_MP_WISTATS_RETRY_TICS = 12Defines dnet mp wistats retry tics for the d net subsystem.
const _DNET_MP_WISTATS_ROW_BYTES = _DNET_MP_WISTATS_BASE_ROW_BYTES + _DNET_MP_NAME_BYTESDefines dnet mp wistats row bytes for the d net subsystem.
inline function _DNet_MPAbs32(v)Returns integer absolute value for authoritative snapshot math.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPActiveSlots()Returns currently active multiplayer slots with host slot always present.
inline function _DNet_MPActorIsStaticForSync(mo)Detects mostly-static actor classes (pickups/corpses/decor) that can be heartbeated less often.
| Parameter | Type | Default | Description |
|---|---|---|---|
mo | dynamic | — | Map object affected by the operation. |
inline function _DNet_MPActorStateKey(mo)Builds compact actor state key used to suppress unchanged actor replication.
| Parameter | Type | Default | Description |
|---|---|---|---|
mo | dynamic | — | Map object affected by the operation. |
inline function _DNet_MPActorUsable(mo)Checks whether thinker owner is a currently valid non-player mobj for replication.
| Parameter | Type | Default | Description |
|---|---|---|---|
mo | dynamic | — | Map object affected by the operation. |
inline function _DNet_MPAngleAbsDelta(a, b)Returns shortest unsigned absolute angle delta (0..0x80000000).
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _DNet_MPAngleDeltaSigned(toAng, fromAng)Returns shortest signed angular delta (to-from) in Doom angle space.
| Parameter | Type | Default | Description |
|---|---|---|---|
toAng | dynamic | — | To ang value supplied to `_DNet_MPAngleDeltaSigned`. |
fromAng | dynamic | — | From ang value supplied to `_DNet_MPAngleDeltaSigned`. |
inline function _DNet_MPApproxDist2D(dx, dy)Computes Doom-style fast 2D distance approximation for relevance filtering.
| Parameter | Type | Default | Description |
|---|---|---|---|
dx | dynamic | — | Horizontal coordinate or vector component represented by dx. |
dy | dynamic | — | Vertical coordinate or vector component represented by dy. |
function _DNet_MPBuildChatPacket(senderSlot, dest, msg)Builds one authoritative multiplayer chat packet.
| Parameter | Type | Default | Description |
|---|---|---|---|
senderSlot | dynamic | — | Sender slot value supplied to `_DNet_MPBuildChatPacket`. |
dest | dynamic | — | Dest value supplied to `_DNet_MPBuildChatPacket`. |
msg | dynamic | — | Msg value supplied to `_DNet_MPBuildChatPacket`. |
inline function _DNet_MPBuildFeedPacket(code, a, b)Builds a small gameplay event packet (kill feed, etc.).
| Parameter | Type | Default | Description |
|---|---|---|---|
code | dynamic | — | Code value supplied to `_DNet_MPBuildFeedPacket`. |
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
function _DNet_MPBuildIntermissionWB()Builds a complete intermission stats struct from wminfo with runtime fallback.
function _DNet_MPBuildNamePacket(slot, name)Encodes one sanitized player-name update in a compact fixed-protocol packet.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPBuildNamePacket`. |
name | dynamic | — | Resource or object name to resolve. |
function _DNet_MPBuildPhasePacket()Builds a compact host phase packet for client flow synchronization.
function _DNet_MPBuildSnapshotPacket(forceAll, snapshotTick)Builds one server snapshot payload for client replication.
| Parameter | Type | Default | Description |
|---|---|---|---|
forceAll | dynamic | — | Force all value supplied to `_DNet_MPBuildSnapshotPacket`. |
snapshotTick | dynamic | — | Snapshot tick value supplied to `_DNet_MPBuildSnapshotPacket`. |
function _DNet_MPBuildWIStatsPacket()Serializes host intermission stats so clients can render exact percentages and icons.
inline function _DNet_MPClampAbs(v, limit)Clamps value into [-limit, +limit].
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
limit | dynamic | — | Limit value supplied to `_DNet_MPClampAbs`. |
inline function _DNet_MPClientActorMissLimit(baseLimit, mo)Returns per-actor stale miss threshold so short-lived effects are culled quickly.
| Parameter | Type | Default | Description |
|---|---|---|---|
baseLimit | dynamic | — | Base limit value supplied to `_DNet_MPClientActorMissLimit`. |
mo | dynamic | — | Map object affected by the operation. |
function _DNet_MPClientAdvanceActors()Client-side actor smoothing using interpolation with bounded short extrapolation.
function _DNet_MPClientAdvancePlayers()Client-side smoothing for remote player movement and turning.
inline function _DNet_MPClientApplyChat(payload)Applies one authoritative multiplayer chat message on the local HUD.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplyChat`. |
function _DNet_MPClientApplyFeed(payload)Applies one host kill-feed packet on client HUD.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplyFeed`. |
function _DNet_MPClientApplyName(payload)Applies one authoritative rename and reports changes made by another player.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplyName`. |
function _DNet_MPClientApplyPhase(payload)Applies host phase sync packets (level/intermission/finale) on client.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplyPhase`. |
function _DNet_MPClientApplySnapshot(payload)Applies one authoritative world snapshot on client runtime.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplySnapshot`. |
function _DNet_MPClientApplyWIStats(payload)Applies host intermission stats packet to client WI runtime state.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPClientApplyWIStats`. |
inline function _DNet_MPClientBindActorId(idx, aid)Binds replicated actor id to one proxy slot and clears previous conflicting mapping.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
aid | dynamic | — | Aid value supplied to `_DNet_MPClientBindActorId`. |
function _DNet_MPClientBootstrapWorld()Clears client-side local non-player thinkers before authoritative actor replication takes over.
inline function _DNet_MPClientClassifyActor(atype, flags, mo)Classifies actor replication behavior: 0 static, 1 mobile, 2 fast/effect (missile-like).
| Parameter | Type | Default | Description |
|---|---|---|---|
atype | dynamic | — | Atype value supplied to `_DNet_MPClientClassifyActor`. |
flags | dynamic | — | Bit flags that control the operation. |
mo | dynamic | — | Map object affected by the operation. |
inline function _DNet_MPClientEnsureActorMotionSlot(idx)Ensures client-side actor smoothing arrays have capacity for one slot index.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
inline function _DNet_MPClientEnsurePlayerMotionSlots()Ensures client-side remote player smoothing arrays are sized for MAXPLAYERS.
function _DNet_MPClientFindActorByPose(atype, ax, ay, az, claimed)Finds closest existing client actor proxy by type/position for id-churn recovery.
| Parameter | Type | Default | Description |
|---|---|---|---|
atype | dynamic | — | Atype value supplied to `_DNet_MPClientFindActorByPose`. |
ax | dynamic | — | Horizontal coordinate or vector component represented by ax. |
ay | dynamic | — | Vertical coordinate or vector component represented by ay. |
az | dynamic | — | Az value supplied to `_DNet_MPClientFindActorByPose`. |
claimed | dynamic | — | Claimed value supplied to `_DNet_MPClientFindActorByPose`. |
inline function _DNet_MPClientFindActorByUidField(aid)Finds a client actor proxy whose local mobj mpuid already matches replicated actor id.
| Parameter | Type | Default | Description |
|---|---|---|---|
aid | dynamic | — | Aid value supplied to `_DNet_MPClientFindActorByUidField`. |
inline function _DNet_MPClientFindActorIndex(idv)Finds client-side actor proxy registry index by replicated id.
| Parameter | Type | Default | Description |
|---|---|---|---|
idv | dynamic | — | Idv value supplied to `_DNet_MPClientFindActorIndex`. |
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
atype | dynamic | — | Atype value supplied to `_DNet_MPClientFindClaimedActorExact`. |
ax | dynamic | — | Horizontal coordinate or vector component represented by ax. |
ay | dynamic | — | Vertical coordinate or vector component represented by ay. |
az | dynamic | — | Az value supplied to `_DNet_MPClientFindClaimedActorExact`. |
aang | dynamic | — | Aang value supplied to `_DNet_MPClientFindClaimedActorExact`. |
aspr | dynamic | — | Aspr value supplied to `_DNet_MPClientFindClaimedActorExact`. |
afrm | dynamic | — | Afrm value supplied to `_DNet_MPClientFindClaimedActorExact`. |
astate | dynamic | — | Astate value supplied to `_DNet_MPClientFindClaimedActorExact`. |
claimed | dynamic | — | Claimed value supplied to `_DNet_MPClientFindClaimedActorExact`. |
inline function _DNet_MPClientFindFreeActorSlot()Returns reusable client registry slot whose actor id was cleared.
inline function _DNet_MPClientRemoveActorAt(idx)Removes one client-side replicated actor proxy.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
inline function _DNet_MPClientResetPlayerMotionSlot(slot)Clears remote player smoothing state for one slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPClientResetPlayerMotionSlot`. |
function _DNet_MPClientStaleMissLimit()Computes how many full-snapshot misses an actor can accumulate before client-side stale removal.
function _DNet_MPClientTrackActorSnapshot(idx, mo, atype, afl, ax, ay, az, aang, snapTick, spawnedNow)Stores target pose and velocity estimate for one replicated actor snapshot.
| Parameter | Type | Default | Description |
|---|---|---|---|
idx | dynamic | — | Zero-based element or table index. |
mo | dynamic | — | Map object affected by the operation. |
atype | dynamic | — | Atype value supplied to `_DNet_MPClientTrackActorSnapshot`. |
afl | dynamic | — | Afl value supplied to `_DNet_MPClientTrackActorSnapshot`. |
ax | dynamic | — | Horizontal coordinate or vector component represented by ax. |
ay | dynamic | — | Vertical coordinate or vector component represented by ay. |
az | dynamic | — | Az value supplied to `_DNet_MPClientTrackActorSnapshot`. |
aang | dynamic | — | Aang value supplied to `_DNet_MPClientTrackActorSnapshot`. |
snapTick | dynamic | — | Snap tick value supplied to `_DNet_MPClientTrackActorSnapshot`. |
spawnedNow | dynamic | — | Spawned now value supplied to `_DNet_MPClientTrackActorSnapshot`. |
function _DNet_MPClientTrackPlayerSnapshot(slot, px, py, pz, pang, snapTick, hardSnap)Stores remote player target pose and velocity estimate from authoritative snapshots.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPClientTrackPlayerSnapshot`. |
px | dynamic | — | Horizontal coordinate or vector component represented by px. |
py | dynamic | — | Vertical coordinate or vector component represented by py. |
pz | dynamic | — | Pz value supplied to `_DNet_MPClientTrackPlayerSnapshot`. |
pang | dynamic | — | Pang value supplied to `_DNet_MPClientTrackPlayerSnapshot`. |
snapTick | dynamic | — | Snap tick value supplied to `_DNet_MPClientTrackPlayerSnapshot`. |
hardSnap | dynamic | — | Hard snap value supplied to `_DNet_MPClientTrackPlayerSnapshot`. |
function _DNet_MPClientUpdateWIStatsSync()Runs bounded request/retry logic until client received host intermission stats.
inline function _DNet_MPCmdEquals(a, b)Returns true when two ticcmd structs carry the same gameplay input values.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _DNet_MPCopyFrags4(src)Returns a fixed-size 4-entry frag row copied from arbitrary source sequence.
| Parameter | Type | Default | Description |
|---|---|---|---|
src | dynamic | — | Src value supplied to `_DNet_MPCopyFrags4`. |
function _DNet_MPDrainAuthoritativePackets()Pumps and routes authoritative multiplayer packets for host/client.
function _DNet_MPEnsureHostSlotMobj(slot)Spawns missing remote player mobjs on host when late-joining clients become active.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPEnsureHostSlotMobj`. |
inline function _DNet_MPEnsurePlayerStruct(slot)Ensures player slot contains a valid player struct.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPEnsurePlayerStruct`. |
inline function _DNet_MPHostActorRelevantForSlot(slot, mo)Returns true when an actor is relevant enough for a specific client slot snapshot.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPHostActorRelevantForSlot`. |
mo | dynamic | — | Map object affected by the operation. |
function _DNet_MPHostApplyActiveSlots()Synchronizes host player slot activity with platform peer list.
function _DNet_MPHostBroadcastAllNames()Refreshes the complete small slot-name table so newly joined clients learn existing peers immediately.
function _DNet_MPHostBroadcastKillFeed(killer, victim)Broadcasts one host-authoritative kill message to all connected clients.
| Parameter | Type | Default | Description |
|---|---|---|---|
killer | dynamic | — | Killer value supplied to `_DNet_MPHostBroadcastKillFeed`. |
victim | dynamic | — | Victim value supplied to `_DNet_MPHostBroadcastKillFeed`. |
function _DNet_MPHostBroadcastName(slot, name)Broadcasts one host-approved slot name to every connected multiplayer client.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPHostBroadcastName`. |
name | dynamic | — | Resource or object name to resolve. |
function _DNet_MPHostBroadcastTelefragFeed(killer, victim)Broadcasts one host-authoritative telefrag message to all connected clients.
| Parameter | Type | Default | Description |
|---|---|---|---|
killer | dynamic | — | Killer value supplied to `_DNet_MPHostBroadcastTelefragFeed`. |
victim | dynamic | — | Victim value supplied to `_DNet_MPHostBroadcastTelefragFeed`. |
function _DNet_MPHostBroadcastWIStats()Broadcasts intermission stats snapshot to all connected clients.
function _DNet_MPHostCheckFragFeed()Detects host-side frag matrix increments and emits kill feed events.
function _DNet_MPHostCollectActorChunk(maxCount, forceAll, snapshotTick)Returns rotating subset of changed host actors for snapshot payloads.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxCount | dynamic | — | Number of max to process. |
forceAll | dynamic | — | Force all value supplied to `_DNet_MPHostCollectActorChunk`. |
snapshotTick | dynamic | — | Snapshot tick value supplied to `_DNet_MPHostCollectActorChunk`. |
function _DNet_MPHostCollectSectorChanges(maxCount, forceAll)Collects a rotating subset of changed sector dynamics for snapshots.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxCount | dynamic | — | Number of max to process. |
forceAll | dynamic | — | Force all value supplied to `_DNet_MPHostCollectSectorChanges`. |
function _DNet_MPHostCollectSideChanges(maxCount, forceAll)Collects changed sidedef textures so clients see switch/button state transitions.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxCount | dynamic | — | Number of max to process. |
forceAll | dynamic | — | Force all value supplied to `_DNet_MPHostCollectSideChanges`. |
function _DNet_MPHostEnsureSectorCache()Initializes host-side sector cache used for delta snapshots.
function _DNet_MPHostEnsureSideCache()Initializes host-side sidedef texture cache used for switch and wall texture replication.
inline function _DNet_MPHostFindActorIndex(nodeKey)Locates host-side actor registry slot by stable actor key.
| Parameter | Type | Default | Description |
|---|---|---|---|
nodeKey | dynamic | — | Stable key identifying the network node. |
function _DNet_MPHostFindActorIndexByPose(owner)Finds an existing host actor slot by tight type/pose match as fallback when thinker key is missing.
| Parameter | Type | Default | Description |
|---|---|---|---|
owner | dynamic | — | Owner value supplied to `_DNet_MPHostFindActorIndexByPose`. |
inline function _DNet_MPHostFindFreeActorSlot()Returns reusable host registry slot whose actor id was cleared.
function _DNet_MPHostHandleChatPacket(node, payload)Validates and relays one client chat packet as authoritative chat event.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_DNet_MPHostHandleChatPacket`. |
payload | dynamic | — | Payload value supplied to `_DNet_MPHostHandleChatPacket`. |
function _DNet_MPHostHandleInputPacket(node, payload)Applies one client input payload to host-side remote command cache.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_DNet_MPHostHandleInputPacket`. |
payload | dynamic | — | Payload value supplied to `_DNet_MPHostHandleInputPacket`. |
function _DNet_MPHostHandleNamePacket(node, payload)Authenticates a client rename by its transport slot, updates the peer table, and relays it.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_DNet_MPHostHandleNamePacket`. |
payload | dynamic | — | Payload value supplied to `_DNet_MPHostHandleNamePacket`. |
inline function _DNet_MPHostHandleWIStatsRequest(node, payload)Handles one client request for intermission stats retransmission.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_DNet_MPHostHandleWIStatsRequest`. |
payload | dynamic | — | Payload value supplied to `_DNet_MPHostHandleWIStatsRequest`. |
inline function _DNet_MPHostInvalidateActorSigById(aid)Forces one host actor id to be considered dirty for next snapshot selection.
| Parameter | Type | Default | Description |
|---|---|---|---|
aid | dynamic | — | Aid value supplied to `_DNet_MPHostInvalidateActorSigById`. |
function _DNet_MPHostIsLikelyTelefrag(killer, victim)Detects teleport-stomp frags so feed can use telefrag wording.
| Parameter | Type | Default | Description |
|---|---|---|---|
killer | dynamic | — | Killer value supplied to `_DNet_MPHostIsLikelyTelefrag`. |
victim | dynamic | — | Victim value supplied to `_DNet_MPHostIsLikelyTelefrag`. |
inline function _DNet_MPHostMarkSlotFullsync(slot)Schedules an immediate full-snapshot burst for a newly active remote slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPHostMarkSlotFullsync`. |
function _DNet_MPHostMaybeSendPhase(force)Periodically sends host game phase packets to keep clients flow-synchronized.
| Parameter | Type | Default | Description |
|---|---|---|---|
force | dynamic | — | Force value supplied to `_DNet_MPHostMaybeSendPhase`. |
function _DNet_MPHostMaybeSendSnapshot(forceAll)Sends periodic world snapshots from authoritative host to all clients.
| Parameter | Type | Default | Description |
|---|---|---|---|
forceAll | dynamic | — | Force all value supplied to `_DNet_MPHostMaybeSendSnapshot`. |
function _DNet_MPHostPopRemovedIds(maxCount)Returns and removes removed actor ids for snapshot notification.
| Parameter | Type | Default | Description |
|---|---|---|---|
maxCount | dynamic | — | Number of max to process. |
inline function _DNet_MPHostQueueRemovedId(idv)Queues one removed actor id for multiple snapshots to tolerate UDP packet loss.
| Parameter | Type | Default | Description |
|---|---|---|---|
idv | dynamic | — | Idv value supplied to `_DNet_MPHostQueueRemovedId`. |
function _DNet_MPHostRefreshActorRegistry()Updates host-side actor registry and tracks removed actor ids.
function _DNet_MPHostRelayChat(sender, dest, txt)Displays and routes a validated chat line to its sender and optional private recipient.
| Parameter | Type | Default | Description |
|---|---|---|---|
sender | dynamic | — | Sender value supplied to `_DNet_MPHostRelayChat`. |
dest | dynamic | — | Dest value supplied to `_DNet_MPHostRelayChat`. |
txt | dynamic | — | Txt value supplied to `_DNet_MPHostRelayChat`. |
function _DNet_MPHostRequeueDroppedActorRows(actorIds, startIdx)Re-queues actor rows trimmed by packet budget so they are retried next snapshots.
| Parameter | Type | Default | Description |
|---|---|---|---|
actorIds | dynamic | — | Actor ids value supplied to `_DNet_MPHostRequeueDroppedActorRows`. |
startIdx | dynamic | — | Start idx value supplied to `_DNet_MPHostRequeueDroppedActorRows`. |
function _DNet_MPHostSelectActorsForSlot(slot, actorIds, actorRefs, maxCount, forceAll, snapshotTick)Prioritizes client-relevant actor updates over non-relevant updates for one target slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPHostSelectActorsForSlot`. |
actorIds | dynamic | — | Actor ids value supplied to `_DNet_MPHostSelectActorsForSlot`. |
actorRefs | dynamic | — | Actor refs value supplied to `_DNet_MPHostSelectActorsForSlot`. |
maxCount | dynamic | — | Number of max to process. |
forceAll | dynamic | — | Force all value supplied to `_DNet_MPHostSelectActorsForSlot`. |
snapshotTick | dynamic | — | Snapshot tick value supplied to `_DNet_MPHostSelectActorsForSlot`. |
inline function _DNet_MPHostSendWIStatsTo(slot)Sends a full intermission stats packet to one client slot.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPHostSendWIStatsTo`. |
inline function _DNet_MPHostSnapshotInterval()Computes adaptive snapshot cadence based on active replicated actor load.
inline function _DNet_MPIntermissionNextMap()Resolves the next map number while host is in intermission.
inline function _DNet_MPIsAuthoritative()Returns true while host-authoritative multiplayer runtime is active.
inline function _DNet_MPIsClient()Returns true when multiplayer platform is currently connected as client.
inline function _DNet_MPIsHost()Returns true when multiplayer platform is currently hosting.
function _DNet_MPLevelReady()Returns true when level state is initialized enough for authoritative snapshots.
function _DNet_MPMakeWBRowForSlot(slot)Builds one intermission player row from current authoritative runtime player state.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPMakeWBRowForSlot`. |
const _DNET_MPMSG_CHAT = 7Defines dnet mpmsg chat for the d net subsystem.
const _DNET_MPMSG_FEED = 4Defines dnet mpmsg feed for the d net subsystem.
const _DNET_MPMSG_INPUT = 1Defines dnet mpmsg input for the d net subsystem.
const _DNET_MPMSG_NAME = 8Defines dnet mpmsg name for the d net subsystem.
const _DNET_MPMSG_PHASE = 3Defines dnet mpmsg phase for the d net subsystem.
const _DNET_MPMSG_SNAPSHOT = 2Defines dnet mpmsg snapshot for the d net subsystem.
const _DNET_MPMSG_SOUND = 201Defines dnet mpmsg sound for the d net subsystem.
const _DNET_MPMSG_WISTATS = 5Defines dnet mpmsg wistats for the d net subsystem.
const _DNET_MPMSG_WISTATS_REQ = 6Defines dnet mpmsg wistats req for the d net subsystem.
function _DNet_MPNormalizeChatText(msg)Normalizes chat text to printable ASCII and trims packet size.
| Parameter | Type | Default | Description |
|---|---|---|---|
msg | dynamic | — | Msg value supplied to `_DNet_MPNormalizeChatText`. |
inline function _DNet_MPPhaseCode()Maps Doom gamestate to compact phase code used by phase sync packets.
inline function _DNet_MPPlayerHasAnyOwnedWeapon(p)Returns true if a player struct already carries any weapon ownership flag.
| Parameter | Type | Default | Description |
|---|---|---|---|
p | dynamic | — | Object or data record consumed by the operation. |
inline function _DNet_MPPlayerName(slot)Resolves a readable player name for HUD/event messages.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPPlayerName`. |
function _DNet_MPReadFixedName(payload, off, width)Reads one fixed-width null-terminated ASCII player name field.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPReadFixedName`. |
off | dynamic | — | Zero-based byte or element offset. |
width | dynamic | — | Width of the target in pixels or map units. |
inline function _DNet_MPReadI16(buf, off)Reads a 16-bit signed integer from byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPReadI16`. |
off | dynamic | — | Zero-based byte or element offset. |
inline function _DNet_MPReadI32(buf, off)Reads a 32-bit signed integer from byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPReadI32`. |
off | dynamic | — | Zero-based byte or element offset. |
function _DNet_MPReadNamePacket(payload)Validates a name packet's declared length and returns its canonical player name.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPReadNamePacket`. |
inline function _DNet_MPReadU16(buf, off)Reads a 16-bit unsigned integer from byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPReadU16`. |
off | dynamic | — | Zero-based byte or element offset. |
inline function _DNet_MPReadU32(buf, off)Reads a 32-bit unsigned integer from byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPReadU32`. |
off | dynamic | — | Zero-based byte or element offset. |
function _DNet_MPResetRuntime()Clears host/client authoritative replication caches.
function _DNet_MPReturnToOffline(wasClient)Collapses stale multiplayer clocks/slots after transport loss and returns to a defined title state.
| Parameter | Type | Default | Description |
|---|---|---|---|
wasClient | dynamic | — | Was client value supplied to `_DNet_MPReturnToOffline`. |
function _DNet_MPSendInputCmd(cmd)Sends one client input command to authoritative host.
| Parameter | Type | Default | Description |
|---|---|---|---|
cmd | dynamic | — | Cmd value supplied to `_DNet_MPSendInputCmd`. |
inline function _DNet_MPSendWIStatsRequest()Sends one client-side intermission stats request to the host.
inline function _DNet_MPSeqIsNewer(a, b)Returns true when input sequence a is newer than b (uint32 wrap-around aware).
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
function _DNet_MPSetPlayerSlotActive(slot, active)Toggles slot active state and removes stale mobjs on deactivate.
| Parameter | Type | Default | Description |
|---|---|---|---|
slot | dynamic | — | Slot value supplied to `_DNet_MPSetPlayerSlotActive`. |
active | dynamic | — | Whether the requested state should be active. |
inline function _DNet_MPSign32(v)Returns sign of integer value (-1, 0, +1).
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPSlotActive(active, slot)Checks if slot is present in active slot list.
| Parameter | Type | Default | Description |
|---|---|---|---|
active | dynamic | — | Whether the requested state should be active. |
slot | dynamic | — | Slot value supplied to `_DNet_MPSlotActive`. |
inline function _DNet_MPStateKeyEquals(a, b)Compares two compact snapshot keys for player/actor delta detection.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _DNet_MPStaticActorHeartbeatHit(idv, snapshotTick)Spreads static actor heartbeat replication across full snapshots.
| Parameter | Type | Default | Description |
|---|---|---|---|
idv | dynamic | — | Idv value supplied to `_DNet_MPStaticActorHeartbeatHit`. |
snapshotTick | dynamic | — | Snapshot tick value supplied to `_DNet_MPStaticActorHeartbeatHit`. |
inline function _DNet_MPThinkerIsMobj(node)Returns true when thinker node is a mobj thinker callback.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_DNet_MPThinkerIsMobj`. |
inline function _DNet_MPU32(v)Normalizes signed int values into unsigned 32-bit angle space.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPWBRowChanged(a, b)Compares one intermission row for gameplay-relevant stat changes.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | First input operand. |
b | dynamic | — | Second input operand. |
inline function _DNet_MPWBStatsChanged(oldwb, newwb)Detects whether a newer WI stats packet requires intermission state refresh.
| Parameter | Type | Default | Description |
|---|---|---|---|
oldwb | dynamic | — | Oldwb value supplied to `_DNet_MPWBStatsChanged`. |
newwb | dynamic | — | Newwb value supplied to `_DNet_MPWBStatsChanged`. |
function _DNet_MPWriteFixedName(payload, off, width, name)Writes one fixed-width null-terminated ASCII player name field.
| Parameter | Type | Default | Description |
|---|---|---|---|
payload | dynamic | — | Payload value supplied to `_DNet_MPWriteFixedName`. |
off | dynamic | — | Zero-based byte or element offset. |
width | dynamic | — | Width of the target in pixels or map units. |
name | dynamic | — | Resource or object name to resolve. |
inline function _DNet_MPWriteI16(buf, off, v)Writes a 16-bit signed integer into byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPWriteI16`. |
off | dynamic | — | Zero-based byte or element offset. |
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPWriteI32(buf, off, v)Writes a 32-bit signed integer into byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPWriteI32`. |
off | dynamic | — | Zero-based byte or element offset. |
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPWriteU16(buf, off, v)Writes a 16-bit unsigned integer into byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPWriteU16`. |
off | dynamic | — | Zero-based byte or element offset. |
v | dynamic | — | Value consumed by the operation. |
inline function _DNet_MPWriteU32(buf, off, v)Writes a 32-bit unsigned integer into byte buffer.
| Parameter | Type | Default | Description |
|---|---|---|---|
buf | dynamic | — | Buf value supplied to `_DNet_MPWriteU32`. |
off | dynamic | — | Zero-based byte or element offset. |
v | dynamic | — | Value consumed by the operation. |
_dnet_oldenterticsTracks the mutable dnet oldentertics value used by the d net subsystem.
_dnet_oldnetticsTracks the mutable dnet oldnettics value used by the d net subsystem.
function _DNet_RunGameTics(counts)Runs a bounded number of host/legacy simulation tics and emits host snapshots after each authoritative tic.
| Parameter | Type | Default | Description |
|---|---|---|---|
counts | dynamic | — | Counts value supplied to `_DNet_RunGameTics`. |
function _DNet_StateIndex(s)Resolves a runtime state value to its authoritative state index for snapshot serialization.
| Parameter | Type | Default | Description |
|---|---|---|---|
s | dynamic | — | S value supplied to `_DNet_StateIndex`. |
inline function _DNet_ToInt(v, fallback)Converts source to int values for the network game.
| Parameter | Type | Default | Description |
|---|---|---|---|
v | dynamic | — | Value consumed by the operation. |
fallback | dynamic | — | Value returned when the requested conversion or lookup is unavailable. |
function _DNet_TryRunTicsUncapped()Drains every locally available tic for uncapped single-player rendering while preserving network clocks.
const BACKUPTICS = 12Defines backuptics for the d net subsystem.
function CheckAbort()Pumps input during net-start waits and aborts synchronization when Escape is pressed.
command_t enum
function D_ArbitrateNetStart()Exchanges legacy startup settings so every node begins with the console node's map and rules.
function D_CheckNetGame()Resets legacy/authoritative network clocks and initializes the platform network driver once.
function D_NetInitSinglePlayer()Rebuilds Doom networking, slot ownership, and tic queues as one local player after startup or transport loss.
function D_NetMPDebugOverlayText()Returns authoritative d_net snapshot diagnostics for on-screen overlay.
function D_NetMPSendChat(dest, msg)Sends local HUD chat through the authoritative packet channel, preserving private destinations.
| Parameter | Type | Default | Description |
|---|---|---|---|
dest | dynamic | — | Dest value supplied to `D_NetMPSendChat`. |
msg | dynamic | — | Msg value supplied to `D_NetMPSendChat`. |
function D_NetMPSetPlayerName(name)Changes the local persistent name and propagates it through an active authoritative session.
| Parameter | Type | Default | Description |
|---|---|---|---|
name | dynamic | — | Resource or object name to resolve. |
function D_QuitNetGame()Repeats a legacy exit notification to every active remote node before local shutdown.
d_runtics_lastTracks the mutable d runtics last value used by the d net subsystem.
doomcomHolds the optional doomcom resource used by the d net subsystem.
const DOOMCOM_ID = 305419896Defines doomcom id for the d net subsystem.
doomcom_t struct
doomdata_t struct
function ExpandTics(low)Expands an 8-bit wire tic into the closest plausible absolute game tic.
| Parameter | Type | Default | Description |
|---|---|---|---|
low | dynamic | — | Low value supplied to `ExpandTics`. |
gametimeTracks the mutable gametime value used by the d net subsystem.
function GetPackets()Drains validated legacy packets, updates resend windows, and copies new remote commands into rings.
function HGetPacket()Receives one legacy packet, verifies checksum/length, and exposes its source node.
function HSendPacket(node, flags)Controls hSend Packet transitions in the network game system.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `HSendPacket`. |
flags | dynamic | — | Bit flags that control the operation. |
lastnetticTracks the mutable lastnettic value used by the d net subsystem.
localcmdsStores the localcmds collection used by the d net subsystem.
maketicTracks the mutable maketic value used by the d net subsystem.
const MAXNETNODES = 8Defines the maximum maxnetnodes accepted by the d net subsystem.
maxsendTracks the mutable maxsend value used by the d net subsystem.
const NCMD_CHECKSUM = 268435455Defines ncmd checksum for the d net subsystem.
const NCMD_EXIT = 2147483648Defines ncmd exit for the d net subsystem.
const NCMD_KILL = 268435456Defines ncmd kill for the d net subsystem.
const NCMD_RETRANSMIT = 1073741824Defines ncmd retransmit for the d net subsystem.
const NCMD_SETUP = 536870912Defines ncmd setup for the d net subsystem.
netbufferHolds the optional netbuffer resource used by the d net subsystem.
function NetbufferChecksum()Computes the legacy Doom packet checksum over header fields and the transmitted ticcmd rows.
inline function NetbufferSize()Computes the encoded byte count for the current bounded legacy packet.
netcmdsStores the netcmds collection used by the d net subsystem.
netticsStores the nettics collection used by the d net subsystem.
function NetUpdate()Pumps authoritative packets, samples local input, and fills per-player ticcmd rings without simulating clients.
nodeforplayerStores the nodeforplayer collection used by the d net subsystem.
nodeingameStores the nodeingame collection used by the d net subsystem.
const PL_DRONE = 128Defines pl drone for the d net subsystem.
reboundpacketTracks whether reboundpacket is active in the d net subsystem.
reboundstoreHolds the optional reboundstore resource used by the d net subsystem.
remoteresendStores the remoteresend collection used by the d net subsystem.
const RESENDCOUNT = 10Defines resendcount for the d net subsystem.
resendcountStores the resendcount collection used by the d net subsystem.
resendtoStores the resendto collection used by the d net subsystem.
skipticsTracks the mutable skiptics value used by the d net subsystem.
ticdupTracks the mutable ticdup value used by the d net subsystem.
function TryRunTics()Schedules host/legacy simulation or client-only UI/interpolation ticks from wall-clock and network availability.