# _CCMD_Ammo
function _CCMD_Ammo(includeKeys)Implements IDFA and IDKFA with their original distinction over key ownership.
| Parameter | Type | Default | Description |
|---|---|---|---|
includeKeys | dynamic | — | Include keys value supplied to `_CCMD_Ammo`. |
src/console_cmd.mlParses console command text and performs gameplay or utility actions without owning any UI state.
doomdef.ml → src/doomdef.mldoomstat.ml → src/doomstat.mlg_game.ml → src/g_game.mli_system.ml → src/i_system.mlmp_state.ml → src/mp_state.mlp_enemy.ml → src/p_enemy.mlp_inter.ml → src/p_inter.mlp_mobj.ml → src/p_mobj.mlp_tick.ml → src/p_tick.mlstd/math.ml → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/math.ml external dependencystd/string.ml as str → ../MiniLangCompilerOptimization/MiniLangCompilerPy/std/string.ml external dependencyfunction _CCMD_Ammo(includeKeys)Implements IDFA and IDKFA with their original distinction over key ownership.
| Parameter | Type | Default | Description |
|---|---|---|---|
includeKeys | dynamic | — | Include keys value supplied to `_CCMD_Ammo`. |
function _CCMD_Cheats()Lists every supported single-player gameplay cheat with concise usage text.
inline function _CCMD_CurrentPlayer()Resolves the checked local player record used by single-player cheat commands.
_ccmd_direct_cheat_bufferRolling gameplay-key suffix used for classic, console-free IDCLEV entry. Stores the mutable ccmd direct cheat buffer text used by the console cmd subsystem.
function _CCMD_Fps()Toggles the in-game presentation-rate overlay independently of the window title.
function _CCMD_Freeze()Toggles suspension of non-player thinkers and world specials.
function _CCMD_God()Toggles canonical Doom god mode and restores a viable health value when enabling it.
function _CCMD_GrantArsenal(player, includeKeys)Gives armor, every weapon, full carried ammunition, and optionally every key to the local player.
| Parameter | Type | Default | Description |
|---|---|---|---|
player | dynamic | — | Player state affected by the operation. |
includeKeys | dynamic | — | Include keys value supplied to `_CCMD_GrantArsenal`. |
function _CCMD_Help()Describes console activation, navigation, logging, pause behavior, and utility commands.
function _CCMD_IdClev(argument)Validates a Doom II map number or Doom episode/map pair and queues the normal level transition.
| Parameter | Type | Default | Description |
|---|---|---|---|
argument | dynamic | — | Argument value supplied to `_CCMD_IdClev`. |
function _CCMD_Invisible()Toggles persistent monster notarget behavior and immediately cancels existing locks and attacks when enabled.
function _CCMD_KillMonsters()Applies lethal damage to every living counted monster, lost soul, and Icon of Sin brain in the level.
function _CCMD_Name(argument, setName)Shows or changes the persistent local player name and announces it to an active multiplayer session.
| Parameter | Type | Default | Description |
|---|---|---|---|
argument | dynamic | — | Argument value supplied to `_CCMD_Name`. |
setName | dynamic | — | Set name value supplied to `_CCMD_Name`. |
function _CCMD_NoClip()Toggles the player's collision-bypass cheat flag.
inline function _CCMD_OnOff(enabled)Formats a stable enabled/disabled suffix shared by toggle command responses.
| Parameter | Type | Default | Description |
|---|---|---|---|
enabled | dynamic | — | Whether the requested feature should be enabled. |
function _CCMD_ParsePositiveInt(text)Parses one whitespace-trimmed positive decimal integer and rejects every non-digit byte.
| Parameter | Type | Default | Description |
|---|---|---|---|
text | dynamic | — | Text to process. |
inline function _CCMD_RequireGameplayCheat(requirePlayer)Rejects world-mutating commands outside a live single-player level to avoid network desynchronization.
| Parameter | Type | Default | Description |
|---|---|---|---|
requirePlayer | dynamic | — | Require player value supplied to `_CCMD_RequireGameplayCheat`. |
inline function _CCMD_ResolveMobj(node)Resolves one thinker node to its registered mobj owner for world command scans.
| Parameter | Type | Default | Description |
|---|---|---|---|
node | dynamic | — | Node value supplied to `_CCMD_ResolveMobj`. |
inline function _CCMD_Result(handled, message, clearLog, closeConsole)Constructs one normalized command result for the console UI boundary.
| Parameter | Type | Default | Description |
|---|---|---|---|
handled | dynamic | — | Handled value supplied to `_CCMD_Result`. |
message | dynamic | — | Message text or payload to process. |
clearLog | dynamic | — | Clear log value supplied to `_CCMD_Result`. |
closeConsole | dynamic | — | Close console value supplied to `_CCMD_Result`. |
function CCMD_DirectCheatResponder(ev)Detects classic IDCLEV plus two digits in ordinary gameplay without consuming movement keys.
| Parameter | Type | Default | Description |
|---|---|---|---|
ev | dynamic | — | Input event to process. |
function CCMD_Execute(line)Normalizes one input line and dispatches it to isolated command implementations.
| Parameter | Type | Default | Description |
|---|---|---|---|
line | dynamic | — | Map line or text line affected by the operation. |
console_command_result_t struct