Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Scout Window

Featured Replies

  • Administrator

Offer one short scouting period that ends immediately when the scout gets the flag.

Scout Window 1.0.0 (olds.ro)

Capture the Flag: a "Scout window" item in the jCTF adrenaline shop. The buyer glows in their team's colour for olds_scoutwin_secs seconds, so teammates can follow the scout. The window ends at once when the scout takes a flag, dies or leaves; otherwise it runs out on time.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer (fakemeta)
  • jCTF by Digi with its adrenaline shop (library "jctf", github.com/OsweRRR/jCTF-by-Digi)

Install

  • Compile scripting/olds_scoutwin.sma and copy olds_scoutwin.amxx to addons/amxmodx/plugins/, below jctf_base.amxx and jctf_shop.amxx. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_scoutwin.txt to addons/amxmodx/data/lang/.

Use: open the jCTF shop (/adrenaline) and buy "Scout window".

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

  olds_scoutwin_cost 20   adrenaline price (1-100); read when the item is
                          added to the shop, so a change needs a map change
  olds_scoutwin_secs 8    seconds the window lasts (2-30)

Details

  • The item is added with shop_add_item() once the configs have run. The shop charges only when the purchase is accepted: a dead or teamless player, a flag carrier (jctf_get_flagcarrier) or a scout whose window is still open is refused and not charged.
  • The jctf_flag forward with FLAG_STOLEN or FLAG_PICKED for the scout ends the window at once; so do death and leaving.
  • The glow is drawn in what each client is sent (FM_AddToFullPack), never written to the player entity, so nothing has to be restored and other plugins' rendering stays. It is drawn only when nothing else has changed the player's rendering.

No downloads: a render effect on the player model.

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_scoutwin.sma, test/jctf_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-077).

Scout Window
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.7 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 171 lines
/*
 * Scout Window (olds.ro workshop card AMX-077)
 *
 * Capture the Flag: a "Scout window" item in the jCTF adrenaline shop. The
 * buyer glows in their team's colour for olds_scoutwin_secs seconds, so
 * teammates can follow the scout. The window ends at once when the scout
 * takes a flag, dies or leaves; otherwise it runs out on time.
Show all 171 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.