Code:
=======================================
Creative and debug menus:
Location: -/GameStateManager/InitGame(): Void
At beginning of method add:
ldc.i4.s // Set operand to 40, operand type to SByte.
ldc.i4.1 // Aka. true.
call // Set operand type to Method Reference, operand to GamePrefs.Set(EnumGamePrefs, System.Boolean).
ldc.i4.s // Set operand to 42, operand type to SByte.
ldc.i4.1
call // Set operand type to Method Reference, operand to GamePrefs.Set(EnumGamePrefs, System.Boolean).
call // Set operand type to Method Reference, operand to GamePrefs.get_Instance().
callvirt // Set operand type to Method Reference, operand to GamePrefs.Save().
// I admit, Bartender's method is a tad easier :D.
Local player's icon color in-map:
Location: -/EntityPlayerLocal/GetMapIconColor(): Color
Edit the call (at offset 0) and change the operand to the get_color() method of your choice.
// I'm personally a fan of blue.
Unlock doors and chests & claim ownership:
Location (part 1): -/TileEntitySecure/IsOwner(String): Boolean
Delete everything and add:
ldc.i4.1
ret
Location (part 2): -/TileEntitySecure/IsUserAllowed(String): Boolean
Delete everything and add:
ldc.i4.1
ret
Location (part 3): -/TileEntitySecureLootContainer/IsOwner(String): Boolean
Delete everything and add:
ldc.i4.1
ret
Location (part 4): -/TileEntitySecureLootContainer/IsUserAllowed(String): Boolean
Delete everything and add:
ldc.i4.1
ret
Ignore land protection:
Location: -/World/GetLandProtectionHardnessModifier(Vector3i, EntityAlive, PersistentPlayerData): Single
Delete everything and add:
ldc.r4 // Set operand type to Single, operand to 1.
ret
// I haven't personally checked if this works in A16 yet...
Extreme damage (method 1):
Location: -/EntityPlayerLocal/GetStaminaMultiplier(): Single
Delete everything and add:
ldc.r4 // Set operand type to Single, operand to 99999.
ret
// This is the method I usually use.
Extreme damage (method 2):
Location (part 1): -/ItemActionAttack/GetDamageBlock(ItemValue, EntityPlayer, ItemValue): Single
Delete everything and add:
ldc.r4 // Set operand type to Single, operand to 99999.
ret
Location (part 2): -/ItemActionAttack/GetDamageEntity(ItemValue, EntityPlayer, ItemValue): Single
Delete everything and add:
ldc.r4 // Set operand type to Single, operand to 99999.
ret
// This is useful as you can choose only to damage blocks or entities.
Show all players on map:
Location: -/EntityPlayer/IsDrawMapIcon(): Boolean
Delete everything and add:
ldc.i4.1
ret
Show all players on compass:
Location: -/MapObject/IsOnCompass(): Boolean
Delete everything and add:
ldc.i4.1
ret
Show all players' homes on map:
Location: -/MapObjectSleepingBag/IsMapIconEnabled(): Boolean
Delete everything and add:
ldc.i4.1
ret
Show all players' homes on compass:
Location: -/MapObjectSleepingBag/IsOnCompass(): Boolean
Delete everything and add:
ldc.i4.1
ret
Immunity to radiation:
Location: -/EntityAlive/IsRadiationSensitive(): Boolean
Change ldc.i4.0 to ldc.i4.1.
Destroy supply crates in radiation:
Location: -/EntitySupplyCrate/IsRadiationSensitive(): Boolean
Change ldc.i4.0 to ldc.i4.1.
// I'm not sure this matters anymore, but I'll include it anyway.
=======================================