Jump to content

DefaultCheats.ini? just curious


fox23vang

Recommended Posts

So DefaultCheats.ini contains plenty of Command Sets - console commands grouped to named sets, managed by XComGame.upk.XComCheatManager.

 

Command Sets functionality is similar to exec Filename.txt command, but they cannot be changed on the fly like commands in text file.

DefaultCheats.ini syntax is obvious. I've added two sets at the end of the file.

Name=PrettyScreenshot
Command=UIToggleVisibility
Command=ToggleUnitFlags
Command=UIToggleTether
Command=UIToggleDisc
Command=ToggleFOW

Name=NeedSomeResources
Command=GiveCash 999
Command=GiveItem Elerium115 999
Command=GiveItem AlienAlloys 999
Command=GiveItem WeaponFragment 999
Command=GiveItem Meld 999

Next I've added bindings at the end of DefaultInput.ini, where Command="RunCommandSet NameFromDefaultCheats.ini".

[XComGame.XComTacticalInput]
.Bindings=(Name="F12", Command="RunCommandSet PrettyScreenshot")
[Engine.PlayerInput]
.Bindings=(Name="F12", Command="RunCommandSet NeedSomeResources")

The same functionality can be achieved by putting commands into text file placed in Binaries folder and binding it in DefaultInput.ini

// PrettyScreenshot.txt
Command=UIToggleVisibility
Command=ToggleUnitFlags
Command=UIToggleTether
Command=UIToggleDisc
Command=ToggleFOW

// DefaultInput.ini
.Bindings=(Name="F12", Command="exec PrettyScreenshot.txt")

Somebody can try calling Command Sets from the code, if it's possible.

Link to comment
Share on other sites

  • 6 years later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...