Skip to content
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

Bipod now gives you an option to switch to full auto when deploying #5638

Merged
merged 6 commits into from
Feb 14, 2024

Conversation

VileBeggar
Copy link
Contributor

@VileBeggar VileBeggar commented Feb 2, 2024

About the pull request

Attaching the bipod to weapons with full auto capability or firearms marked with the GUN_SUPPORT_PLATFORM flag will give the user a button toggle to immediately switch to full auto when deploying the bipod.

image

If the full auto switch is turned on, the weapon will simply switch to full auto when the bipod is deployed. If you undeploy it, it will switch back to whatever previous firemode the weapon was in, e.g:

  1. You set your pulse rifle to semi auto.
  2. You deploy the bipod.
  3. The pulse rifle is set to full auto.
  4. You undeploy the bipod.
  5. The pulse rifle will switch back to semi auto.

In cases where you switch the weapon's firemode when it's already switched to full auto, it won't revert back to whatever firemode was set before it was deployed, e.g:

  1. You set your pulse rifle to semi auto.
  2. You deploy the bipod.
  3. The pulse rifle is set to full auto.
  4. You set your pulse rifle to burst fire.
  5. You undeploy the bipod.
  6. The pulse rifle will stay on burst fire.

Also renames a couple of one letter variables.

Explain why it's good for the game

Quality of life. Less messing around with firemode selectors which is a terrible headache, especially for the HPR, which you usually want to have on full auto 90% of the time. Those who want to stick with the old way don't have to change anything, as the full auto switch is entirely optional.

Testing Photographs and Procedure

Screenshots & Videos
bipod.test.mp4

Changelog

🆑
qol: Attaching the bipod to weapons that have full auto (HPR included) will give you a button toggle for immediately switching to full auto when deploying the bipod.
/:cl:

@github-actions github-actions bot added Sprites Remove the soul from the game. Quality of Life Make the game harder to play labels Feb 2, 2024
@cuberound
Copy link
Contributor

mby you could rename G to gun and A to action to get rid of single letter vars when you are working on that file, would be nice

harryob
harryob previously requested changes Feb 3, 2024
code/modules/projectiles/gun_attachables.dm Outdated Show resolved Hide resolved
code/modules/projectiles/gun_attachables.dm Outdated Show resolved Hide resolved
@harryob harryob marked this pull request as draft February 3, 2024 09:24
@VileBeggar VileBeggar marked this pull request as ready for review February 3, 2024 11:05
Copy link
Contributor

@nauticall nauticall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sprite good 🍋

@nauticall nauticall added the Sprites Approved confirmed no stray pixels label Feb 5, 2024
Copy link
Contributor

@Drulikar Drulikar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick, but it seems to only remember the old state early on or when deployed and then gets stuck remembering that state.

  1. Be on automatic fire
  2. Enable Full Auto Switch
  3. Change to burst fire
  4. Deploy (changes to automatic)
  5. Retract (returns to burst correctly)
  6. Change to automatic fire
  7. Deploy
  8. Retract (incorrectly returns to burst)

@Drulikar Drulikar marked this pull request as draft February 6, 2024 01:38
@VileBeggar VileBeggar marked this pull request as ready for review February 6, 2024 10:51
@harryob harryob dismissed their stale review February 14, 2024 09:50

automerge wants this review dismissed

@Drulikar Drulikar added this pull request to the merge queue Feb 14, 2024
Merged via the queue into cmss13-devs:master with commit cf0f0a1 Feb 14, 2024
27 checks passed
cm13-github added a commit that referenced this pull request Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Quality of Life Make the game harder to play Sprites Approved confirmed no stray pixels Sprites Remove the soul from the game.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants