4 hours ago4 hr Administrator The ball carrier throws the ball along the crosshair with a charged throw. A teammate who touches it in flight catches it, an opponent who touches it first makes an interception, and each possession allows only one forward pass. Forward Pass Throw 1.0.0 (olds.ro) American Football add-on. The ball carrier holds +attack2 to charge a throw and releases it to throw the ball along his crosshair. a teammate who touches the ball in flight catches it: a completed pass, reported in chat with the distance in units;an opponent who touches it first intercepts it and becomes the carrier;a ball that hits the ground untouched is an incomplete pass and stays loose for the core to handle. Each possession allows one forward pass; it resets when the ball changes sides. 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_pass.sma (scripting/include/olds_afootball.inc next to it) and copy olds_pass.amxx to addons/amxmodx/plugins/.Copy data/lang/olds_pass.txt to addons/amxmodx/data/lang/. No downloads: the ball model belongs to the core; the charge shows with the stock progress bar and the throw plays the stock sound/weapons/knife_slash1.wav. Settings (addons/amxmodx/configs/plugins/olds_pass.cfg, made on first run) olds_pass_enable 1 forward passes on/off olds_pass_min 400 throw speed with no charge olds_pass_max 900 throw speed at full charge olds_pass_charge 1.5 seconds of +attack2 for a full charge olds_pass_cooldown 1.0 seconds between two throws of one player Players hold +attack2, release charge and throw (carrier only) say /passes per player: completed/attempts, incomplete, interceptions made (this map) What the core provides (include/olds_afootball.inc) olds_af_get_carrier() the carrier, 0 = nobody olds_af_drop_ball() detaches the ball from the carrier and returns it olds_af_set_carrier(id) gives the ball to a player (a catch) forward olds_af_ball_pickup(id, ball) asked before a pick-up (ET_STOP); the plugin refuses pick-ups while a pass is in the air How it works RG_CBasePlayer_PreThink reads how long the carrier holds +attack2; on release the speed is olds_pass_min..olds_pass_max by the hold time (full at olds_pass_charge). The ball gets MOVETYPE_TOSS, a solid box (the thrower does not collide with it) and velocity = aim vector * speed.A touch hook, active only while a pass is in the air, decides: a player (not the thrower) catches or intercepts; the world or a solid brush ends the pass as incomplete (triggers are ignored). A pass that touches nothing for 6 seconds also ends as incomplete. The ball's solid type is then restored for the core.Possession is the carrier's team; when it changes the pass is available again. A round restart (RG_CSGameRules_RestartRound) resets it.Statistics are kept per player (SteamID; bots and LAN ids by name) for the map. InstallDownload 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_pass.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-EAFC63FE55C1F017). Forward Pass Throwv1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads7.3 KBUpdated 4 hours agoSign in to downloadolds_pass.smaPawn (AMX Mod X) · 423 lines4 files/* * Forward Pass Throw (olds.ro workshop idea IDEA-EAFC63FE55C1F017) * * American Football add-on: the ball carrier holds +attack2 to charge a throw and * releases it to throw the ball along his crosshair. A teammate who touches the ball in * flight catches it (a completed pass), an opponent who touches it first intercepts it, * and a ball that hits the ground untouched is an incomplete pass and stays loose. EachShow all 423 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.