Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Quiet Relocation

Featured Replies

  • Administrator

Offer an idle survivor a private suggestion for another shelter.

Quiet Relocation 1.0.0 (olds.ro)

Biohazard: a survivor who opted in with /relocate and has stood still in a shelter for a while gets one private on-screen hint naming the nearest other shelter:

Quiet here? Try Warehouse (31 m away)

Moving, being infected, or the round ending clears it; the next long stay can bring a new hint.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer
  • Biohazard 2.00 Beta 3 (library "biohazardf")

Install

  • Compile scripting/olds_relocate.sma and copy olds_relocate.amxx to addons/amxmodx/plugins/, below biohazard.amxx in plugins.ini. The compiler needs ReAPI's include files next to the stock includes.
  • Copy data/lang/olds_relocate.txt to addons/amxmodx/data/lang/.
  • Copy configs/olds_relocate/ to addons/amxmodx/configs/olds_relocate/ and write one <mapname>.ini per map (see _example.ini).

Use

  say /relocate          turn the hints on or off for yourself (off by default)
  olds_relocate_status   shelters and opted-in survivors (ADMIN_CFG)

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

  olds_relocate_idle 45  seconds standing still in a shelter before the hint
                         (10-600)

Details

  • Only living survivors (not zombies) who opted in are checked, once a second. Moving more than 16 units from where they stood (one step), changing shelter or leaving it starts the count again.
  • One hint per stay: the DHUD line names the shelter whose centre is nearest to the current shelter's centre, with the distance in metres.
  • Infection (Biohazard's event_infect), a round end and a new round clear every count.
  • A map with fewer than two valid shelters is not handled at all. Bad lines in the ini are skipped and logged.

No downloads: the suggestion is a DHUD text line.

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_relocate.sma, test/bh_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-065).

Quiet Relocation
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.2 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 310 lines
/*
 * Quiet Relocation (olds.ro workshop card AMX-065)
 *
 * Biohazard: a survivor who opted in with /relocate and has stood still in a
 * shelter for olds_relocate_idle seconds gets one private on-screen hint
 * naming the nearest other shelter:
 *     Quiet here? Try Warehouse (31 m away)
Show all 310 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.