0 of 0

File information

Last updated

Original upload

Created by

ELIPTUS

Uploaded by

eliptus

Virus scan

Safe to use

Tags for this mod

About this mod

Makes the loot magnet always activate while the player is in control of a ship.

Permissions and credits
Changelogs
This mod auto-activates the loot magnet when:
- The player takes control of a ship or enters their spacesuit.
- A game is loaded and the player is in control of a ship or in their spacesuit.

Additionally, the mod removes the sound from the loot magnet to prevent annoyance.


Having trouble with the loot magnet disabling itself? Or perhaps you want a way to temporarily disable it? Hopefully this will help...
The Problem:

By default, the container magnet hotkey is configured as "enabled while pressed". This means that the magnet is enabled when the key is pressed and disabled when the key is released. So, if you press the hotkey while in control of a ship (maybe accidentally), you will disable the magnet when the key is released. The mod will be unaware of this and will not auto-active it again until you get up and then take control again.

In order to prevent accidentally disabling the magnet, you might want to disable the hotkey. Alternatively, you can apply the tweak below.

The Tweak:

Any hotkey can be configured as a "toggle" (enable on initial press, disable on subsequent press) through the config files. Reconfiguring the existing container magnet hotkey as toggle will allow you to disable it and re-enable at will. This mod will simply determine what the default state is when you take control of a ship.

To do this, open the file "Documents\Egosoft\X4\%userid%\inputmap.xml" and add 'toggle="1"' to the entry 'INPUT_STATE_LOOTMAGNET".

Original:
  <state id="INPUT_STATE_LOOTMAGNET" source="INPUT_SOURCE_KEYBOARD" code="INPUT_KEYCODE_O"/>

Modified:
  <state id="INPUT_STATE_LOOTMAGNET" source="INPUT_SOURCE_KEYBOARD" code="INPUT_KEYCODE_O" toggle="1"/>


If anyone has information on how I can provide the above tweak as a part of the mod through a Extension Settings menu, I'd be happy to give it a try.