Opened 4 years ago

Last modified 3 months ago

#3381 new defect

Archers outrange buildings despite having less attack range

Reported by: elexis Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords:
Cc: scythetwirler, odalman Patch:

Description (last modified by Nescio)

Problem: Although archers and CCs / fortresses both have 72m attack range, archers outrange the buildings.

Reason: Currently buildings shoot arrows from the center of the structure while archers can shoot at the edge of a structure and thus outrange it.

Why it should be fixed: This means that archers can park in front of a CC and kill it while not being fired at. Even if you use a british forteress that has 80m range and have a hill advantage, archers can outrange that building, which is pretty lame. This is not only a problem in age 1 as athen and mauryans have devastating champion archers. Especially if your city is close to the enemy this can become a pain as the archer-abusing player can hide between the own towers and become almost invincible and only beatable with far superior economy or using other balancing bugs.

Also, as 72m attack range is defined for structures and archers alike, it seems it is intended for them to be able to attack each other.

Quick fix: Just increase the attack range of buildings in the templates by the radius of the structure.

Extended fix: Automatically add the radius of the building when computing the attack range.

Technically the second proposal is also more historically accurate as archers shoot arrows from the embrasure / arrowslits in the walls of fortresses, not from the center.

Change History (10)

comment:1 Changed 4 years ago by elexis

The second proposal might not be a clean approach as we would have to assume square footprints / obstruction size for defensive buildings (which currently is the case but might change).

comment:2 Changed 4 years ago by stanislas69

Well what does that change for the british fortress ?

I mean technically it would just be a little smaller than a square fortress, but that shouldn't be visible anyway.

comment:3 in reply to:  2 Changed 4 years ago by elexis

Replying to stanislas69:

Well what does that change for the british fortress ?

I mean technically it would just be a little smaller than a square fortress, but that shouldn't be visible anyway.

The british fortress is just a good example as it has 80m range which is clearly more than the archers 72m range. Still the archers can outrange the fortress.

Currently all defensive buildings have a square size, so that proposal to add the size automatically might work for that - but not if the size is not square, i. e. one side is longer than the other. In that case the attack range would be a bit inconsistent if we'd use the width, depth or average of both values to the attack range.

comment:4 Changed 4 years ago by stanislas69

Ah yes I see. Then can't you just take the longest distance ?

comment:5 Changed 4 years ago by wraitii

Milestone: BacklogAlpha 20

I do believe this is somewhat counter-intuitive. this is partly why the tower minrange issue happened

comment:6 Changed 3 years ago by elexis

Milestone: Alpha 20Backlog

Backlogging due to lack of progress.

comment:7 Changed 4 months ago by Imarok

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

comment:8 Changed 3 months ago by Nescio

Description: modified (diff)

Adding the footprint's radius works fine for circular entities, but is problematic for rectangular ones. Instead, the problem could also be solved if ranges (attack, aura, heal, vision) are calculated from the edge rather than from the centre. See also: https://wildfiregames.com/forum/index.php?/topic/25424-structure-range/&tab=comments#comment-370075

comment:9 Changed 3 months ago by elexis

There was also that request: #4585

comment:10 Changed 3 months ago by odalman

Cc: odalman added
Note: See TracTickets for help on using tickets.