Skip to content
View in the app

A better way to browse. Learn more.

Learn more
Alexit/

Wealth-Scaled Damage

Plugin
Alexitbd97a3084cVersion 1.0.0: First release.History
addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
Wealth-Scaled Damage 1.0.0 (olds.ro) ==================================== The richer the attacker, the harder they hit. Damage a player deals to an enemy is multiplied by 1 + (attacker's money / 1000) x olds_wdmg_perk, at most olds_wdmg_cap read from the attacker's account at the moment of each hit. With the defaults, $16000 gives x1.32, $5000 gives x1.10 and $0 gives the stock damage. Spending the money brings the damage straight back down. Requirements - ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI - AMX Mod X 1.10 or newer (written and tested on 1.10.0.5490) Install 1. Compile scripting/olds_wealthdmg.sma and copy olds_wealthdmg.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_wealthdmg.txt to addons/amxmodx/data/lang/. 3. Copy configs/plugins/olds_wealthdmg.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values). 4. Add olds_wealthdmg.amxx to addons/amxmodx/configs/plugins.ini. Commands say /wealth (also in team chat) Shows your money and your damage multiplier. How it works - Every hit a player takes passes the ReAPI hook RG_CBasePlayer_TakeDamage first; the damage of a hit from an enemy player is multiplied there. Guns and grenades are scaled; the knife only with olds_wdmg_knife 1. - Left unchanged: hits on teammates (friendly fire), damage a player does to themselves, and damage from the world (falls, map hazards). - In free-for-all (ReGameDLL's mp_freeforall 1) every other player counts as an enemy. Settings (addons/amxmodx/configs/plugins/olds_wealthdmg.cfg) olds_wdmg_perk 0.02 damage added per $1000 of the attacker's money (0 - 1; 0.02 = +2%) olds_wdmg_cap 1.5 highest multiplier (1 - 10) olds_wdmg_knife 0 1 = knife hits are scaled too, 0 = the knife keeps its stock damage 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, with bots: an AK-47 hit of 36 at $0 and 47.5 (x1.32) at $16000; the stock 36 again after spending the money on a vest; x1.2 with olds_wdmg_cap 1.2; a teammate hit unchanged with friendly fire on; a knife hit unchanged with olds_wdmg_knife 0 and scaled with 1; an HE grenade scaled; world and self damage unchanged; real rifle hits between bots following the formula; the /wealth line. No sounds, models or sprites are added. Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2031. 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.