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

@ -80,17 +80,43 @@
### B23R
* Changed weapon cost to 900 on all maps
### Executioner
* Increased penetration
### HAMR
* Decreased recoil
### M1216
* Increased penetration
### M1911
* Upgraded: given as last stand pistol above all others except Ray Gun Mark 2
### M1927
* Decreased ammo cost from 800 to 750
### M8A1
* Decreased recoil
### MTAR
* Decreased recoil
### Remington 870
* Changed weapon cost to 1200 on all maps
* Increased penetration
### RPD
* Decreased recoil
### S12
* Increased penetration
### SMR
* Increased damage by 100%
* Removed ADS spread
### Type 25
* Decreased recoil
### War Machine
* Unupgraded: grenades explode on impact
@ -149,6 +175,10 @@
* Switch weapons twice as fast
* Throw grenades twice as fast
### Double Tap
* Removed shooting 2 bullets for every shot
* Increases bullet damage by 50%
### Stamin-Up
* Move faster (normally only sprint faster)

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 ) )