Skip to content

Debug & Admin Commands

GDrukenmiller edited this page Sep 11, 2023 · 18 revisions

This list of debug commands is not consolidated.

Game Debug

DebugSetRoleLimit (int Team, int Index, int NewLimit)

Quick test function to change a role's limit (Allied only) function doesn't support bots


SetAlliesToAxisRatio (float Value)

Function for changing the AlliesToAxisRatio for testing and real time balance changes


SetHardTeamRatio (bool bNewHardTeamRatio)

Function for changing bHardTeamRatio at real time


SetReinforcementInterval (int Team, int Amount)

Function for changing a team's ReinforcementInterval


WinRound (optional int TeamToWin)

Function for winning a round


SetReinforcements (int Team, int Amount)


CaptureObj (int Team)

Function to allow for capturing a currently active objective (for the supplied team), useful for debugging


ChangeRoundTime (int Minutes, optional string Type)

This function is for admins who want to change round time on the fly, can pass a value (in minutes) and a type (default is to set)


SwapTeams

This function will initiate a reset game with swap teams


MidGameVote

Initiates the mid game vote.


SetAttrition (bool bEnabled)

Toggles the reinforcements attrition.

WARNING: 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.


ChangeSetupPhaseTime (int Minutes, int Seconds, optional string OperationType)

Modifies the duration of the setup phase. This function is only valid during the setup phase.

Operation types: set (default), add, subtract.

Examples:

  • Increase the time by 30s: ChangeSetupPhaseTime 0 30 Add

  • Set the time to 5:04: ChangeSetupPhaseTime 5 4


ShowDebugMap

Toggles an overlay on the overhead map that displays NE and SW map bounds, as well as spawn and objective indices and DZ modifier values of objectives.


SetDangerZone (bool bEnabled)

Toggles the danger zone on and off.


SetDangerZoneNeutral (byte Factor)

Adjusts the size of the neutral zone (range: 0..255, default: 128).


SetDangerZoneBalance (int Factor)

Shift the balance between axis and allied zones (range -127..127, default: 0).


SetInfluence (string InfluenceType, int Index, float Value)

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.


Player Debug

BehindView (bool B)


DebugLockWeapons (int Seconds)


FOV (float F)


DoLog (string LogMessage)

New debug exec for an easy way to write to log in-game, on both server & client in multi-player


DebugObstacles (optional int Option)

  • 0: Make all obstacles intact
  • 1: Clear all obstacles
  • 2: Randomly make all obstacles intact or cleared (50/50 chance)
  • 3: Print out the amount number of obstacles
  • 4: Reset obstacles as though a new round has started

DebugSpawnBots (int Team, optional int Num, optional int Distance)

  • Team is 0 for axis, 1 for allies, 2 for both
  • Num is optional & limits the number of bots that will be spawned (if not entered, zero is passed & gets used to signify no limit on numbers)

DebugHints


SoundPlay (string SoundName, optional float Volume)

New debug exec to play a sound (playing sounds in RO editor often doesn't work, so this is just a way of trying out sounds)


PlayerCollisionDebug


ClearLines


ClearArrows


LeaveBody (optional bool bKeepPRI)


FixPinHead


PossessBody


Vehicle Debug

DebugPenetration (bool bEnabled)

Debug command for printing weapon and armor penetration information into the log (shows armor, slopes, effective armor and penetration characteristics of shells, shatter chance, etc.).


EngineFire

Debug command to start an engine fire for testing effect offsets.


HullFire

Debug command to start a hull fire for testing effect offsets.


SetFEOffset (int X Offset, int Y Offset, int Z Offset)

Debug command to adjust position of driver's hatch fire effect.


DamageVehicle (optional bool bDestroyVehicle)

Debug command to damage current vehicle, set bool to 1 to destroy vehicle.


KillEngine

Debug command to destroy current vehicle's engine.


DamTrack (string Track)

Debug command to damage current vehicle's tracks. L = Left track, R = Right track, B = Both.


ShowColMesh

Debug command to toggle showing any optional collision mesh attachments.


ToggleMesh

Debug command to toggle between interior and exterior mesh for driver and other positions that utilize different mesh types.


ToggleViewLimit

Debug command to toggle view limit constraints in vehicle positions.


SetViewLimits (int NewPitchUp, int NewPitchDown, int NewYawRight, int NewYawLeft)

Debug command to adjust view limits in vehicle positions.


SetRumbleVol (float NewValue)

Debug command to adjust the volume of the interior rumble sound.

Clone this wiki locally