Skip to content
View in the app

A better way to browse. Learn more.

Learn more

headshot-frag-value/README.txt

README.txt
44 lines · 1.9 KB · Text
Raw
Headshot Frag Value 1.0.0 (olds.ro)
===================================

A headshot kill on an enemy is worth more frags: on top of the normal
frag the killer gets olds_hsf_extra extra frags (default 1, so a headshot
counts as 2 frags). The scoreboard updates at once.

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_hsfrag.sma and copy olds_hsfrag.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_hsfrag.txt to addons/amxmodx/data/lang/.
  3. Copy configs/plugins/olds_hsfrag.cfg to addons/amxmodx/configs/plugins/
     (if it is missing, the plugin writes it with the default values).
  4. Add olds_hsfrag.amxx to addons/amxmodx/configs/plugins.ini.

How it works
  - After a kill (ReAPI hook RG_CBasePlayer_Killed, post) the plugin checks
    the victim's m_bHeadshotKilled flag. For a headshot on an enemy it adds
    olds_hsf_extra frags with set_user_frags and sends the ScoreInfo
    message, so every scoreboard shows the new total.
  - Team kills (the stock penalty stays unchanged), suicides, kills by the
    world and grenade or bomb kills never give extra frags.
  - Knife headshots count only with olds_hsf_knife 1.
  - With olds_hsf_notify 1 the killer reads "Headshot: +1 extra frag." in
    chat.

Settings (addons/amxmodx/configs/plugins/olds_hsfrag.cfg)
  olds_hsf_extra  1   extra frags for a headshot kill (0 - 10, 0 = off)
  olds_hsf_knife  0   1 = knife headshots also give the extra frags
  olds_hsf_notify 1   1 = tell the killer in chat

The cvars are read at every kill, so a change works at once.

No sounds, models or sprites are added.

Credits and licence
  Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2105.
  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.