eronoobos / BABAR-The-Shardifant

Balanced Annihilation & Balanced Annilhation Reloaded configuration for Shard
2 stars 1 forks source link

commander needs better self-preservation instinct #55

Open eronoobos opened 8 years ago

eronoobos commented 8 years ago

I think @pandaro brought this up somewhere, but it does need addressing. Commander shouldn't stray too far when the enemy starts getting level 2, or the commander has no units guarding it.

It would also be worth it giving it a d-gun behaviour.

pandaro commented 8 years ago

a commander behaviour is not contemplated?

eronoobos commented 8 years ago

https://github.com/eronoobos/BABAR-The-Shardifant/commit/cf64341910258c646904e61b3909084cc1fb84fd is a slight improvement. Commander becomes assistant if total enemy threat is above 3000 (about 12 stumpies), and runs away if the place it's in has a threat of above 500, instead of 625.

a more paranoid, commander-specific behaviour could be useful to take over later in the game. its only role would be to order the commander to assist the highest level factory. and of course, d-gun should be its own behaviour.

eronoobos commented 8 years ago

https://github.com/eronoobos/BABAR-The-Shardifant/commit/77a764519d79c37fd57a4edba23e96ee809cf70a makes commander assist a factory in a safe place when the total enemy threat is above 3000 or it's below 75% health

improvements on this: 1) patrol around the safest turtle 2) if being damaged in a turtle, move to the nearest safe targetting cell (do not sit around when under fire) 3) if being shot in a turtle, order all nearby nanoturrets and assistant construction units to repair the commander (this would require either a modification of assistantbehaviour/handler, or a new behaviour and handler)

pandaro commented 8 years ago

makes commander assist a factory in a safe place when the total enemy threat is above 3000 or it's below 75% health

i suggest to go in safe pos when health is under 99% 1 ok 2 ok 3 i dont think is needed modify something, if you put the commander just near nano, nano repair it fast.

eronoobos commented 8 years ago

i suggest to go in safe pos when health is under 99%

It already preemptively runs away if in an unsafe targetting cell, with wardbehaviour. I don't want to do 99% because then it would be a somewhat useless unit in the early game, when it can easily destroy a peewee or two.

pandaro commented 8 years ago

sometime comm patroling a useless area ,near factory, or in a safe position ok but totally useless, he can do nothing. apart this, that i noticed only in a chicken map, this issues seems be ok, close if you want