Console Commands - DarklightGames/DarkestHour GitHub Wiki
Some commands below require you to provide a team index. This is a numeric value that refers to either Axis or Allied team (or both of them):
-
Axis:
0
. -
Allies:
1
. -
Both or Neutral:
255
(not all commands that accept a team index support this).
Logs in as administrator.
Logs in as administrator silently.
Logs out as administrator.
Runs a command as the administrator. This is required for running server-side commands from the client (eg. ResetGame
etc.).
Starts a 10 second countdown, then resets the round.
This function will initiate a reset game with swap teams
Initiates the mid game vote.
Ends the round in favor of the specified team.
Timer modifiers accept an optional "operation type" parameter. If omitted, the function will set
the time to the provided value.
Operation types:
-
set
(default) add
subtract
This function is for admins who want to change round time on the fly.
Modifies the duration of the setup phase. This function is only valid during the setup phase.
Examples:
- Increase the time by 30s:
ChangeSetupPhaseTime 0 30 Add
- Set the time to 5:04:
ChangeSetupPhaseTime 5 4
Function for changing the Allies to Axis ratio for testing and real time balance changes.
Function for changing bHardTeamRatio
in real time.
Changes the amount of available reinforcements.
Function for changing a team's reinforcement interval.
Toggles the reinforcements attrition.
NOTE: This function won't have an effect until the next
NotifyObjStateChanged()
call, i.e. you won't be able to enable/disable the attrition after the last objective has been captured. Use with care during a live game!
Captures a currently active objective (for the supplied team). Useful for debugging.
Toggles an overlay on the overview map that displays NE and SW map bounds, as well as spawn and objective indices and DZ modifier values of objectives.
Toggles the danger zone on and off.
Adjusts the size of the neutral zone (range: 0..255
, default: 128
).
Shift the balance between axis and allied zones (range -127..127
, default: 0
).
Modify DangerZone influence values of an individual objective. InfluenceType is value to modify (a=All, b=Base, n=Neutral, ax=Axis, al=Allies), Index is the objnum of the desired objective to modify (Run ShowDebugMap command beforehand to display objective/spawn indices and current values), Value is the new modifier value.
Change the objective spawn distance threshold value. The distance value is in meters.
Quick test function to change a role's limit. Doesn't support bots.
Displays debugging stats related to various game subsystems.
Fixes the engine's visibility from your current point of view. You can walk around and see what exactly is being drawn, check that antiportals are working, object cull distances, etc. Useful for visualizing and identifying areas that need culling optimization. Enter it again to turn it off.
Changes the rendering mode. The default render mode is 7
.
Sets the time dilation of the game logic, where a T
of 1.0
is normal speed, 2.0
is twice normal speed, 0.5
is half normal speed etc.