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

Set weapon dvars

Disable Double Tap double bullets
This commit is contained in:
Jbleezy
2022-01-21 16:15:34 -08:00
parent afcb798a65
commit 3cdb701afa
3 changed files with 48 additions and 2 deletions

View File

@ -247,6 +247,11 @@ set_dvars()
setDvar( "player_meleeRange", 64 );
setDvar( "g_friendlyfireDist", 0 );
setDvar( "perk_weapRateEnhanced", 0 );
setDvar( "sv_patch_zm_weapons", 0 );
setDvar( "sv_fix_zm_weapons", 1 );
}
set_client_dvars()

View File

@ -146,9 +146,20 @@ actor_damage_override( inflictor, attacker, damage, flags, meansofdeath, weapon,
final_damage *= 2;
}
if(attacker HasPerk("specialty_deadshot") && is_headshot(weapon, shitloc, meansofdeath) && WeaponClass(weapon) != "spread" && WeaponClass(weapon) != "pistol spread")
if(attacker HasPerk("specialty_rof"))
{
final_damage *= 2;
if(meansofdeath == "MOD_PISTOL_BULLET" || meansofdeath == "MOD_RIFLE_BULLET")
{
final_damage *= 0.75; // TODO: change to 1.5 once fixed
}
}
if(attacker HasPerk("specialty_deadshot"))
{
if(is_headshot(weapon, shitloc, meansofdeath) && WeaponClass(weapon) != "spread" && WeaponClass(weapon) != "pistol spread")
{
final_damage *= 2;
}
}
if ( attacker maps/mp/zombies/_zm_pers_upgrades_functions::pers_mulit_kill_headshot_active() && is_headshot( weapon, shitloc, meansofdeath ) )