Author Topic: Attack while moving  (Read 1628 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Attack while moving
« on: 16 February 2013, 12:59:27 »
Something I really miss is in Megaglest is a real "move attack" skill. For example a tank which shoots while it passes the enemy.

Some problems I see when doing this:
- The AI will not use it in the right way
- The automated attacking of your own units will also not know how to use this feature in the right way

If soemone has an idea how the units should be have, please tell us.

And something what you will soon want to have with this are something like turrets  for tanks. So two models representing one unit. One turns to the enemy ( the turret ), and the other model rotates according to the movement. of the object.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Attack while moving
« Reply #1 on: 16 February 2013, 13:36:18 »
It seems rather difficult to use, though. Would the unit just keep on moving until it's out of range? How would it behave in groups with units that have to stop to attack? How do you target a unit will moving somewhere else at the same time?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Attack while moving
« Reply #2 on: 16 February 2013, 17:36:07 »
The best idea is to look at other games and how they handle it  :angel:

I remember  hiverise did something like this and I think the spring engine can do something like this do.

I know this is really diffcult, but will add many new possibilities

Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

MoLAoS

  • Ornithopter
  • *****
  • Posts: 433
    • View Profile
Re: Attack while moving
« Reply #3 on: 16 February 2013, 18:30:16 »
Mechs in spring have multiple weapons and will attack nearby targets while moving with their various weapons. they tend to stick to a target till it dies with each weapon, also factoring in the range of the attack so they will switch if the old target is out of range. Attack animations are mostly independent of move animations because spring uses machines which means little animation change is necessary.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Attack while moving
« Reply #4 on: 22 February 2013, 23:24:34 »
How about implementing this as an 'attack patrol' where you specify point A and B and the units moves back and forth while attacking things in his sight range?

titi_son

  • Draco Rider
  • *****
  • Posts: 283
  • titi_son
    • View Profile
Re: Attack while moving
« Reply #5 on: 8 March 2013, 19:20:58 »
maybe but there are also 2 bad points on that idea:

1. You have to "teach" Cpu to play
2. What happens with a big group of units? (Maybe Speed-Problems because high pathfinding activity; You units run towards enemy because way is blocked by the other units)
My first Tilseset: SPRING :) (included in Megaglest )

Secret Hint: To play online join the IRC #megaglest-lobby on freenode which is the lobby chat ingame. So you can chat with or wait for people in the lobby without running megaglest all the time.

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Attack while moving
« Reply #6 on: 8 March 2013, 19:34:37 »
These issues are there no matter which approach you take assuming the unit will 'attack' and 'move'

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: Attack while moving
« Reply #7 on: 21 March 2013, 16:44:13 »
But is this skill type / command type not mostly useless without turret support? (points on a model where a turret can rotate acordingly to enemy target location?.

Im saying this because there is stil talk about a new model format.

Or can it perhaps better payoff to improve the current 3d model format?
WiP Game developer.
I do danish translations.
"i break stuff"

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: Attack while moving
« Reply #8 on: 3 April 2013, 15:05:39 »
Turret support shouldn't be too hard to do, just let the unit have two seperate models per skill, one is the turret. which rotates and so on. The hard part is the moving/attacking behaviour, especially regarding the AI. Things like drive by shooting can easily be managed by humans, but AI will have trouble to choose the right way to attack.
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios