Complete.Org:
Mailing Lists:
Archives:
freeciv-dev:
January 1999: [Freeciv-Dev] Autoattack-patch |
[Freeciv-Dev] Autoattack-patch[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Hello. Some fun for the weekend: 'autoattack patch'-beta todo: - if have movement and enough hp remaining, should consider attacking multiple times if multiple targets (hard, because you have to calculate the warmap for each choice -> lots of cpu cycles !!!) - create gui-client for diplomacy for players, because now you attack all and everything *grin* (in work by other persons) - no help-text available - attacks enemies, even if they are in an unknown area (easy fix) fixed from previous patch: - there is a a problem if a ship moves out of a city to autoattack and takes sentried units from the city with it as passengers (it is also fixed for normal goto-command now) - attacking unit should decide, whether to attack or just to inform the player, that there is an enemy in range (it makes no sense, attacking a AEGIS-Cruiser with a fighter) - chooses weakest target for attacking (bonus for transporters) - shuffles player's attack order howto: - put a unit, with a high movement-rate (3 or more) in a city and turn on all auto-attack options. Have fun and please test it and gimme feedback... -Sebastian PS: The two files autoattack.c and autoattack.h belong to the server-directory (cvs diff -u does not include new files)
autoattack.c.gz
autoattack.h.gz
autoattack.diff.gz
|