Jump to content

Modding resources like cash from tactical game


SpazmoJones

Recommended Posts

I've been trying to mod the "mission restart" function so that it costs a certain amount of credits/resources to use it.

From what I can tell I have to modify the UIPauseMenu.RestartMissionDialgoueCallback function in XComGame.upk. I thought I could do it by adding a GiveResource console command, like this:

simulated function RestartMissionDialgoueCallback(UIDialogueBox.EUIAction eAction)
{
// End:0xB2
if(eAction == 0)
{
XComPresentationLayer(XComPlayerController(WorldInfo.GetALocalPlayerController()).m_Pres).m_kNarrative.RestoreNarrativeCounters();
ConsoleCommand("GiveResource Money -200" ) ; //<<********************** ADDED THIS LINE **************
controllerRef.ClientTravel("?restart", 2);
}
//return;
}

but when the mission completes the credit values haven't changed. It looks like this particular console command only works when you're in the base management screen. Do any of you clever guys and gals know how I could make this work?

Link to comment
Share on other sites

Does anyone know if it's possible to adjust money while in the tactical game? If it's not possible then perhaps another way would be to subtract cash from the mission reward somehow?

 

The idea behind this change would be to make bronzeman mission restarts less like cheating, and more like a valid strategy. It would be like an "omega 13" time machine device that let's you go back in time to correct a mistake (inspired by the "Galaxy Quest" movie). The "Restart mission" text would be replaced by "Activate the Omega 13" etc.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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