Opened 9 years ago

Closed 4 years ago

Last modified 4 years ago

#3394 closed defect (fixed)

Violent units follow enemies through the fog of war

Reported by: elexis Owned by: Freagarach
Priority: Must Have Milestone: Alpha 24
Component: Simulation Keywords:
Cc: Patch: Phab:D2698

Description (last modified by Freagarach)

According to UnitAI.js:

respondChaseBeyondVision: start chasing, and don't stop even if it's out of this unit's vision range (though still visible to the player)

However the enemy units are also followed if they have reached the fog of war and are invisible to the player. The violent units seem to just follow the path of the enemy (instead of walking the shortest / direct path to the current enemy location).

Reproduce: (1) make men violent (2) Alt+D, enable the change-perspective tool (3) move an enemy cavalry in range of the violent men and run away

Since the cavalry can run faster than the soldiers can walk, the enemy cavalry is soon invisible to the player. You can then move whereever you want to, the violent men will always find you (kinda creepy).


A second thing which I'm not sure about:

Aren't violent men supposed to attack all enemies if any of the players units sees that enemy? Currently the violent guys only attack units in vision range.

Change History (6)

comment:1 by elexis, 9 years ago

Sounds similar to #1832

comment:2 by Imarok, 5 years ago

Component: UI & SimulationSimulation

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

comment:3 by Freagarach, 4 years ago

Description: modified (diff)
Milestone: BacklogWork In Progress
Patch: Phab:D2698
Priority: Should HaveMust Have

comment:4 by Freagarach, 4 years ago

Owner: set to Freagarach
Resolution: fixed
Status: newclosed

In 24017:

Do not chase entities in FOW/SOD

Refs #1832 by fixing the non-animal cases.

Differential Revision: D2698
Reviewed by: @bb, @wraitii.
Fixes #3394

in reply to:  description comment:5 by Freagarach, 4 years ago

Milestone: Work In ProgressAlpha 24

Replying to elexis:

A second thing which I'm not sure about:

Aren't violent men supposed to attack all enemies if any of the players units sees that enemy? Currently the violent guys only attack units in vision range.

Would be strange to have entities roam across the map to attack first someone here, then someone there.

comment:6 by Silier, 4 years ago

Still will be present for ai and gaia as they see everything

Note: See TracTickets for help on using tickets.