SERVER: Tone down punchangle when repairing barricade

This commit is contained in:
cypress 2023-11-21 11:34:36 -05:00
parent bee0e764fc
commit 5e90a866e2

View file

@ -46,9 +46,9 @@ void() screen_shake =
r = crandom(); r = crandom();
s = random(); s = random();
if (self.enemy.zoom == 2 || self.enemy.zoom == 1) if (self.enemy.zoom == 2 || self.enemy.zoom == 1)
zoom_factor = 0.5; zoom_factor = 0.25;
else else
zoom_factor = 1; zoom_factor = 0.5;
self.enemy.punchangle_y = r * 4 * zoom_factor; self.enemy.punchangle_y = r * 4 * zoom_factor;
self.enemy.punchangle_x = (4 + (s * 2)) * zoom_factor; self.enemy.punchangle_x = (4 + (s * 2)) * zoom_factor;