You are viewing a potentially older version of this package. View all versions.
doku_macaron-ThrowPreview-0.2.1 icon

ThrowPreview

Shows the arc and landing point of grenades (hold to aim, release to throw) and of held objects such as a teammate's parts, coloured when the throw would revive them.

Date uploaded 5 days ago
Version 0.2.1
Download link doku_macaron-ThrowPreview-0.2.1.zip
Downloads 75
Dependency string doku_macaron-ThrowPreview-0.2.1

This mod requires the following mods to function

BepInEx-BepInExPack_Mycopunk-5.4.2403 icon
BepInEx-BepInExPack_Mycopunk

BepInEx pack for Mycopunk. Preconfigured and ready to use.

Preferred version: 5.4.2403
doku_macaron-MacaronCore-1.1.0 icon
doku_macaron-MacaronCore

Shared library used only by doku_macaron's Mycopunk mods: adds a MODS tab to the Settings window (ON/OFF rows, colour pickers, English/Japanese labels) and logs hotkey conflicts. Replaces doku_macaron-ModKit.

Preferred version: 1.1.0

README

Throw Preview

Draws the arc of what you are about to throw. For grenades, hold the grenade key to aim with a dashed arc and a marker where it will explode, then release to throw. For held objects (a downed teammate's parts, barrels, rocks and so on), the arc and landing point show while you charge the throw.

Features

  • Grenades: hold to aim, release to throw. The game normally throws the moment you press the key. With this mod, holding the key shows the arc; releasing it throws. A quick tap still throws almost at once.
  • The arc uses the game's own projectile step, so gravity, bounces off walls and range match the real grenade. A marker shows where it will go off.
  • The throw itself (and the throw animation other players see) is the game's own, started when you release the key.
  • Held objects: while you charge a throw, the arc and landing point follow the charge.
  • Revive hint (experimental): when a thrown teammate part would join another of that teammate's parts (which revives them), the arc turns green and stops where they would connect. It follows the game's own rule (part centres closer than 2 m), but has not yet been checked during a real revive.
  • Dashed line with adjustable colour, thickness and dash length.

Requirements

Settings

The config file is BepInEx/config/t4t5u0.mycopunk.throwpreview.cfg. Settings marked * can also be changed in game under Settings → MODS (the MODS tab is provided by Macaron Core) and take effect at once. For colours, the MODS tab picks the hue; the opacity stays as in the config.

Setting Default What it does
Grenade.HoldToAim * true Hold the grenade key to see the arc, release to throw
Holdables.ShowArc * true Show the arc while charging a throw of a held object
Style.Color * white, 75% Arc colour
Style.ReviveColor * green, 90% Arc colour when a thrown teammate part would revive them
Style.Thickness 3 Arc thickness, in HUD units
Style.DashLength 12 Length of each dash, in HUD units
Style.GapLength 8 Gap between dashes, in HUD units (0 = solid line)

Multiplayer

Client-side only. The arc is drawn only on your screen, and the throw is the game's own, so other players don't need the mod.

Notes

  • Random spread is not included in the arc.
  • Where a grenade leaves your hand is only known after it has been thrown once, so the first throw of a grenade type you have never thrown uses an estimated hand position and can be slightly off. After that, the position is remembered per grenade type in BepInEx/ThrowPreview/fire-offsets.tsv, also across launches.
  • When an upgrade gives the grenade key its own hold action, the grenade keeps the game's behaviour (throw on press).
  • The aim can jump when what's under your crosshair switches between near and far. The real throw does the same, so the arc follows it.
  • The Photon Disc has a wavy look in flight; the arc shows its actual path, so the two can look different.

Source: https://github.com/doku-macaron/mycopunk-mods-public Author: t4t5u0 Not affiliated with Pigeons at Play or Devolver Digital.

CHANGELOG

Changelog

0.3.0

  • The arc is drawn in the world (3D) instead of on the HUD.
  • Thickness, DashLength and GapLength are now in world units (Thickness: 1 = 0.01 m; DashLength and GapLength: 1 = 0.05 m).
  • The arc starts from where the camera is drawn this frame, and held objects (teammate parts, barrels, rocks) use the drawn camera direction, so the arc lines up better while moving.
  • If grenade aiming cannot hook every method it needs, it hooks none and grenades are thrown normally.
  • Code follows the Mycopunk modding wiki conventions (publicized game assembly, [HarmonyPatch] classes, no reflection by name).
  • Needs doku_macaron-MacaronCore 1.1.0.

0.2.1

  • Depends on doku_macaron-MacaronCore (the renamed shared library) instead of doku_macaron-ModKit. No other change in game.
  • README: the teammate-part revive colour is marked experimental (not yet checked in a real revive).

0.2.0

  • First release on Thunderstore.