glest / glest-source

Glest is a network multi-player cross-platform 3D real-time strategy (RTS) game, where you create armies of units and battle different factions.
https://glest.io
GNU General Public License v3.0
57 stars 39 forks source link

Implement auto-harvest #178

Open andy5995 opened 6 years ago

andy5995 commented 6 years ago

When workers become idle, they should be automatically given the command to harvest the nearest available resource within their sight-range.

biels commented 5 years ago

It could be made so that if no explicit order is given, they go automatically to harvest. In the same way units attack enemies by default. I would also add a range limit, in the same way units don't go attack the enemy base by themselves. For example half the sight of the unit.

On Sun, Feb 10, 2019, 18:17 MathuSum Mut <notifications@github.com wrote:

Reopened #178 https://github.com/glest/glest-source/issues/178.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/glest/glest-source/issues/178#event-2129310406, or mute the thread https://github.com/notifications/unsubscribe-auth/AE64MH4IQJkKAImvawUrUl3ZyBP414f7ks5vMFQxgaJpZM4U-aQ3 .

biels commented 5 years ago

Hmm interesting one. Maybe this should only happen if the unit hasn't received an explicit command in a while (could be somewhat long) , or the unit has ben created.

On Sun, Feb 10, 2019, 18:26 MathuSum Mut <notifications@github.com wrote:

But what if you want your workers to stay where they are during an attack situation? (like hide behind the castle)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/glest/glest-source/issues/178#issuecomment-462153372, or mute the thread https://github.com/notifications/unsubscribe-auth/AE64MP0LlKJkjioVGcddiEjJVMLCELg6ks5vMFY5gaJpZM4U-aQ3 .

ZeoxD commented 5 years ago

i think this is not needed , instead your camera should jump to your worker after pressing "I". if there are idle workers.

biels commented 5 years ago

That is another good option yes

On Sun, Feb 10, 2019, 18:39 ZeoxD <notifications@github.com wrote:

i think this is not needed , instead oyur camera should jump to your worker after pressing "I"

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/glest/glest-source/issues/178#issuecomment-462154522, or mute the thread https://github.com/notifications/unsubscribe-auth/AE64MKlztSzoW_rQU6gOZAIWNYFVQrpIks5vMFlcgaJpZM4U-aQ3 .