Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Antidote Relay

Featured Replies

  • Administrator

Follow a cured player's survival streak through the rest of the round.

Antidote Relay 1.0.0 (olds.ro)

Zombie Plague 5: when a zombie is cured, a timer follows how long that player then survives as a human. Reinfection, death, leaving or the end of the round stops it. At round end everyone sees the longest one: Antidote relay: Alpha held on for 45 s after a cure.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • Zombie Plague 5.0 (zp50_core and zp50_gamemodes)

Install

  • Compile scripting/olds_relay.sma and copy olds_relay.amxx to addons/amxmodx/plugins/, below the Zombie Plague plugins. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_relay.txt to addons/amxmodx/data/lang/.

Settings (addons/amxmodx/configs/plugins/olds_relay.cfg, created on first run)

  olds_relay_mintime 20   shortest streak, in seconds, shown in the recap (0-600)

Command: olds_relay_status (ADMIN_CFG) lists running and finished streaks.

How it works

  • zp_fw_core_cure / zp_fw_core_cure_post: a cure starts a timer only if the player was a living zombie just before it. Zombie Plague also "cures" every player who spawns as a human; those cures start nothing.
  • zp_fw_core_infect_post and RG_CBasePlayer_Killed stop a timer; so does leaving the server.
  • zp_fw_gamemodes_start opens the round; zp_fw_gamemodes_end closes it, stops every timer and posts the recap to everyone (client_print). Cures and infections after that are ignored. A round that ends without the mode-end forward is recapped at round end.
  • The recap names only the longest streak, and nothing if it is shorter than olds_relay_mintime.

No downloads: chat text, and the stock items/smallmedkit1.wav for the cured player.

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/olds_relay.sma, test/zp_stub.sma

Idea: olds.ro workshop library · 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 (AMX-016).

Antidote Relay
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.6 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 212 lines
/*
 * Antidote Relay (olds.ro workshop card AMX-016)
 *
 * Zombie Plague 5: when a zombie is cured, a timer follows how long that
 * player then survives as a human. Reinfection, death, leaving or the end of
 * the round stops it. At round end everyone sees the longest one:
 *     Antidote relay: Alpha held on for 45 s after a cure.
Show all 212 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.