angered-ghandi / OpenAOE

An open source reimplementation of Age of Empires (1997)
Other
64 stars 5 forks source link

Don't allow selection of unselectable units #57

Closed angered-ghandi closed 8 years ago

angered-ghandi commented 8 years ago

There are certain units, such as grass decals, that shouldn't be selectable.

angered-ghandi commented 8 years ago

I tried using the unselectable flag on the unit information in empires.dat, but it looks like grass clumps have this set to false. I bet unselectable is for use with the editor only.

The interaction mode looks more promising. From what I can tell, its values indicate:

0: Non-interacting (grass clumps, rocks, etc)
1: Flags (don't know why this needs a separate mode)
2: Resources (including animals, excluding farms)
3: Buildings (including farms)
4: Moving (excluding animals)