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

Underbarrel Gun Attachments #3825

Open
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

Gristlebee
Copy link
Contributor

@Gristlebee Gristlebee commented Nov 22, 2024

About The Pull Request

Adds underbarrel gun attachments. Current roster is the underbarrel shotgun, e-gun, flamethrower, flaregun, riot grenade launcher, and 40mm grenade launcher. The first five can be bought from the outpost cargo.

Underbarrel guns can be fired/reloaded/interacted with by swapping the fire select to underbarrel.

Cleans up the riot grenade launcher code a bit.

Underbarrel gun sprites are recolors of Rye-rice's underbarrel grenade launcher.

Why It's Good For The Game

Adds some more customization and personalization options to a players loadout, and I think it's neat.

Changelog

🆑 Gristlebee, Rye-rice
add: Underbarrel guns
fix: Grenade launcher code
/:cl:

@Gristlebee Gristlebee marked this pull request as ready for review November 22, 2024 22:43
@Gristlebee Gristlebee requested a review from a team as a code owner November 22, 2024 22:43
Copy link
Member

@MarkSuckerberg MarkSuckerberg left a comment

Choose a reason for hiding this comment

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

now when are we adding killstreaks

code/__DEFINES/guns.dm Outdated Show resolved Hide resolved
code/datums/components/attachment.dm Outdated Show resolved Hide resolved
code/datums/components/attachment.dm Outdated Show resolved Hide resolved
@@ -114,7 +125,7 @@
/datum/component/attachment_holder/proc/do_attach(obj/item/attachment, mob/user, bypass_checks)
var/slot = SEND_SIGNAL(attachment, COMSIG_ATTACHMENT_GET_SLOT)
slot = attachment_slot_from_bflag(slot)
if(!(attachment.type in valid_types))
if(!(is_type_in_list(attachment,valid_types)))
Copy link
Member

Choose a reason for hiding this comment

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

perhaps make valid_types a typecache?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

made it a typecache, hopefully I did it right

@github-actions github-actions bot added the Merge Conflict Use Git Hooks, you're welcome. label Dec 4, 2024
Copy link
Contributor

github-actions bot commented Dec 4, 2024

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the Merge Conflict Use Git Hooks, you're welcome. label Dec 4, 2024
@github-actions github-actions bot added the Merge Conflict Use Git Hooks, you're welcome. label Dec 29, 2024
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the Merge Conflict Use Git Hooks, you're welcome. label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code change Watch something violently break. DME Edit Sprites A bikeshed full of soulless bikes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants