Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Fumble on Heavy Hit

Featured Replies

  • Administrator

In American Football mode the ball carrier fumbles when a single hit deals heavy damage: the ball pops loose in a random direction and neither the fumbler nor the hitter can pick it up for a moment, so a third player decides the play.

Fumble on Heavy Hit 1.0.0 (olds.ro)

American Football add-on. When the ball carrier takes one heavy hit he fumbles: the ball pops loose in a random direction, and for a moment neither the fumbler nor the hitter can pick it up, so a third player decides the play.

Requirements

  • AMX Mod X 1.10.0.5490 or newer, with ReAPI (ReGameDLL_CS)
  • the American Football core (library "olds_afootball"), with the natives and the forward below; without it the plugin loads and stays idle

Install

  • Compile scripting/olds_fumble.sma (scripting/include/olds_afootball.inc next to it) and copy olds_fumble.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_fumble.txt to addons/amxmodx/data/lang/. No downloads: chat and HUD text; the cue is the stock sound/common/bodydrop3.wav. The ball model belongs to the core.

Settings (addons/amxmodx/configs/plugins/olds_fumble.cfg, made on first run)

  olds_fumble_damage 40    damage of one hit that makes the carrier fumble
  olds_fumble_speed 250    horizontal speed given to the loose ball
  olds_fumble_lock 1.5     seconds the fumbler and the hitter cannot pick it up
  olds_fumble_chance 100   chance in percent that a heavy hit fumbles

Players

  say /fumbles   forced fumbles of this map, most first, per hitter

What the core provides (include/olds_afootball.inc)

  olds_af_get_carrier()        the carrier, 0 = nobody
  olds_af_get_ball()           the ball entity
  olds_af_drop_ball()          drops the ball where the carrier stands and
                               returns it (the plugin then sets its velocity)
  forward olds_af_ball_pickup(id, ball)   asked before a pick-up (ET_STOP);
                               PLUGIN_HANDLED refuses it

How it works

  • RG_CBasePlayer_TakeDamage (post): the victim is the carrier, still alive, the damage of this one hit is at least olds_fumble_damage, and the attacker is another player.
  • A hit that kills the carrier is not a fumble: the core drops the ball at the body as it always does, and nothing is counted.
  • The ball gets a random horizontal direction at olds_fumble_speed and a small hop upward (on flat ground it lands about 150 units away).
  • Forced fumbles are counted per hitter (by SteamID; bots and LAN ids by name) for the whole map. The pick-up locks are cleared on each round restart (RG_CSGameRules_RestartRound).

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/include/olds_afootball.inc, addons/amxmodx/scripting/olds_fumble.sma, test/af_stub.sma

Idea: alexit · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (IDEA-6D91FFB0948DB040).

Fumble on Heavy Hit
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.5 KBUpdated 4 hours ago
Sign in to download
Pawn (AMX Mod X) · 219 lines
/*
 * Fumble on Heavy Hit (olds.ro workshop idea IDEA-6D91FFB0948DB040)
 *
 * American Football add-on: when the ball carrier takes one heavy hit he fumbles. The
 * ball pops loose in a random direction, and for a moment neither the fumbler nor the
 * hitter can pick it up, so a third player decides the play.
 *
Show all 219 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.