-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attacks from under ceiling with 3D FOV on. #29175
Comments
Here's the execution stack for shockstorm Cataclysm-DDA/src/creature.cpp Line 165 in 469d249
There are a couple of suspicious things happening here, all of them revolving around creature::sees( creature ). Next is either stepping through the code to find out where this is happening, or maybe creating a test to tease it out. |
The problem is in 3D shadowcasting, there is some scenario where it allows the player to see the shocker and vice versa. You can see this because the shocker will intermittently appear on the threat compass as you wander around. |
It turns out it is not the shadowcasting algorithm itself, but rather something related to map shifts. If you identify a submap edge (roughly the center of a roof, but not always) and then step over the border, the shocker will see you almost every time, but if you walk around without crossing a border, I've yet to trigger it. |
Describe the bug
When on a roof, zombies from inside the building can use special attacks on you, most notably shockers.
To Reproduce
Expected behavior
No attacks through the roof from inside.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions and configuration(please complete the following information):
Additional context



On roof getting shocked
shocker below & inside
gifs are fun
The text was updated successfully, but these errors were encountered: