Where is the code responsible for closing in on target?

Where is the code responsible for closing in on target?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Where is the code responsible for closing in on target?

Post by imbaczek »

Need to modify some code that makes an attacking unit close up on its target, but can't find it. Where to look?
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

CMobileCAI, ExecuteAttack specifically. (in rts/Sim/Units/CommandAI/MobileCAI.cpp)
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Post by Argh »

Be very, very careful with this. I'd rather have options, than be forced into a method that drastically alters current gameplay.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

I need to make it aware of targetBorder, that's all. Nothing big, no need to worry.
Post Reply

Return to “Engine”