Counter-Strike 2

Counter-Strike 2

ROGUE
[GUIDE] Cheat commands for ROGUE
Here are some commands you can use to play around with ROGUE, either to give you a slight/severe advantage, or to see how far you can break this awesome map.

Notes:
  • Consider backing up ROGUE's save/config files just in case. You'll find them inside the game's folder, inside "cfg", files with names starting with "rogue_".
  • You do not need to "sv_cheats 1" in order to use these commands.
  • There may be a better way to execute these commands, but I have completely no experience with vscript/Squirrel, I only have some minor ability in reading code from dabbling with other scripting/programming languages. If you have any suggestions for improvements/additions, please let me know.

For most of these commands, you'll need to replace USERID with your userid. This id will usually be 2, but verify it by using the "status" command in console - the first number near your name is your userid. You'll likely also need to replace VALUE with a number of choice - for non-decimal values, use a dot (eg. 0.25).
Pay attention to whether the thing you have to replace is surrounded by "double quotes" or not. Don't add/remove them, keep them as-is, otherwise the command won't work.

Also here's a list of abilities/cards (incl. curses), which you might find useful for a few of the commands below: https://gist.github.com/kamild1996/1d9d8ec6e64a02390dabb728a1ba3b4c
Names given inside brackets are provided only if the in-code name isn't clear enough. Don't put those inside any command.
If applicable, each ability was provided with parameters (starting with "-") and bonuses (starting with ">"). Provided values are the defaults, to hopefully help you get the idea on how to modify them.

Add power to your params:
script Player(USERID).AddPerk({name = "PARAM", power = VALUE})
Replace PARAM with one of the following parameters: health, speed, jump, damage, defence, crit, crit_chance, luck, tech, strength, selfheal.
Example of usage - give yourself (if your USERID is 2) 100% more luck:
script Player(2).AddPerk({name = "luck", power = 100})

Add XP:
script Player(USERID).AddXP(VALUE)
Example of usage - give yourself (if your USERID is 2) 20000 XP:
script Player(2).AddXP(20000)

Add money:
script MoneyManager.Earn(USERID,VALUE)

Set max money limit:
script RogueManager.SetMoneyMax(VALUE)

Give weapon:
script Player(USERID).Give("WEAPON_ID",5,0,false)
Replace WEAPON_ID with the code name of the weapon. Refer to this page for help with finding the name (see column "Code", add "weapon_" to the beginning of the value from that column - for example, AK-47 would be "weapon_ak47"): https://wiki.alliedmods.net/Counter-Strike:_Global_Offensive_Weapons
Example of usage - give yourself (if your USERID is 2) an M4A1-S:
script Player(2).Give("weapon_m4a1_silencer",5,0,false)

Increase maximum diskette power:
script RogueManager.SetPerksMax(VALUE)
You might want to run this after starting the first level, it seems to reset when it's set before that.

Give ability/curse to player:
script Ability("ABILITY").GiveToPlayer(USERID)
Replace ABILITY with the in-code name of the ability. Refer to the list of abilities/cards provided above.

Remove ability/curse from player:
script Player(USERID).RemoveAbility("ABILITY")
Replace ABILITY with the in-code name of the ability. Refer to the list of abilities/cards provided above.

Modify ability parameters:
As per the list of abilities/cards provided above, most of the abilities come with parameters, which impact how these abilities function. After you acquire an ability, you can modify its parameters with this command.
script Player(USERID).scope.abilities.ABILITY.params.PARAM = VALUE
Replace ABILITY with the in-code name of the ability, and PARAM with the name of the parameter. Refer to the list of abilities/card provided above.

Examples of usage (assuming your USERID is 2):
- reset the cooldown of your "Review" ability:
script Player(2).scope.abilities.review.params.cooldown_count = 0
- set the max cooldown of your "Hocus-Pocus" ability to 0, allowing you to spam the ability as you wish:
script Player(2).scope.abilities.groundshaker.params.cooldown = 0

Modify ability bonuses:
You can also modify the bonuses some of the abilities give you.
script Player(USERID).scope.abilities.ABILITY.bonuses.BONUS = VALUE
Replace ABILITY with the in-code name of the ability, and BONUS with the name of the bonus. Refer to the list of abilities/cards provided above.

Erase all pickups from the map:
script DestroyAllCustomPickups()
You might find that useful if you eg. win too much health on the wheel of fortune while your luck stat is high and you start feeling the lag. Be careful though, I used that function before the last boss and it softlocked the game - had to bot_kill and noclip into the next location load room.
Last edited by kamild_【=◈︿◈=】; Aug 7, 2023 @ 4:17am
< >
Showing 1-10 of 10 comments
KPbICKA II Aug 6, 2023 @ 4:02pm 
can you write an example command?
Originally posted by KPbICKA Ⅱ:
can you write an example command?
I added some examples, if there's any command you have issues with, feel free to ask
dbluewillow Aug 31, 2023 @ 7:24pm 
Is there a command for reviving a dead co-op partner? Sometimes, the corpse gets glitched out and either disappears or cannot be interacted with, so having a command to revive them would be great.
Red Hood Sep 9, 2023 @ 8:22pm 
Where did you find all this stuff?
Red Hood Sep 9, 2023 @ 8:28pm 
Originally posted by dbluewillow:
Is there a command for reviving a dead co-op partner? Sometimes, the corpse gets glitched out and either disappears or cannot be interacted with, so having a command to revive them would be great.
Just open console and type "mp_respawn_on_death_ct 1" then use "ent_teleport <id>", ID - Your friend's ID, check IDs in command "status"
Originally posted by Kyurby:
Where did you find all this stuff?
I used bspsrc to extract the vscript files, then I just read the code inside these files.
Red Hood Sep 10, 2023 @ 4:21am 
Originally posted by kamild_【=◈︿◈=】:
Originally posted by Kyurby:
Where did you find all this stuff?
I used bspsrc to extract the vscript files, then I just read the code inside these files.
So to see all the scripts, I have to decompile the map and find the VScript files?
Originally posted by Kyurby:
Originally posted by kamild_【=◈︿◈=】:
I used bspsrc to extract the vscript files, then I just read the code inside these files.
So to see all the scripts, I have to decompile the map and find the VScript files?
Yeah, at least that's one of the methods I found to do this.
dbluewillow Sep 10, 2023 @ 9:29am 
Originally posted by Kyurby:
Originally posted by dbluewillow:
Is there a command for reviving a dead co-op partner? Sometimes, the corpse gets glitched out and either disappears or cannot be interacted with, so having a command to revive them would be great.
Just open console and type "mp_respawn_on_death_ct 1" then use "ent_teleport <id>", ID - Your friend's ID, check IDs in command "status"

This revives the other person, but does not restore their gear or give them infinite ammo.
Red Hood Sep 11, 2023 @ 4:08am 
Originally posted by dbluewillow:
Originally posted by Kyurby:
Just open console and type "mp_respawn_on_death_ct 1" then use "ent_teleport <id>", ID - Your friend's ID, check IDs in command "status"

This revives the other person, but does not restore their gear or give them infinite ammo.
Oh... Then I'll try to find the method to revive with gear + infinite ammo
< >
Showing 1-10 of 10 comments
Per page: 1530 50