Skip to content

Instantly share code, notes, and snippets.

View autodidacticon's full-sized avatar

Richard Moorhead autodidacticon

View GitHub Profile
// nt_aimassist.mod.gml — per-player aim-assist for co-op.
//
// NT already implements aim-assist (Player/Step_0.gml:330) and the underlying
// KeyCont.aimassist[index] storage is per-player. The vanilla input handler
// just stamps the global opt_assist into every slot each frame
// (InputHandling.gml:226). This mod overrides that array per-player based on
// each player's input device, so the gamepad player gets assist while the
// KB/M player has clean mouse aim in the same co-op session.
//
// Behavior: ON for gamepad players, OFF for keyboard / mouse players.