Opened 3 years ago

Last modified 5 months ago

#3919 new enhancement

improve animal AI

Reported by: Palaxin Owned by:
Priority: Should Have Milestone: Backlog
Component: Simulation Keywords:
Cc: Patch:

Description

citing sanderd17:

What we mainly lack is some cleverness in the animal AI. About every animal would flee for an army of men, and never attack it. But many would attack a single person. The threshold is different for every animal species though, and some animals also prefer to attack in group. Some animals also chase (like lions), while others just want to get rid of you (like a rhino won't keep chasing you), or are too lazy to chase (a crocodile only attacks once). When that gets implemented, animals can be a bit more realistic, and be very annoying for scouting, but not interfere a lot when the game reaches the main combat phase. And making the first part of the game more interesting is still wanted I guess.

See also our discussion on IRC.

The existing code and the improvements should be shifted to a new component UnitAIAnimal.

Attachments (1)

UnitAIAnimal.js (6.3 KB) - added by Palaxin 3 years ago.
this is very WIP, but I would like some feedback if I'm on the right track since this is my first major JS programming task

Download all attachments as: .zip

Change History (2)

Changed 3 years ago by Palaxin

Attachment: UnitAIAnimal.js added

this is very WIP, but I would like some feedback if I'm on the right track since this is my first major JS programming task

comment:1 Changed 5 months ago by Imarok

Component: UI & SimulationSimulation

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

Note: See TracTickets for help on using tickets.