Author Topic: Shoting  (Read 531 times)

Grumli

  • Newbie
  • *
  • Posts: 17
    • View Profile
Shoting
« on: May 08, 2019, 08:19:30 am »
1. Shooting is impossible through the open door. The door and the walls around are damaged, but not the target behind the door.
2. A single shot from a revolver, from a pistol, from a gun by a bullet sometimes causes damage to the target and to something around. How is this possible?

Lurler

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1257
    • View Profile
Re: Shoting
« Reply #1 on: May 08, 2019, 09:43:25 pm »
1. Shooting is impossible through the open door. The door and the walls around are damaged, but not the target behind the door.
The actual passage through the door is quite narrow, so you need to make sure you are shooting straight.

2. A single shot from a revolver, from a pistol, from a gun by a bullet sometimes causes damage to the target and to something around. How is this possible?
Currently when you shoot a person the bullet has a chance to go through. But actually we decided that we don't like that, so in the upcoming A22 update it is already changed so bullets don't go through.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 1493
    • View Profile
Re: Shoting
« Reply #2 on: May 09, 2019, 01:50:22 am »
Thank you, @Grumli!
Actually, there is also a bug with the hit detection when the order of the close objects is a bit incorrect so the hit registered on the wrong objects. I've investigated and the issue is with line segment vs rectangle collision detection — it's detected properly but I need to implement a proper algorithm to calculate the exact collision points. (we have a custom physics/collisions library which is in the most cases great but it doesn't handle some particular cases like this one yet)

Regards!