Author Topic: [Resolved] Shotgun origin issue  (Read 11950 times)

ushas

  • Hero Member
  • *****
  • Posts: 661
[Resolved] Shotgun origin issue
« on: April 27, 2017, 10:10:58 PM »
Having a bug to compensate for this threat existence. I promise it's a nice one.

The issue is related to the green balls and when one uses them for shooting around the corner:
Sometimes, and I don't know exactly what's going on, it happens that if you left-click at one of them - the character steps properly to the neighboring tile and if you shoot - then sometimes instead stepping back to the original tile, he stays at the one from which he shot. The game then thinks he is back on the original tile but visually isn't. So any further movement is calculated from the original tile. But if he shoots the next turn while he didn't moved yet, the game will think I'm shooting from that step-aside tile on which the game thinks he isn't but visually is. So you don't have a choice anymore. I hope it makes a sense:)

I don't know what triggers it yet. I have seen the character shoot and step back properly and next turn when repeating the exact same course of actions the bug occured. So it doesn't seem related to the cover place itself.

Probably will add a flat plane with arrow.
A flat plane with arrow is good idea. Though perhaps make it the same color /elevation / material as the shotgun cone, so it's obvious to what it relates.
« Last Edit: June 20, 2017, 06:56:06 PM by Daithi »

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Shotgun origin issue
« Reply #1 on: April 28, 2017, 08:58:18 AM »
Thanks, yeah I understand - will keep an eye out for this.

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Fix Req] Shotgun origin issue
« Reply #2 on: May 04, 2017, 09:15:48 AM »
Additionaly, sometimes the original tile will become unaccessible to step on for any party member, for the rest of the battle after this issue happened and the character moved. Hate to use 'sometimes', but I'm not sure yet what reproduces those instances.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Shotgun origin issue
« Reply #3 on: May 04, 2017, 10:33:44 AM »
Yeah, each tile has an occupied boolean, so it looks like some condition is causing that not to be reset. Will fix up the issue with the visual indicators used to switch tile and see if can figure out what the problem is. Fixed a few bugs when the system was added, but was left with the uneasy feeling that I'd gotten away too easy with bugs in relation to the code complexity

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Shotgun origin issue
« Reply #4 on: June 20, 2017, 02:10:23 PM »
Bump.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Shotgun origin issue
« Reply #5 on: June 20, 2017, 06:55:37 PM »
Restructured code to fix 2 sets of conditions where strafe with shotgun wasn't working as intended. Will test further, incase of further issues.