# Turrets: Can't hide behind corners?

**URL:** https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982
**Category:** The Garage
**Created:** [August 3, 2014, 6:08pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982 "2014-08-03T18:08:42Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![qurvax](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@qurvax](https://discourse.cataclysmdda.org/u/qurvax)
#### Post date: [August 3, 2014, 6:08pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/1 "2014-08-03T18:08:42Z")

</div>

Those things are deadly now. And, unfortunately, can shoot player who is just around the corner (or standing near doorway. Like this

. . . . .  
. . t . .  
. . . . .  
== ==  
. @. . .

Turret cannot be seen but can and will fire. And even more - once i opened the door just to find myself sprayed with smg fire same turn. Probably spend all the ticks after “beep-beep” to finish “open” action. Now coupled with turret’s ability to one-shot limbs, that gives some really good reasons to stay outta labs.

Also, there is a slight issue with two-handed firearm being left equipped when character gets arm severed.

---

<div class="post-metadata">

### Author: ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)
#### Post date: [August 3, 2014, 6:45pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/2 "2014-08-03T18:45:44Z")

</div>

Yeah, right now the support for actual penalties when suffering from the loss of a limb is still a little under supported.

As for turrets being able to shoot when they can’t see you, that sounds like a bit of a problem to me (either with the sight stuff or with the targeting stuff not using the same lines).

---

<div class="post-metadata">

### Author: ![BevapDin](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/bevapdin/32/228_2.png) [@BevapDin](https://discourse.cataclysmdda.org/u/BevapDin)
#### Post date: [August 3, 2014, 8:26pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/3 "2014-08-03T20:26:12Z")

</div>

Casually dropping a link to the turret issue in github: [https://github.com/CleverRaven/Cataclysm-DDA/issues/5668](https://github.com/CleverRaven/Cataclysm-DDA/issues/5668)

---

<div class="post-metadata">

### Author: ![StopSignal](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/stopsignal/32/1923_2.png) [@StopSignal](https://discourse.cataclysmdda.org/u/StopSignal)
#### Post date: [August 3, 2014, 10:06pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/4 "2014-08-03T22:06:12Z")

</div>

> [@qurvax](#):
>
> Those things are deadly now. And, unfortunately, can shoot player who is just around the corner (or standing near doorway. Like this

I think that is because it does not fire in a straight line, it fires like the X, while it should fire like the V

![](http://i.imgur.com/TqbKBUv.png)

---

<div class="post-metadata">

### Author: ![KA101](https://avatars.discourse-cdn.com/v4/letter/k/278dde/32.png) [@KA101](https://discourse.cataclysmdda.org/u/KA101)
#### Post date: [August 3, 2014, 10:32pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/5 "2014-08-03T22:32:48Z")

</div>

> [@StopSignal](#):
>
> [quote=“qurvax, post:1, topic:6982”]Those things are deadly now. And, unfortunately, can shoot player who is just around the corner (or standing near doorway. Like this

I think that is because it does not fire in a straight line, it fires like the X, while it should fire like the V

![](http://i.imgur.com/TqbKBUv.png)[/quote]

All gunfire works like that, so–were the positions reversed–you could blast the turret safely. Known issue and as I’ve marked on the Git tracker, a long-term enhancement request, NOT a bug.

---

<div class="post-metadata">

### Author: ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)
#### Post date: [August 3, 2014, 11:59pm UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/6 "2014-08-03T23:59:44Z")

</div>

There’s a hack that ensures that if you can see something, you can _always_ hit it.  
That hack might also have the result of sometimes allowing you to hit things you can’t see.  
When the player is targeting something, it has an extra check that you can see the target,  
What it does is try the normal trajectory, like the second one in qurvax`s image. If that fails, it tries again with an alternate trajectory (there are always two options, though sometimes both have the same outcome, e.g. with a straight line).

The thing is, from a roguelike point of view, both trajectories are valid

---

<div class="post-metadata">

### Author: ![qurvax](https://avatars.discourse-cdn.com/v4/letter/q/ecc23a/32.png) [@qurvax](https://discourse.cataclysmdda.org/u/qurvax)
#### Post date: [August 4, 2014, 5:43am UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/7 "2014-08-04T05:43:58Z")

</div>

@Kevin: Then turrets need that extra check too.

---

<div class="post-metadata">

### Author: ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)
#### Post date: [August 4, 2014, 8:08am UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/8 "2014-08-04T08:08:18Z")

</div>

I think (layman opinion) that doing double check, one to target and one from target should help to ensure that either both see each other or they don’t see each other.

---

<div class="post-metadata">

### Author: ![Zireael](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/zireael/32/956_2.png) [@Zireael](https://discourse.cataclysmdda.org/u/Zireael)
#### Post date: [August 4, 2014, 10:36am UTC](https://discourse.cataclysmdda.org/t/turrets-cant-hide-behind-corners/6982/9 "2014-08-04T10:36:20Z")

</div>

[quote=“Kevin Granade, post:6, topic:6982”]There’s a hack that ensures that if you can see something, you can _always_ hit it.  
That hack might also have the result of sometimes allowing you to hit things you can’t see.  
When the player is targeting something, it has an extra check that you can see the target,  
What it does is try the normal trajectory, like the second one in qurvax`s image. If that fails, it tries again with an alternate trajectory (there are always two options, though sometimes both have the same outcome, e.g. with a straight line).

The thing is, from a roguelike point of view, both trajectories are valid[/quote]

The problem is not with the player targeting the turret but with the turrets shooting the player.
