View Single Post
Author Message
little_froy
Senior Member
Join Date: May 2021
Old 01-30-2024 , 01:32   [L4D2] Scale Weapon Damage On Low Ammo v1.3【2024-02-22】
Reply With Quote #1

scale the damage on low ammo for rare usage. dosen't work for grenade launcher, and recommand not enable for m60 rifle.

Cvars
PHP Code:
scale_damage_on_low_ammo_path "data/scale_damage_on_low_ammo.cfg" 
Commands
  • sm_scale_damage_on_low_ammo_reload (admin flag "z")
    :reload config data from file.

Change log
Spoiler


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.
Attached Files
File Type: cfg scale_damage_on_low_ammo.cfg (1.4 KB, 62 views)
File Type: sp Get Plugin or Get Source (scale_damage_on_low_ammo.sp - 46 views - 6.3 KB)

Last edited by little_froy; 02-21-2024 at 18:12.
little_froy is offline