addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt1.5 KB
No file matches.
Offside Penalty Flag (olds.ro) 1.0.0
Copyright (C) 2026 daemon (olds.ro). Licence: GPL-3.0-or-later.
American Football: nobody may cross the line of scrimmage before the snap.
- The football core reports the line of scrimmage (olds_af_ball_spot), which starts the
pre-snap phase, and the snap (olds_af_snap), which ends it.
- Before the snap every player is checked ten times a second. The first player past the
line on the wrong side gets a yellow flag dropped where he crossed (the stock weaponbox
model with a yellow glow, gone after 6 s), a whistle, the play is whistled dead and the
ball moves olds_offside_yards toward his team's end zone (through the core's natives).
- The olds_offside_warn-th offence of one player in a half prints a warning line in chat.
Counters reset at half-time (olds_af_halftime).
- olds_offside 0 turns detection off. Without a football core the plugin stays idle (one
line in the log).
Football core interface: scripting/include/olds_afootball.inc (forwards olds_af_ball_spot,
olds_af_snap, olds_af_halftime; natives olds_af_move_spot and olds_af_whistle in the
library "olds_afootball"). A core with other names needs a small bridge plugin.
Cvars: olds_offside 1, olds_offside_warn 3 (1-20), olds_offside_yards 5 (1-50).
Install: compile scripting/olds_offside.sma with amxxpc 1.10 (needs ReAPI and the include
folder), add olds_offside.amxx to plugins.ini after the football core and copy
data/lang/olds_offside.txt. Stock files only: models/w_weaponbox.mdl, sound/buttons/blip1.wav.