Skip to content

[Mod] Godmode in Version 1.0.4

Tabeas edited this page Jun 11, 2011 · 2 revisions

With the addition of version 1.0.4 godmode has been removed from the code. You can simply re-add this however.

How?

Ok first thing you want to do is go into your Main.cs file and go down to the bottom of your variables. You want to add the code public static bool godMode = false;

Next you want to go into your Player.cs file and click on the search bar at the top. Then search for (this.immune).

Once you have found this, you want to add || Main.godMode after the this.immune so you will end up with the line if (this.immune || Main.godMode )

Hooking it to your ModClass.cs keys

If you already have your ModClass.cs setup for "key binds" then you can simply add a code like this.

if (pressedKeys.Contains(Keys.G) && !previousKeys.Contains(Keys.G)) { Main.godMode = !Main.godMode; previousKeys = pressedKeys; }

Clone this wiki locally