mitra76 -> RE: Help please re cavalry "charge" command (6/24/2015 7:54:23 PM)
|
The game has two states for manage the close combat of unit: charge and melee: charge usually switch to melee after the contact between the sprites if nothing interrupt it, but you can have a melee without charge if the at the moment of check two units "virtual surfaces" overlap. Graphically is difficult to see the difference between the two states. Simplify much: the AI for the cavalry has a buffer distance from the target for orders the charge or stop the unit, with the additional check to switch to melee if already in contact for avoid the merging without close combat between opposite units. But sometime I cannot exclude it can happen anyway, especially if the ground hide the target until short distance (sometime from the high view this is not evident) and with artillery which has a reduce "overlap" area to trigger the melee; in addition cavalry run fast and if the check doesn't happen exactly in the same moment of the short window of contact with the "flag" of gun they can bypass the pieces, like as the crew hidden below the pieces or the wagons :) As different logic is applied if you're directly the commander of cavalry brigade: in this case the autonomy of AI is reduced for avoid to subtract fun to the player; in these case a autocharge is ordered below a distance of 100 yards is the conditions are favourable in order to do the charge; of course the melee logic is the same of above
|
|
|
|