Jump to content

The end of unit overshoot?


Recommended Posts

3 minutes ago, Atrik said:

If the prepare time is reset every time a unit receive a order like halt, target, or move by itself, as I I think it is, then it's the main delay during witch overshoots occurs.

yes, it is now. 1 sec of overshoot vs 2. But I wouldn't want a pike to stop, thinking it can attack, and then not be able to because its target ran away during the prepare time. There are certainly arguments to change prepare time for some units, but then you start to run into issues with animations.

  • Like 1
Link to comment
Share on other sites

4 minutes ago, wowgetoffyourcellphone said:

How so? It changes gameplay, but that doesn't mean it would be a bad change.

this one is hard to explain. I think it could be ok for a unique unit. One time I gave units buildingAI, to see how strong spreading out damage perfectly would be, and being able to deal damage without stopping was far more impactful. Allowing units to attack while moving would basically make mobility in general even stronger than it already is.

i'm down to try it, but I don't think it should be a priority.

Edited by real_tabasco_sauce
Link to comment
Share on other sites

31 minutes ago, real_tabasco_sauce said:

..... = prepare time

---- = repeat time

| = attack

O = check if the target is in range

 

vanilla:

..........|O-----------------------------------|O-----------------------------------|O

With patch (ie pikeman):

..........|O-------O-----------------O---------|O--------O---------------O----------|O

Okay.  So the animation is spread across the previous repeat/prepare time and the next repeat time if it understand it right.

My understanding of the animation and the timers is as follows:

Additional symbols

  • > = attack motion begins
  • ! = Animation Impact Point
  • < = Post thrust draw back
  • % = animation loop restarts
     

Current 

vanilla:

 >>>>!<<<<<<<<<<<<%>>>>>>>>>>>>!<<<<<<<<<<<<<%>>>>>>>>>>>>!

..........|O-----------------------------------|O-----------------------------------|O

With patch (ie pikeman):

 >>>>!<<<<<<<<<<<%>>>>>>>>>>>>>>!<<<<<<<<<<<%>>>>>>>>>>>>>>!

..........|O-------O-----------------O---------|O--------O---------------O----------|O

Proposed
Wouldn't it be simpler to align the distance check with the animation restart time?  Then you could keep the original number of distance checks and it should work reasonably well visibly.  I think you'd agree since you at least prefer prepare time not to be interrupted during the first attack. 

<<<<<%>>>>>>>>>>>>!<<<<<<<<<<<<<%>>>>>>>>>>>>!<<<<<<<<<<<

 ..........O------------------|-----------------O-------------------|----------------|O

This is a much more straightforward way to do it...am I missing something?  Of course, I haven't done much in 0AD beyond edit jsons so I don't know how hard it would be to make such a change.

Link to comment
Share on other sites

@Philip the Swaggerless sure its simple, but its limited.

<<<<<%>>>>>>>>>>>>!<<<<<<<<<<<<<%>>>>>>>>>>>>!<<<<<<<<<<<

 ..........O------------------|-----------------O-------------------|----------------|O

In the above (for pikemen) if you don't check immediately after the attack (|), the unit must wait a whole second before it realizes it needs to move to attack the unit again. This would be really bad.

Have you played it yet? The pikemen really don't look bad at all, its spearcav and swordcav chasing that look a bit weird.

There can certainly be improvements to try and fit the animation better, but timing it perfectly would be tough as all units have differing animations, repeat times, and prepare times. You would end up doing some crazy mathematical gymnastics to try and get it to work! Up to a point, it would be easier to tweak animations and audio (except I haven't done that yet XD).

Edited by real_tabasco_sauce
  • Like 1
Link to comment
Share on other sites

3 hours ago, real_tabasco_sauce said:

In the above (for pikemen) if you don't check immediately after the attack (|), the unit must wait a whole second before it realizes it needs to move to attack the unit again. This would be really bad.

It can't move while the animation is ending anyways, right?  Does it need to know its destination frames in advance to move on time?

Link to comment
Share on other sites

2 hours ago, Philip the Swaggerless said:
5 hours ago, real_tabasco_sauce said:

In the above (for pikemen) if you don't check immediately after the attack (|), the unit must wait a whole second before it realizes it needs to move to attack the unit again. This would be really bad.

It can't move while the animation is ending anyways, right?  Does it need to know its destination frames in advance to move on time?

I bet what you are referring to as "the animation finishes" is actually the unit going on to finish a new attack. Currently, animations will be cut short if need be.

  • Like 1
Link to comment
Share on other sites

18 hours ago, real_tabasco_sauce said:

There are certainly arguments to change prepare time for some units, but then you start to run into issues with animations.

You're right. Currently, most animations place the "impact" moment in the middle of the animation cycle. If we had an animator on board, we could make the "impact" moment of the animation within the first 20% of the animation and back load the last 80% of the animation with "preparing to strike." Alas, requires an animator and then some work to sync the animation times in the variant files, but this would greatly help the visual aspect by making impacts wave around into empty air less often. 

EDIT: Strike -> Impact. Also, you guys are already talking about this, but I thought to just add my tuppence. 

 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...