sm_scale_damage_on_low_ammo_reload (admin flag "z")
:reload config data from file.
Change log
Spoiler
Code:
1.3 (2024-02-22:
-minor improve.
1.2 (2024-02-17:
-minor improve of code.
1.1 (2024-02-13 | re-upload 2024-02-14:
-add cvar "scale_damage_on_low_ammo_path" to dynamically load config.
1.0 (2024-01-30:
-init public release.
Configs installation
put scale_damage_on_low_ammo.cfg in sourcemod/data/. if you changed the file name or path, you have to edit the cvar "path" too.
when sum of clip and ammo lower than "ammo_left", damage will scale to "damage_scale", but at least keep 1.0 damage. to disable on a weapon type, set "ammo_left" to 0 or set "damage_scale" to 1.0.