Skip to content

Sport ​

The skill inputs of the golf, darts and billiards resources, and a steady aim for scopes. Every game has four difficulties; the tables list the params, their range and what each preset sets (generated from the game files, see Games & difficulty).

Swing meter (swing) ​

Medium Expert
Swing meter Swing meter, expert

The golf 3-click swing: start the backswing, stop it inside the target power band, then click again as the marker passes the snap zone. Early pulls a hook, late pushes a slice.

  • Controls: Three clicks with the left mouse button or SPACE: start, power, snap. Esc gives up (cancel) unless the caller set cancelable = false.
  • Fails with: short, long, hook, slice (more misses than allowMisses), unfinished, timeout.
  • Used by: A port of np_golf's 3-click meter; np_golf keeps its own and guards the shot against other games.
lua
exports.np_minigames:Play(src, 'swing', { shots = 1, bandWidth = 10 })
param type range default easy medium hard expert
allowMisses int 0 – 8 0 1 — — —
bandWidth int · time 2 – 40 12 18 12 8 6
forgiveness number · time 0.5 – 2.5 1.1 1.25 1.1 0.95 0.85
gapMs int 300 – 4000 1300 — — — —
idleMs int · time 3000 – 60000 20000 — — — —
maxBand int 40 – 115 100 — — 110 115
maxPower number 1 – 1.3 1.15 — — — —
minBand int 20 – 100 45 — — — —
returnFactor number · speed 0.5 – 2 1 — — — 1.2
riseMs int · time 600 – 2500 1150 1300 1150 1050 950
shots int 1 – 9 3 2 3 4 5

A preset column shows only what that preset sets; — means the default applies. time params grow with timeScale and Assist, speed params shrink with them.

Putting (putt) ​

Medium Expert
Putting Putting, expert

Hold to draw the putter back and release when the pace reaches the white zone just past the cup. On breaking greens read the slope and set the line with A and D first.

  • Controls: Hold SPACE (or the mouse button) to draw back, release to stroke; A / D set the line on breaking greens. Esc gives up (cancel) unless the caller set cancelable = false.
  • Fails with: short, long, line, unfinished, timeout.
  • Used by: A port of np_golf's putting meter.
lua
exports.np_minigames:Play(src, 'putt', { putts = 1, minFt = 12, maxFt = 12 })
param type range default easy medium hard expert
aimTol number · time 0 – 2 0.5 — — — 0
allowMisses int 0 – 8 0 1 — — —
breaks bool true false true — —
gapMs int 300 – 4000 1300 — — — —
holdMs int · time 800 – 3000 1600 — — — —
idleMs int · time 3000 – 60000 20000 — — — —
maxBreak number 0 – 4 2 — — — 3
maxFt number 4 – 80 28 18 28 36 45
minFt number 3 – 60 8 6 8 10 12
putts int 1 – 9 3 2 3 4 5
read bool true — true false false
tolFt number · time 0.2 – 6 1 1.5 1 0.75 0.5
tolPct number · time 0 – 0.25 0.04 0.07 0.04 0.03 0.02

A preset column shows only what that preset sets; — means the default applies. time params grow with timeScale and Assist, speed params shrink with them.

Steady aim (sway) ​

Medium Expert
Steady aim Steady aim, expert

The reticle drifts on a slow figure-of-eight. Hold your breath to calm it for three seconds, then it shakes, so time the shot. Darts board or rifle scope, same steady hand.

  • Controls: The mouse aims, a left click throws (darts) or fires (mode = 'scope'); hold SHIFT or the right mouse button to hold your breath. Esc gives up (cancel) unless the caller set cancelable = false.
  • Fails with: miss, unfinished, timeout.
  • Used by: np_gangs: the photo in Lester's trial and spraying (optional); np_tattoos: inking yourself with a kit.
lua
exports.np_minigames:Play(src, 'sway', { mode = 'scope', shots = 1 })
param type range default easy medium hard expert
aimMs int · time 3000 – 60000 12000 — — — 9000
allowMisses int 0 – 8 0 1 — — —
amp number · speed 4 – 60 24 18 24 30 36
breathCalm number 0.1 – 1 0.35 — — — —
breathMax int · time 800 – 8000 3000 — — 2500 2000
breathShake number 1 – 3 1.7 — — — —
gapMs int 300 – 4000 900 — — — —
hitR number · time 3 – 40 10 16 10 8 6.35
minAimMs int 100 – 3000 250 — — — —
mode string darts / scope darts — — — —
recoverMs int 0 – 10000 4000 — — — —
shots int 1 – 9 3 3 3 4 5
tempo number · speed 0.5 – 2 1 — — 1.1 1.25

A preset column shows only what that preset sets; — means the default applies. time params grow with timeScale and Assist, speed params shrink with them.

Cue stroke (stroke) ​

Medium Expert
Cue stroke Cue stroke, expert

Put the asked english on the cue ball with WASD without slipping into the miscue rim, then hold and let go while the power cursor sits on the ringed sweet pips.

  • Controls: W / A / S / D move the cue tip to the asked english; hold the left mouse button (or SPACE) and let go on the ringed pips. Esc gives up (cancel) unless the caller set cancelable = false.
  • Fails with: miscue, spin, underhit, overhit, unfinished, timeout.
  • Used by: A port of np_billiards' cue stroke; np_billiards keeps its own.
lua
exports.np_minigames:Play(src, 'stroke', { shots = 1, spins = 'basic' })
param type range default easy medium hard expert
allowMisses int 0 – 8 0 1 — — —
gapMs int 300 – 4000 1100 — — — —
idleMs int · time 3000 – 60000 20000 — — — —
maxHoldMs int 2000 – 20000 8000 — — — —
miscue number 0.5 – 1 0.86 — — 0.82 0.8
period int · time 400 – 3000 1150 1400 1150 950 800
shots int 1 – 9 3 2 3 4 5
spinSpeed number 0.3 – 3 0.9 — — — —
spinTol number · time 0.05 – 0.6 0.18 0.26 0.18 0.13 0.1
spins string basic / full / extreme full basic full full extreme
sweet int 1 – 6 2 3 2 2 1

A preset column shows only what that preset sets; — means the default applies. time params grow with timeScale and Assist, speed params shrink with them.