Skip to content
View in the app

A better way to browse. Learn more.

Learn more

round-start-score-display/README.txt

README.txt
55 lines · 2.4 KB · Text
Raw
Round Start Score Display 1.0.0 (olds.ro)
=========================================

At the start of every round each player sees the team score and which
side leads, as a short line near the top of the screen:

    T 4 : 6 CT  CT leads
    T 5 : 5 CT  Tied
    T 7 : 3 CT  T leads  (first to 10)

say /score shows the line again at any time, to that player only.

Requirements
  - ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  - AMX Mod X 1.10 or newer (written for 1.10.0.5490)

Install
  1. Compile scripting/olds_rscore.sma and copy olds_rscore.amxx to
     addons/amxmodx/plugins/. The compiler needs ReAPI's include files
     (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the
     stock AMX Mod X includes.
  2. Copy data/lang/olds_rscore.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_rscore.cfg to addons/amxmodx/configs/plugins/
     (if it is missing, the plugin writes it with the default values).
  4. Add olds_rscore.amxx to addons/amxmodx/configs/plugins.ini.

Commands
  say /score   (also in team chat) Shows the score line again.

How it works
  - When a round restarts (ReAPI hook RG_CSGameRules_RestartRound, post)
    the round wins of both teams are read from the game rules
    (m_iNumTerroristWins, m_iNumCTWins) and the line is shown to every
    player 0.2 seconds later, once everyone has respawned. After
    sv_restart or mp_restartgame the score reads 0 : 0.
  - The line uses HUD channel 1, centred, and stays olds_rscore_time
    seconds. It is drawn in the colour of the leading team; a tie uses the
    mix of both colours.
  - With olds_rscore_winlimit 1 and mp_winlimit above 0 the line also
    shows how many round wins end the map, such as "(first to 10)".

Settings (addons/amxmodx/configs/plugins/olds_rscore.cfg)
  olds_rscore_time     4              seconds the line stays (1 - 15)
  olds_rscore_color_t  "255 120 60"   colour when the Terrorists lead, R G B
  olds_rscore_color_ct "100 150 255"  colour when the CTs lead, R G B
  olds_rscore_winlimit 0              1 = also show mp_winlimit ("first to N")

A colour value that is missing reads as 255; every value is kept within
0 - 255. The cvars are read each time the line is shown.

No sounds, models or sprites are added.

Credits and licence
  Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2147.
  Licence: GNU GPL version 3 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.