Give AWP smaller spread on no-scope shot

This commit is contained in:
Daniel Maixner 2023-10-05 19:43:59 +02:00
parent 6c46e732ed
commit 46fb749a10

View File

@ -35,7 +35,7 @@ class RifleAWP extends AmmoBasedWeapon implements ScopeItem
protected function getSpreadOffsets(): array
{
if ($this->scopeLevel === 0) {
return [rand(50, 120) / (rand(0, 1) === 0 ? -10 : +10), rand(40, 80) / (rand(0, 1) === 0 ? +10 : -10)];
return [rand(30, 60) / (rand(0, 1) === 0 ? -10 : +10), rand(20, 50) / (rand(0, 1) === 0 ? +10 : -10)];
}
return [0.0, 0.0];