🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Improving Interrupts

posted in Merc Tactics
Published August 01, 2017
Advertisement

interrupt2.jpg.fa55141a978bab9fad1f6df355ce08c4.jpginterrupt2.jpg.fa55141a978bab9fad1f6df355ce08c4.jpginterrupt2.jpg.fa55141a978bab9fad1f6df355ce08c4.jpgMost squad based games have an interrupt feature that works as follows:

  • During your turn you can arrange it that some of your soldiers don't use up all their action points - leaving enough APs for a "reflex shot" and  facing them in the direction of the expected enemy assault.
  • Then during the enemy's turn, if an enemy soldier moves within the range of you soldier it may, or may not trigger an "interrupt".
  • If the interrupt triggers, then the enemy's turn is interrupted and it becomes your turn temporally, you can shoot at the enemy, or do any other action until your APs run out, then the enemy's turn continues.

The problem with this is that the interrupt only triggers, based on a random throw of the die (that is for the case of the original X-Com game and Jagged Alliance 2). When you position your soldier for the interrupt, you are putting him in a vulnerable position and if the interrupt doesn't happen (because the random die throw), then your soldier is almost certainly going to get pummelled.

For that reason when I was playing X-Com, I almost never tried to get interrupts, because I didn't like the idea of my soldier randomly getting shot to pieces based on a die throw that was completely unpredictable.

So, for Merc Tactics I have being working on ways of "solving" this problem. This is how it works:

  • There is no die throw, instead there is a "counter" which starts at number depending on the soldiers interrupt skill.
  • During the enemies turn each time an enemy moves within the soldiers arc of fire the counter goes down by one. When the counter reaches "0" the interrupt is triggered.

In the screen shot below, for example, you see an arc of fire drawn on the ground with the number "3". 3 is the number of times that the enemy can move within that arc before the interrupt is triggered.

interrupt1.jpg.4b3c65c33643ca752470e6edb11da055.jpg

Now the interrupt is triggered:

interrupt2.jpg.fa55141a978bab9fad1f6df355ce08c4.jpg

Once the soldier shoots or moves the counter goes back to the original setting, otherwise it holds it's value. So, if the counter didn't hit zero in the first turn, you could keep the soldier where he is and try to get the interrupt in the second turn.

This scheme removes the random element and provides feedback to the player, so they always know the likelihood of an interrupt occurring.

 
Previous Entry Video headaches
1 likes 7 comments

Comments

ferrous

Nice, yeah, the problem with the X-coms, Jagged Aliance, and Xenonauts was always the complete lack of knowledge.  Even a percentage chance being displayed would've been better than nothing.  XCOM, the remake, swapped it to always happening, but only once, and every single person would respond at once, making it mostly useless.  (Especially combined with it's lack of unit facings)

Your method sounds fairly clever.  Is it the number of action points spent, or the number of tiles moved?  I could see advantages in both methods.

August 01, 2017 05:23 PM
Ed Welch

Any action taken (moving one square, or taking a shot) reduces the counter by one.

August 01, 2017 06:07 PM
noamw
On 8/1/2017 at 10:23 AM, ferrous said:

Nice, yeah, the problem with the X-coms, Jagged Aliance, and Xenonauts was always the complete lack of knowledge.  Even a percentage chance being displayed would've been better than nothing.  XCOM, the remake, swapped it to always happening, but only once, and every single person would respond at once, making it mostly useless.  (Especially combined with it's lack of unit facings)

Your method sounds fairly clever.  Is it the number of action points spent, or the number of tiles moved?  I could see advantages in both methods.

XCOM2 has much improved on it, if you haven't played it. When taking the overwatch shots, they track the damage to each unit and if one unit has taken enough damage to die, they direct the following shots at the next nearby unit if there is one or do nothing so no ammo/perks are used during that time.

August 02, 2017 06:56 PM
Shmelkin
Quote

The problem with this is that the interrupt only triggers, based on a random throw of the die (that is for the case of the original X-Com game and Jagged Alliance 2).

Can't say for xcom, but in vanilla Ja2 interrupts are completely determined (mostly by experience level), there were no random interrupts in original game.

November 14, 2018 05:26 AM
Ed Welch
13 hours ago, Shmelkin said:

Can't say for xcom, but in vanilla Ja2 interrupts are completely determined (mostly by experience level), there were no random interrupts in original game.

Ok, I didn't know that. As a player it seemed random. I never understood why sometimes the interrupt didn't trigger.

November 14, 2018 06:57 PM
Shmelkin
1 minute ago, Ed Welch said:

Ok, I didn't know that. As a player it seemed random. I never understood why sometimes the interrupt didn't trigger.

It could seem random, but the game just calculates interrupt level for each soldier and then compares them, who has higher interrupt level wins. But since all enemies are different and there are modifiers to interrupt level (shock, running state, the fact that your merc seen this enemy before or not) make it look a bit random. Also, if one sees other and other not, the one that sees always gets interrupt. Also, soldier cannot get interrupt on someone he saw this turn previously. And cannot interrupt at all if he is under fire (even if shooter missed completely).

Could you add maybe similar feature into the game - if soldier is attacked by burst/auto, he cannot interrupt (or his interrupt counter raised by amount of bullets shot at him). Kind of suppression effect.

Jagged Alliance 2 1.13 added new interrupt system (IIS) which works similar to your game - when opponent spends APs in the view of soldier, after certain amount of APs spent interrupt is triggered. Though it's much more complicated, as everything in 1.13.

I personally prefer reaction (overwatch) system of Fallout Tactics, when soldier just fires at opponents who move or fire in his field of view, and you can disable it or set min chance% to fire. It allows faster play than manual interrupts and looks more dynamic and realistic in my view.

November 14, 2018 07:08 PM
Ed Welch

Yeah, the Fallout idea of an automatic reaction fire sounds interesting.

November 15, 2018 06:54 PM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement