1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-10 07:08:06 -05:00

Deadshot: only increase bullet damage

This commit is contained in:
Jbleezy
2022-01-23 02:42:04 -08:00
parent 70ea7b3522
commit 592035a8b8
2 changed files with 9 additions and 3 deletions

View File

@ -188,7 +188,7 @@
* Move faster (normally only sprint faster)
### Deadshot Daiquiri
* Increases headshot damage by 100%
* Increases bullet headshot damage by 100%
* Move faster while aiming
* Decreases sprint recovery time

View File

@ -156,9 +156,15 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon,
if(attacker HasPerk("specialty_deadshot"))
{
if(is_headshot(weapon, shitloc, meansofdeath) && WeaponClass(weapon) != "spread" && WeaponClass(weapon) != "pistol spread")
if(is_headshot(weapon, shitloc, meansofdeath))
{
final_damage *= 2;
if(meansofdeath == "MOD_PISTOL_BULLET" || meansofdeath == "MOD_RIFLE_BULLET")
{
if(!isSubStr(weaponClass(weapon), "spread") || maps/mp/zombies/_zm_weapons::get_base_weapon_name(weapon, 1) == "ksg_zm")
{
final_damage *= 2;
}
}
}
}