From 2aa1b961ea541fdc4f6f4c139a0605be5fbe5bec Mon Sep 17 00:00:00 2001 From: Maikel de Vries Date: Fri, 20 Jan 2017 15:40:26 +0100 Subject: [PATCH] AI: don't increase normal throw speed for javelin Javelin uses ranged mechanism for using/throwing. --- planet/Objects.ocd/Helpers.ocd/AI.ocd/Script.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/planet/Objects.ocd/Helpers.ocd/AI.ocd/Script.c b/planet/Objects.ocd/Helpers.ocd/AI.ocd/Script.c index 327db4db7..65716d3a6 100644 --- a/planet/Objects.ocd/Helpers.ocd/AI.ocd/Script.c +++ b/planet/Objects.ocd/Helpers.ocd/AI.ocd/Script.c @@ -480,8 +480,6 @@ private func ExecuteThrow(effect fx) if (PathFree(x, y, tx, ty)) { var throw_speed = this.ThrowSpeed; - if (fx.weapon->GetID() == Javelin) - throw_speed *= 2; var rx = (throw_speed * throw_speed) / (100 * GetGravity()); // horizontal range for 45 degree throw if enemy is on same height as we are var ry = throw_speed * 7 / (GetGravity() * 10); // vertical range of 45 degree throw var dx = tx - x, dy = ty - y + 15 * GetCon() / 100; // distance to target. Reduce vertical distance a bit because throwing exit point is not at center