Rocket launcer trigger range
-
- Posts:190
- Joined:Tue Dec 05, 2017 8:40 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Rocket launcher I triggers when attacking squares that are in radius 5 of them. RL is 0, next square is radius 1, then 2 etc until 5. They trigger when the square at range 5 is attacked. The stats say radius is 4.
In the example you sent me of this, the rocket launcher is 4 spaces to the south of the target, and 2 spaces to the west. According to the Pythagorean theorum the distance between them is therefore 4.47, which rounds to 4, and so is considered within range.
So, the area of range of a range 4 defense looks like this:
--*****--
-*******-
*********
*********
****o****
*********
*********
-*******-
--*****--
I could have it consider anything at all above 4 to be out of range, but then it would look like this:
----*----
-*******-
-*******-
-*******-
****o****
-*******-
-*******-
-*******-
----*----
(hard to see with the character graphics, but it's basically a square with points coming out in the middle of each side)
So, the area of range of a range 4 defense looks like this:
--*****--
-*******-
*********
*********
****o****
*********
*********
-*******-
--*****--
I could have it consider anything at all above 4 to be out of range, but then it would look like this:
----*----
-*******-
-*******-
-*******-
****o****
-*******-
-*******-
-*******-
----*----
(hard to see with the character graphics, but it's basically a square with points coming out in the middle of each side)
-
- Posts:190
- Joined:Tue Dec 05, 2017 8:40 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
I looked it as 4 moves from the rocket launcher. Having "numerical" 4,47 distance is actually more than 4 and should be out of range.
The "numerical" distance wouldnt be the same when you have 4 squares straight or 4 squares diagonal, but it would be easier to see it in game, whether a building is in range or not.
What do you think?
The "numerical" distance wouldnt be the same when you have 4 squares straight or 4 squares diagonal, but it would be easier to see it in game, whether a building is in range or not.
What do you think?
-
- Posts:190
- Joined:Tue Dec 05, 2017 8:40 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Little bump ![Smile :)](./images/smilies/icon_e_smile.gif)
This applies to all towers not just RL. Currently 4 range ones shoot at a square that are 5 steps away from them.
![Smile :)](./images/smilies/icon_e_smile.gif)
This applies to all towers not just RL. Currently 4 range ones shoot at a square that are 5 steps away from them.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 28 guests