Skip to content

Commit

Permalink
north facing m56d shooting angle fix (#5308)
Browse files Browse the repository at this point in the history
# About the pull request

prevents m56d from shooting anywhere to the right when facing north

# Explain why it's good for the game

fix good


# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog
:cl:
fix: m56d can not longer shoot backwards when facing north
/:cl:

Co-authored-by: vincibrv <[email protected]>
  • Loading branch information
cuberound and uuuuhuuuu committed Dec 29, 2023
1 parent 33af189 commit f18d284
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/cm_marines/smartgun_mount.dm
Original file line number Diff line number Diff line change
Expand Up @@ -703,6 +703,9 @@
if((dir == NORTH) && (angle > 180) && (abs(360 - angle) > shoot_degree)) // If north and shooting to the left, we do some extra math
return

if((dir == NORTH) && (angle < 180) && (angle > shoot_degree))
return

else if((dir != NORTH) && (abs(angle - dir2angle(dir)) > shoot_degree))
return

Expand Down

0 comments on commit f18d284

Please sign in to comment.