Is this safe?

Before I do this, I want to know if this is safe. I'm trying to make me a mod to where I can wear my simulation clothes in the final mission and therefor do not have to wear the Iron Saint.


I'm looking in the m22_3.lua and I see some code involving the Iron Saint but I do not know what part of the code to touch.
 
Yeah, this should be perfectly safe.

Looking at that mission, it's the function "m22_3_common_set_up_space_suit()" that does all the work of equipping the suit and the suit's weapon.

If you look at line 4008 and 4009:
Code:
-- Put on the customization items.
m22_3_common_set_up_space_suit()

All you should need to do is comment out that function call:

Code:
-- Put on the customization items.
-- m22_3_common_set_up_space_suit()

You'll have to rebuild the m22_3_modal.str2_pc and update stream_grid.asm_pc to apply it to the game.

Edit: actually it looks like that function is called a few different times - if you comment out each of them it should work.
 
For rebuilding. I already have the extracted folder out but I would not know what files I need to remove/replace/change. I got a few questions.

1. How do I use ctdg_pc files? That's all I see in the extracted folder and that's if I need to do anything to those files.


And while looking through the .lua. I found this.

"function m22_3_common_set_up_space_suit()"

2. Do I just need to comment out the part that begins with m22 in that line or should I begin the "--" right before where it says "function"?

3. I also extracted the .lua for m23(the final boss fight) and I see code like this:

"m23_common_helper_set_up_power_armor()"

I'm guessing that is the code that puts you inside Iron Saint. As I have said I would like to do this mission without using that suit but instead just use any of my outfits. Is that the code that I should comment out as well? There are a few lines for it with the second line having "function" at the beginning.
 
Last edited:
Back
Top