RadDude-HooksHangMore icon

HooksHangMore

Hang more items on lamp hooks.

Last updated a day ago
Total downloads 82
Total rating 0 
Categories Mods
Dependency string RadDude-HooksHangMore-1.0.3
Dependants 1 other package depends on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

HooksHangMore

Allows you to hang more items on lamp hooks.

Items enabled to hang

  • Fishing Rod
  • Broom
  • Chip Log
  • Quadrant
  • Knives

Fishing Rod

If you cast the line first and then attach the rod, fishing will continue. The rate at which you catch fish will be lower than if were holding the fishing rod. The rate while in the fishing rod holder will be higher when you are out to sea.

The idle fishing mod is not needed, however this mod is compatible with it. The catch rate when in the holder is higher than if the rod is loose on the deck.

Chip Log

If you throw the log line in the water first and then attach the chip log, speed measurement will continue.

For Other Mod Authors

If you wish to use this to be able to hang a custom item you made:

  1. Add this mod dll as a reference.
  2. Add this mod as a BepInEx dependency.
  3. Have your item inherit from ShipItem.
  4. Override OnLoad, in it add the HolderAttachable component and set the offsets so your item hangs properly. PositionOffset and RotationOffset are both of type Vector3. If you do not set them then they default to Vector3.zero.
  5. Override AllowOnItemClick to check if you are clicking on a holder and that the holder is not occupied.

Example:

public override void OnLoad()
{
    initialHoldDistance = holdDistance;
    var attachable = gameObject.AddComponent<HolderAttachable>();
    attachable.PositionOffset = new Vector3(0.02f, -0.15f, -0.12f);
    attachable.RotationOffset = new Vector3(270f, 270f, 0f);
}

public override bool AllowOnItemClick(GoPointerButton lookedAtButton)
{
    if (lookedAtButton.GetComponent<ShipItemHolder>() != null && !lookedAtButton.GetComponent<ShipItemHolder>().IsOccupied)
        return true;

    return false;
}

Requires

Installation

If updating, remove HooksHangMore folders and/or HooksHangMore.dll files from previous installations.

Extract the downloaded zip. Inside the extracted HooksHangMore-<version> folder copy the HooksHangMore folder and paste it into the Sailwind/BepInEx/Plugins folder.

Consider supporting me 🤗

Donate with PayPal button Buy Me a Coffee at ko-fi.com