Company of Heroes 2
Оценок: 171
COH2 Console cheats/commands
От RubMyRubberDucky
Helping you cheat your way through those pesky campgaign and AI skirmishes since well, since you've found this guide...
   
Наградить
В избранное
В избранном
Удалить
Description
So you've decided that you need help getting through a certain mission, or you just want to cheat in order to kill time or have more fun. Well you've come to the right place to do just that.

In this guide I'll provide the how-to and console commands that'll give you the edge in your next battle in COH2.
Cheats
To begin, the codes provided here are cheats, and will give you more resources and advantages in your next match. However, these cheats do not quite work in multiplayer, as they will either not be enabled at all, or cause desync and ruin the match for both parties.

First of all, to begin using these commands, you need to set a launch parameter for the next time your game is launched. To do this navigate to your COH2 game in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option to set launch parameters. Open this and when prompted enter in the following code:

-dev

Once done this press Ok/Save and you're ready to launch the game.

Following this, load up a new or saved campaign mission or whatever you look to cheat in, and open the console by pressing Control-Shift-Tilde (Ctrl+Shift+`/~)

This will open up your console, and now you can either enter the codes manually or copy/paste them in. Here are the codes:

FOW_RevealAll --- Toggles the fog of war/ Allows you to see whole map and units.
Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) - Adds 9999 Manpower

Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999) - Adds 9999 Munition

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999) - Adds 9999 Fuel

Player_SetResource(Game_GetLocalPlayer(), RT_Command, 5) - Adds 5 Command points
(Beware, add only the amount you need for all abilities, so it's best that you count them first, then you can paste this command in and change the value from 5 to whatever amount you need)

Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000) - Makes your pop-cap larger



There are other cheats for this game, but the basics are these.

The Following is a link to a similar guide for the first Company of Heros, it's the same cheat commands and you may use it as a reference. It also provides addition codes to use in the console.

https://steamcommunity.com/sharedfiles/filedetails/?id=299979247


Have fun cheating!

Комментариев: 48
unturned gamer 4 фев в 8:53 
Um... nevermind, found it out. Don't know how I got it to work tho...
unturned gamer 4 фев в 8:50 
It says nil value, what do?
[†] Generalseal 8 дек. 2024 г. в 2:12 
adding -dev does nothing same thing for 2 and 3
luansergiovc1 19 фев. 2024 г. в 5:14 
Command to turn the player into AI during the match:

To let AI take over local player:
Misc_AIControlLocalPlayer()

To enable player AI:
AI_Enable(Game_GetLocalPlayer(), true)

To enable all AI players:
AI_EnableAll(true)

To disable player AI:
AI_Enable(Game_GetLocalPlayer(), false)

To disable all AI players:
AI_EnableAll(false)

To set the difficulty level of this AI player:
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Easy)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Standard)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hard)
AI_SetDifficulty(Game_GetLocalPlayer(), AD_Hardest)

Note: The player AI is set to Hard difficulty by default.
Note: The player AI will not get boosts on: resources, stats and modifiers.

Source: https://scardoc.coh.fi/function_list.htm
Best of the beast 30 авг. 2023 г. в 5:32 
it works just make this (cseffect thank you)

I think he may not be able to use CTRL + SHIFT + TILDE (look for the ~ symbol) command.
so let try in this way

1. Go to the steam folder which you install game
for example
"C:\XXX\Steam\steamapps\common\Company of Heroes"

2. Find "RelicCOH2" (Configuration setting)

3. Open it with notepad

4. Under ; Console
consoleKey = CONTROL+SHIFT+Grave

Change to consoleKey = CONTROL+SHIFT+1

5. then in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option
set launch -dev

6. During gameplay press CONTROL+SHIFT+1

I think now you can use a code you want
고기는나의힘 11 мая. 2023 г. в 5:59 
It doesnt work
Linrox 6 мар. 2023 г. в 22:11 
These cheats DON"T WORK with COH Tales of Valor
AsgardiaN 29 дек. 2022 г. в 4:57 
Hi all, to activate the cheats in Steam you shall go to the properties in the steam at the general find the "lunch options" and write -dev. All set up your cheats are ready to go.
wagner_saita 18 дек. 2022 г. в 18:14 
these codes for CHO 2 do not work? is there any way to activate it?
Hauptman_1936-1945 15 сен. 2022 г. в 11:03 
Doesn't work