mirror of
https://github.com/nzp-team/quakec.git
synced 2025-03-21 10:21:47 +00:00
SERVER: Buff snipers a bit
This commit is contained in:
parent
0812781cb7
commit
ac68064325
2 changed files with 19 additions and 1 deletions
|
@ -1451,7 +1451,10 @@ void(float side) W_Fire =
|
|||
if (self.zoom == 1 && W_SpreadAffectedByADS(self.weapon)) {
|
||||
spread *= 0.02;
|
||||
} else if (self.zoom == 2) {
|
||||
spread = spread * 0.05;
|
||||
if (W_HighPrecisionWhenADS(self.weapon))
|
||||
spread = 0;
|
||||
else
|
||||
spread *= 0.15;
|
||||
}
|
||||
|
||||
if (self.downed)
|
||||
|
|
|
@ -3702,6 +3702,21 @@ float(float weapon, float stance) CrossHairMaxSpread =
|
|||
return crosshair_spread;
|
||||
}
|
||||
|
||||
float(float wep) W_HighPrecisionWhenADS =
|
||||
{
|
||||
switch (wep) {
|
||||
case W_KAR:
|
||||
case W_ARMAGEDDON:
|
||||
case W_KAR_SCOPE:
|
||||
case W_HEADCRACKER:
|
||||
case W_PTRS:
|
||||
case W_PENETRATOR:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
float(float wep) W_SpreadAffectedByADS =
|
||||
{
|
||||
switch (wep) {
|
||||
|
|
Loading…
Reference in a new issue