-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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
@@ -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))) |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
code/game/objects/items/attachments/gun_attachments/flamethrower.dm
Outdated
Show resolved
Hide resolved
code/game/objects/items/attachments/gun_attachments/riot_launcher.dm
Outdated
Show resolved
Hide resolved
Co-authored-by: Mark Suckerberg <[email protected]> Signed-off-by: Gristlebee <[email protected]>
Co-authored-by: Mark Suckerberg <[email protected]> Signed-off-by: Gristlebee <[email protected]>
Co-authored-by: Mark Suckerberg <[email protected]> Signed-off-by: Gristlebee <[email protected]>
…her.dm Co-authored-by: Mark Suckerberg <[email protected]> Signed-off-by: Gristlebee <[email protected]>
…er.dm Co-authored-by: Mark Suckerberg <[email protected]> Signed-off-by: Gristlebee <[email protected]>
…test-Fork into underbarrel-guns
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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: