11 hours ago11 hr Administrator Players carrying more cash deal extra weapon damage: every 1000 dollars adds a configurable percentage, up to a cap, so saving money has a visible combat payoff. 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, ReAPIAMX Mod X 1.10 or newer (written and tested on 1.10.0.5490) Install 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.Copy data/lang/olds_wealthdmg.txt to addons/amxmodx/data/lang/.Copy configs/plugins/olds_wealthdmg.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).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). InstallDownload 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_wealthdmg.sma Idea: olds.ro workshop library · Plugin: alexit · 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 (LIB-2031). Wealth-Scaled Damagev1.0.0Counter-Strike 1.6PluginNot tested yetAMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.4 KBUpdated 11 hours agoSign in to downloadolds_wealthdmg.smaPawn (AMX Mod X) · 152 lines4 files/* * Wealth-Scaled Damage (olds.ro workshop card LIB-2031) * * 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_capShow all 152 linesChangelogVersions (1)Install into: cstrike/Open the full page →
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.