Difference between revisions of "Remote Console Commands/Body"
(Created page with "This guide covers settings that can be reached through the in-game console (bound to F1 by default). While there are more console commands possible, these are the most commonl...") |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 73: | Line 73: | ||
* You can run any of these automatically from your [[Server Configuration]] map rotations. | * You can run any of these automatically from your [[Server Configuration]] map rotations. | ||
| − | <div class="mw-collapsible | + | <div class="mw-collapsible"> |
; '''Top Level Commands''' | ; '''Top Level Commands''' | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
| Line 164: | Line 164: | ||
! Command !! Description !! Arguments !! Default | ! Command !! Description !! Arguments !! Default | ||
|- | |- | ||
| − | | default || Reset all settings to default. || | + | | default || Reset all settings to default. || Does not take an argument || — |
|- | |- | ||
| − | | characterGodMode <setting> || GOD MODE || setting: 0 | + | | characterGodMode <setting> || GOD MODE || setting (List): ''0'' to enable, ''1'' to enable for all players, ''2'' to enable for attackers, ''3'' to enable for defenders || 0 |
|- | |- | ||
| allowFriendlyDamageDefences <enable> || Friendlys can destroy own emplacements || Boolean || false | | allowFriendlyDamageDefences <enable> || Friendlys can destroy own emplacements || Boolean || false | ||
| Line 242: | Line 242: | ||
| longRangeHeadshotDamage <multiplier> || 150m+ headshot dmg (0–1) || Float || 1.0 | | longRangeHeadshotDamage <multiplier> || 150m+ headshot dmg (0–1) || Float || 1.0 | ||
|- | |- | ||
| − | | revealFaction <Attacking| | + | | revealFaction <Attacking|revealFaction || Reveals a faction on the minimap || |
| + | {| class="wikitable" | ||
| + | |enable ([[/wiki.holdfastgame.com/Server Configuration Enums#Attacking%20Or%20Defending|faction]]): ''Attacking'' to enable for attackers only, ''Defending'' to enable for defenders only. | ||
| + | |} | ||
| + | | false | ||
|} | |} | ||
| Line 465: | Line 469: | ||
''Most commands require prerequisites (be near object/horse/player, LoS, correct class), and many affect ALL bots.'' | ''Most commands require prerequisites (be near object/horse/player, LoS, correct class), and many affect ALL bots.'' | ||
| − | <div class="mw-collapsible | + | <div class="mw-collapsible"> |
; '''Bot command list''' | ; '''Bot command list''' | ||
{| class="wikitable" | {| class="wikitable" | ||
Latest revision as of 00:09, 31 October 2025
This guide covers settings that can be reached through the in-game console (bound to F1 by default). While there are more console commands possible, these are the most commonly used and useful ones.
Using The Console
Logging In As Admin
All commands require logging in with the admin password first (see Server Hosting to set server_admin_password). You only need to log in once per session (i.e., each reconnect, not on map rotation).
rc login <server_admin_password>
If you don’t see any console output confirming the login, press F1 a couple of times to close and reopen the console.
Sending Remote Commands
All remote commands are prefixed with rc (local-only console commands omit it). For example, rc help prints remote commands; help shows only local ones.
The console supports Tab auto-completion.
Examples:
- Typing
rc set drawFirthenTabexpands torc set drawFirearmTrajectories. - Typing
rc carbonPlayers forcethenTabchoosesforceInput…up to the ambiguity.
Sending Multiple Commands Per Line
Separate with semicolons:
rc <command1>; <command2>; <command3>; <command4>
Example (broadcast, disable god mode, enable firing):
rc broadcast Begin your fight! rc set characterGodMode 1 rc set allowFiring true
One-liner:
rc broadcast Begin your fight!;set characterGodMode 1;set allowFiring true
Delayed Execution Commands
Run a command when the round clock reaches a time (seconds):
rc delayed <time> <command>
Example (warning at 10:00, all charge at 08:00, disable firing at 08:00):
rc delayed 600 broadcast All charge at 08:00 rc delayed 480 broadcast All Charge! No Firing! rc delayed 480 set allowFiring false
Console Commands
Some commands take arguments. Required args are shown as <likeThis>; optional args as [<likeThis>]. If you use a later optional arg, supply those before it.
Types:
| String | Any text |
|---|---|
| Boolean | true or false
|
| Integer | Whole number |
| Float | Number with decimals |
| List | One of a fixed set (e.g., faction names) |
Notes:
- To get your position/rotation in-game: type
getin the console. - Player IDs: see the Admin/Mute window (
Pby default) orrc playerlist. - You can run any of these automatically from your Server Configuration map rotations.
- Top Level Commands
| Command | Description | Arguments |
|---|---|---|
game <MapName> <mapRotationIndexToOverload> [ <GameMode> <AttackerFaction> <DefendingFaction> ]
|
Change level using the specified rotation; optionally override mode/attacker/defender. Example: rc game BlackForest 2
|
MapName (String), index (Int), optional mode/attacker/defender |
help [<command>]
|
Show help (optionally for a specific command). Example: rc help get
|
command (String) |
broadcast <message>
|
Admin message to all players. Also via chat: /bc <message>
|
message (String) |
carbonPlayers <command> [args]
|
Bot controls. See Bot Commands. | — |
cls
|
Clear console. | — |
fileReloader <fileType>
|
Reload server files without reboot. Example: rc fileReloader serverConfigFile
|
serverConfigFile / blackWhiteLists / bannedPlayers / mutePlayersVoip / mutePlayersChat / all |
get [<variable>]
|
Read a server variable (or list all). See Configuration Variables. | variable (List) |
mapRotation <index>
|
Switch to a rotation number (1-based). | index (Int) |
playerlist [mode]
|
List players: connected (default), ingame, not-ingame
|
mode (String) |
scorelog
|
Print kill log. | — |
serverAdmin <command> <ID>
|
Admin actions (same as P menu). Example: rc serverAdmin slay 14
|
ban, kick, chatMute, chatUnmute, voipMute, voipUnmute, permChatMute, permVoipMute, slay, slap, say |
set <variable> <value>
|
Set a server variable. | variable (List), value (type varies) |
teleport <target/s> <destination>
|
Teleport by ID or group to coords X,Y,Z or to me.
|
targets: ID/me/all/defending/attacking; dest: X,Y,Z or me |
emplacementLimit <emplacement> <side> <limit>
|
Build limits by type/team. | emplacement (List), side (attacking/defending), limit (Int) |
| now|cancel> | Server restart controls. | — |
vehiclesSpawn <numhorses> [<faction>] [<cavalryClass>]
|
Spawn riderless horses. | num (Int); faction (British/French/Prussian); class (Dragoon/Hussar) |
vehiclesDespawn <ID>
|
Despawn a horse by ID. | ID (Int) |
vehiclesManager <command> [args]
|
Server-wide horse controls. See Horse Commands. | — |
Configuration Variables
These server-side variables affect gameplay and usually persist across rotations. Best practice: set your defaults at the start of a “staging” rotation (e.g., Training Grounds).
Type rc get to list them all. Since 0.38, you can reset everything with:
rc set default
Game Settings
| Command | Description | Arguments | Default | |
|---|---|---|---|---|
| default | Reset all settings to default. | Does not take an argument | — | |
| characterGodMode <setting> | GOD MODE | setting (List): 0 to enable, 1 to enable for all players, 2 to enable for attackers, 3 to enable for defenders | 0 | |
| allowFriendlyDamageDefences <enable> | Friendlys can destroy own emplacements | Boolean | false | |
| characterFallDamageEnabled <enable> | Toggle fall damage | Boolean | true | |
| forceFirstPersonMode <enable> | Force 1P | Boolean | false | |
| allowFiring <enable> | Enable firearms | Boolean | true | |
| allowArtyFiring <enable> | Enable artillery | Boolean | true | |
| meleeArenaAllowShooting <enable> | Allow guns in Melee Arena | Boolean | false | |
| drawCannonPathTrajectories <enable> | Show cannon paths | Boolean | false | |
| drawFirearmTrajectories <enable> | Show firearm traj. | Boolean | false | |
| broadcastMeleeDebugDataStrikeInfo <enable> | Debug melee strikes | Boolean | false | |
| allowPreviewAnimations <enable> | Allow dances etc. | Boolean | false | |
| lanternsAsProjectiles <enable> | Throw lanterns as arty | Boolean | false | |
| maxDistanceAllowedForHealing <distance> | Surgeon heal range | Float | 2 | |
| fullPlayerHealingProcessTime <time> | Full heal time (s) | Float | 10 | |
| voiceChatEnabled <enable> | Global VOIP | Boolean | true | |
| Defending> | VOIP per side | Faction | Both | |
| voiceChat3D <enable> | 3D VOIP | Boolean | true | |
| attackingFactionMaterialPoints <int> | Sapper mats attackers | Int | 50 | |
| defendingFactionMaterialPoints <int> | Sapper mats defenders | Int | 50 | |
| spawnSectionsCapturable <enable> | Spawn points capturable | Boolean | true | |
| autoWeatherRotation <enable> | Random weather rotation | Boolean | false | |
| characterRespawnTime <time> | Respawn bar time | Float | 5 | |
| characterDynamicRespawnTime <time> | Dynamic respawn (incl. tents/tables) | Float | 5 | |
| explosionScaleMultiplier <multiplier> | Explosion scale | Float | 1 | |
| ragdollForceMultiplier <multiplier> | Ragdoll force | Float | 1 | |
| orderSystemEnabled <enable> | Officer orders system | Boolean | true | |
| instantBuildMode <enable> | Instant emplacements | Boolean | true | |
| crouchToStrikeDelay <time> | Crouch→strike min delay | Float | 0.1 | |
| characterMeleeBlockToIdleDelay <time> | Block linger duration | Float | — | |
| characterMeleeBlockLingerToStrikeMinDelay <time> | Linger→strike min delay | Float | 0.05 | |
| characterMeleeBlockToBlockWindow <time> | Block-switch window | Float | — | |
| characterMeleeHitOpponentStunTime <time> | Melee hit stun | Float | — | |
| show_serverperformance_warning <enable> | Perf indicators | Boolean | true | |
| roundEndPlayerWin <playerID> | Force player win | Int | — | |
| roundEndFactionWin <faction> [<reason>] | Force faction win | Faction; Reason | — | |
| meeleeArenaRoundEndFactionWin <faction> | Force MA round win | Faction | — | |
| shouldUnlockMouse <enable> | Client: show cursor | Boolean | — | |
| longRangeHeadshotDamage <multiplier> | 150m+ headshot dmg (0–1) | Float | 1.0 | |
| revealFaction | Reveals a faction on the minimap |
|
false |
Cavalry Management
| Command | Description | Arguments | Default |
|---|---|---|---|
| vehicleHorseForAll <enable> | Everyone can ride | Boolean | false |
| vehicleHorseForOfficer <enable> | Officers can ride | Boolean | false |
| useSpecialHorseVariants <enable> | Special horses | Boolean | false |
| secondsToPassAfterDismounted <time> | Despawn after dismount | Float | 30 |
| secondsSpawnedBeforeDespawn <time> | Lifetime before despawn | Float | 60 |
| secondsToPassAfterHealthUpdated <time> | Despawn after damage | Float | 15 |
| vehicleAllowCollisionSlowdown <enable> | Slow on collision | Boolean | true |
| vehicleAllowDamageRearing <enable> | Rear on damage | Boolean | true |
| vehicleAllowDamageSlowdown <enable> | Slow on damage | Boolean | true |
| vehicleDamageResistanceMultiplier | Horse dmg scale | Float | 1 |
| vehicleAirForwardMultiplier | Jump forward mult | Float | 0.8 |
| vehicleJumpHeightMultiplier | Jump height mult | Float | 1.3 |
Character Movement
| Command | Description | Arguments | Default |
|---|---|---|---|
| characterJumpForce <float> | Jump force | Float | 1 |
| characterRunSpeed <float> | Global run speed | Float | 1 |
| characterRunForwardSpeed <float> | Run forward | Float | 1 |
| characterRunStrafeSpeed <float> | Run strafe | Float | 1 |
| characterRunBackwardsSpeed <float> | Run backwards | Float | 1 |
| characterWalkSpeed <float> | Global walk speed | Float | 1 |
| characterWalkForwardSpeed <float> | Walk forward | Float | 1 |
| characterWalkStrafeSpeed <float> | Walk strafe | Float | 1 |
| characterWalkBackwardsSpeed <float> | Walk backwards | Float | 1 |
| ladderMoverSpeedMultiplier | Ladder speed | Float | 1 |
| ladderMoverRotationMultiplier | Ladder rotation | Float | 1 |
| rocketMoverSpeedMultiplier | Rocket mover speed | Float | 1 |
| rocketMoverRotationMultiplier | Rocket mover rot | Float | 1 |
Weapons
| Command | Description | Arguments | Default |
|---|---|---|---|
| characterInfiniteFirearmAmmo <enable> | Infinite ammo | Boolean | false |
| characterWeaponDamageScale <float> | Weapon damage scale (N/A) | Float | 1 |
| characterWeaponApplyHorizontalDeviation <enable> | Firearm horiz. dev. | Boolean | true |
| characterWeaponFirearmApplyDrop <enable> | Hand weapons damage DOs (N/A) | Boolean | true |
| characterWeaponInfiniteRange <enable> | Infinite firearm range | Boolean | false |
| characterMeleeBlockStunTime <time> | Block stun | Float | 0.8 |
| characterMeleeWeaponReleaseTime <time> | Attack delay | Float | -1 |
| characterMeleeHitOpponentStunTime <time> | Hit stun | Float | 0.35 |
| characterMeleeInterruptedStunTime <time> | Interrupted stun | Float | 0.4 |
| characterMaimedTime <time> | Maim duration | Float | 1.5 |
| characterMaimedMovementTime <time> | Maim movement | Float | 0.45 |
| meleeChambering <enable> | Toggle chambering | Boolean | true |
| allowBlocking <enable> | Toggle blocking | Boolean | true |
| allowWeaponHoldSwapOverride <enable> | Swap direction while blocking disabled | Boolean | false |
| characterExplosiveFirearms <enable> | Exploding bullets | Boolean | — |
Melee Kicks
| Command | Description | Arguments | Default |
|---|---|---|---|
| characterSecondaryAttackMaimedTime <time> | Maim from kick | Float | 0.45 |
| characterSecondaryAttackTime <time> | Kick duration | Float | 0.85 |
| characterSecondaryAttackCooldownDuration <time> | Kick cooldown | Float | 1 |
| characterSecondaryAttackForce <float> | Push distance | Float | 8.5 |
| characterSecondaryAttackLaunchAngle <float> | Launch angle | Float | 0 |
| characterSecondaryAttackRange <float> | Kick range | Float | 0.75 |
| characterSecondaryAttackKickbackDuration <float> | Kickback time | Float | 0.22 |
| characterSecondaryAttackWindupTime <float> | Windup | Float | 0.3 |
| characterSecondaryAttackWinddownTime <float> | Winddown | Float | 0.3 |
| characterSecondaryAttackStagger <enable> | Stagger on kick | Boolean | — |
Artillery
| Command | Description | Arguments | Default |
|---|---|---|---|
| cannonMoverSpeedMultiplier | Cannon move speed | Float | 1 |
| cannonMoverRotationMultiplier | Cannon rotation | Float | 1 |
| cannonRecoilSpeedMultiplier | Recoil speed | Float | 1 |
| cannonLoadingSpeedMultiplier | Load/ram/push speed | Float | 1 |
| allowAmmoSelectorUIDebugShow <enable> | Debug ammo selector (O) | Boolean | false |
| pathProjectileVelocity <float> | Rocket path velocity | Float | 145 |
| rocketProjectileVelocity <float> | Rocket velocity | Float | 22 |
| rocketProjectileGravity <float> | Rocket gravity | Float | 40 |
| rocketProjectileDamageRadius <float> | Rocket AoE radius | Float | 3 |
| rocketProjectileRandomizedInterval <float> | Rocket random interval | Float | 2 |
| rocketProjectileDeviation <float> | Rocket flight deviation | Float | 5 |
| mortarProjectileDamageRadius <float> | Mortar AoE radius | Float | 3.5 |
| mortarProjectileVelocity <float> | Mortar velocity | Float | 60 |
| artyProjectileBounceSpeedReduction <float> | Bounce slowdown | Float | 0.666 |
| Command | Description | Arguments | Default |
|---|---|---|---|
| shipDrivingFieldsScale <float> | Ship speed scale | Float | 1 |
| shipFlyMode <enable> | Ships can fly | Boolean | false |
| windDirectionAffectsShipSpeed <enable> | Wind affects speed | Boolean | true |
| rowboatSpawnHoldInteractionTime <time> | Rowboat spawn time | Float | 5 |
| rowboatSpawnHoldInteractionTimeWhileSinking <time> | While sinking | Float | 0.5 |
| rowboatCooldownBetweenSpawns <time> | Rowboat cooldown | Float | 120 |
| rowboatCooldownBetweenSpawnsWhileSinking <time> | Rowboat cooldown (sinking) | Float | 5 |
| shipSailWindUnitMultiplier <float> | Wind potency on sails | Float | 1 |
| gunboatCooldownBetweenSpawns <time> | Steamboat MG cooldown | Float | 120 |
| steamboat2GunCooldownBetweenSpawns <time> | Steamboat 2-Gun cooldown | Float | 120 |
| allowShipStealing <enable> | Steer enemy ships | Boolean | false |
| autoKillableBoatCooldownTimer <time> | Auto-despawn boats | Float | 60 |
| renderOcean <enable> | Ocean rendering | Boolean | true |
Weather Settings
Weather and time-of-day presets. Use on maps that match their theme (mod maps may allow all). Prefix with rc nature.
Example: rc nature wind North
| Command | Description | Arguments |
|---|---|---|
| preset <name> | Switch to a preset | name: see lists below |
| wind <value> [<transitionTime>] | Wind direction (Z) | value: North, NorthEast, East, SouthEast, South, SouthWest, West, NorthWest; transitionTime (s) |
Weather Presets
- Forest_Clear_Day / _Dawn / _Night
- Forest_Rain_Day / _Dawn / _Night / _Storm / _Dark_Night
- Snow_Snowing_Day / _Dawn / _Night / _Snowstorm / _Dark_Night
- Sand_Clear_Day / _Dawn / _Night / _Sandstorm
- City_Clear_Day / _Dawn / _Night / _Rain_Day / _Rain_Dawn / _Rain_Night / _Storm
Frontlines Weather Presets
- Frontlines_Forest_Clear_(Day|Night|Dawn) / _Rain_(Day|Night|Dawn) / _Storm / _Dark_Night
- Frontlines_Snow_Clear_(Day|Night|Dawn) / _Snowing_(Day|Night|Dawn) / _Snowstorm / _Dark_Night
- Frontlines_Ocean_Clear_(Dawn|Day|Night) / _Rain_(Dawn|Day|Night) / _Storm / _Dark_Night
- Frontlines_Sand_Clear_(Dawn|Day|Night) / _Sandstorm
- Frontlines_City_Clear_(Day|Night|Dawn) / _Rain_(Day|Night|Dawn) / _Storm
- Frontlines_Trench_Clear_(Day|Night|Dawn) / _Rain_(Day|Night|Dawn) / _Storm / _Dark_Night
Bot Commands
Holdfast bots are simple, but great for testing. Commands are prefixed with rc carbonPlayers.
Example: spawn 50 bots:
rc carbonPlayers spawn 50
Most commands require prerequisites (be near object/horse/player, LoS, correct class), and many affect ALL bots.
- Bot command list
| Command | Description | Arguments |
|---|---|---|
| spawn <number> [<interval>] | Spawn bots (random classes/factions across spawns) | number (Int), interval (Int, seconds) |
| spawnSpecific <faction> <class> [name] [regtag] [uniformId] | Spawn specific bot | — |
| disperse | Spread out | — |
| join | Gather center | — |
| ignoreAutoControls <enable> | For script mods | Boolean |
| forceInputAxis <enable> [playerId] | Use inputAxis | Boolean |
| forceInputRotation <enable> [playerId] | Use inputRotation | Boolean |
| inputAxis <sideways> <forwards> [playerId] | Move inputs (-1..+1) | Floats |
| inputRotation <rotation> [playerId] | Face direction (deg from North) | Float |
| playerAction <action> [playerId] | Perform action | See Server_Configuration_Enums#Player_Actions |
| switchWeapon [weapon] [playerId] | Switch weapon | weapon from Server_Configuration_Enums#Weapon |
| switchNextWeapon [playerId] | Next weapon | — |
| autoWeaponSwitchToggle <enable> [playerId] | Auto switch | — |
| voicePhrase <phrase> [playerId] | Shout phrase | See Server_Configuration_Enums#Voice Phrases |
| randomVoicePhrase [playerId] | Random phrase | — |
| equipCarryableItem <type> [playerId] [inworldId] | Equip carryable | See Server_Configuration_Enums#Carryable Objects |
| pitch <value> [playerId] | Aim pitch (-1.5..2) | Float |
| yaw <value> [playerId] | Turn yaw (-90..90) | Float |
| setRunning <enable> [playerId] | Toggle run | — |
| startHealing <healerId> <targetId> | Heal target | — |
| stopHealing <healerId> | Stop healing | — |
| instrumentPlay <playerId> <instrument> <songId> | Play song | See Enums |
| instrumentStop <playerId> | Stop playing | — |
| interactableObject … | Interact with object | See inline notes |
| interactableObjectUpdateCannon … | Update cannon | — |
| interactableObjectUpdateMovingCannon … | Update moving cannon | — |
| interactableObjectUpdateMovingLadder … | Update ladder | — |
| interactableObjectUpdateMovingRocket … | Update rocket | — |
| mountVehicle <playerId> <vehicleId> [mountTriggerId] | Mount horse | — |
| dismountVehicle <playerId> | Dismount | — |
| highCommandOrder <playerId> <order> <pos> <rotY> | Create order | See Server Configuration Enums#High Command Orders |
| sapperChangeMode <playerId> <mode> | Sapper mode | See Server_Configuration_Enums#Sapper Build Mode |
| sapperBuildItem <playerId> <type> <pos> <rot> <parentId> <socketId> | Build emplacement | See Enums |
Horse Commands
These override ALL horses (player and non-player). Prefix with rc vehiclesManager.
Example (cap speed at 2, and force cap):
rc vehiclesManager cappedSpeed 2; vehiclesManager forceCappedSpeed true
| Command | Description | Arguments |
|---|---|---|
| forceInputAxis <enable> [vehicleId] | Use inputAxis | Boolean |
| inputAxis <sideways> <forwards> [vehicleId] | Move inputs (-1..+1) | Floats |
| forceCappedSpeed <enable> [vehicleId] | Force capped speed | Boolean |
| cappedSpeed <speed> [vehicleId] | Set cap | Float |
| forceRandomInputAxis <enable> [vehicleId] | Random inputs | Boolean |
| forcedRandomInputAxisIntervalX <interval> [vehicleId] | Random X interval | Float |
| forcedRandomInputAxisIntervalY <interval> [vehicleId] | Random Y interval | Float |
| jumpAction [vehicleId] | Jump | — |
| rearAction [vehicleId] | Rear | — |
| listVehicles | List horses | — |
| Command | Description | Arguments |
|---|---|---|
| shiplist | List all spawned ships | — |
| spawnships <ShipType> <number> <Faction> [color] [ <shipnameindex> ] | Spawn ships (faction defaults to random Brit/French) | ShipType, number (Int), faction, color (Int), name index (Int) |
| all> | Remove ships | — |
Updates
Quick reference of new/changed commands.
- 0.40 — 2019-12-17: Cavalry changes
- 0.38 — 2019-10-11:
defaultreset command - 0.37 — 2019-09-20: multiple commands; delayed commands;
allowFiring - 0.36 — 2019-09-18:
forceFirstPersonMode - 0.34 — 2019-08-23: secondary attack options; improved teleport
- 0.33 — 2019-07-26:
highPingIndicatorWarning,orderSystemEnabled