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
1. 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.
2. 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.