Skip to content
View in the app

A better way to browse. Learn more.

Learn more

alive-voice-silence-window/README.txt

README.txt
64 lines · 2.9 KB · Text
Raw
Alive Voice Silence Window 1.0.0 (olds.ro)
==========================================

For a while after a player dies, the living players cannot hear his voice,
so the dead can talk among themselves without giving information away.
Dead players and spectators still hear him.

  - olds_vs_window sets how long (20 seconds); 0 = for the whole time the
    player is dead.
  - It also applies with sv_alltalk 1: during the window the living do not
    hear a dead player or a spectator. The plugin never lets anyone hear
    more than the game itself allows.
  - The window starts when the player dies, joins the spectators or
    connects, and ends when he spawns again.
  - Admins with flag i (ADMIN_CHAT) are always heard (olds_vs_admin 1).
  - Everything is checked each time the game updates who hears whom, so a
    team change or a cvar change (olds_vs_enable 0) takes effect at once.
  - The plugin shows no text in the game and has no language file.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  - AMX Mod X 1.10.0.5490 or newer, with the fakemeta module (enabled by
    default)

Install
  1. Compile scripting/olds_voicesilence.sma and copy
     olds_voicesilence.amxx to addons/amxmodx/plugins/. The compiler needs
     ReAPI's include files (reapi.inc and the reapi_*.inc files from the
     ReAPI release, in addons/amxmodx/scripting/include/) next to the stock
     AMX Mod X includes.
  2. Copy configs/plugins/olds_voicesilence.cfg to
     addons/amxmodx/configs/plugins/ and change the values you want.
     (If the file is missing, the plugin writes one with the defaults the
     first time it starts.)
  3. Add olds_voicesilence.amxx to addons/amxmodx/configs/plugins.ini.

Settings (addons/amxmodx/configs/plugins/olds_voicesilence.cfg)
  olds_vs_enable 1         1 = the plugin is on
  olds_vs_window 20        seconds after a death during which the living
                           cannot hear the dead player; 0 = the whole time
                           he is dead
  olds_vs_admin 1          1 = admins (flag i) are always heard

Commands
  olds_vs_status           (ADMIN_KICK, also from the server console) lists
                           the players who are not alive and whether the
                           living can hear them now, for example:
                           [Voice] Bravo: not alive for 3 s, the living
                           cannot hear him

How it works
  The game tells the engine, for every pair of players, whether one hears
  the other (fakemeta forward FM_Voice_SetClientListening). When the
  listener is alive and the speaker is not and is in his window, the plugin
  tells the engine "no" instead.

Tested on
  ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-r 1.3.0.149,
  AMX Mod X 1.10.0-git5490, ReAPI 5.29.0.358.

Credits and licence
  Written from scratch by alexit (olds.ro workshop) for workshop card
  LIB-0068. Licence: GNU General Public License v3.0 or later
  (GPL-3.0-or-later).

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.