-
-
Notifications
You must be signed in to change notification settings - Fork 530
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
#define COMSIG_ATTACHMENT_WEILD "attach-weild" | ||
#define COMSIG_ATTACHMENT_UNWEILD "attach-unwield" |
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.
#define COMSIG_ATTACHMENT_WEILD "attach-weild" | |
#define COMSIG_ATTACHMENT_UNWEILD "attach-unwield" | |
#define COMSIG_ATTACHMENT_WIELD "attach-wield" | |
#define COMSIG_ATTACHMENT_UNWIELD "attach-unwield" |
///Called on the parents weild | ||
var/datum/callback/on_wield | ||
///Called on the parents unweild |
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.
///Called on the parents weild | |
var/datum/callback/on_wield | |
///Called on the parents unweild | |
///Called on the parents wield | |
var/datum/callback/on_wield | |
///Called on the parents unwield |
RegisterSignal(parent, COMSIG_ATTACHMENT_WEILD, PROC_REF(try_wield)) | ||
RegisterSignal(parent, COMSIG_ATTACHMENT_UNWEILD, PROC_REF(try_unwield)) |
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.
RegisterSignal(parent, COMSIG_ATTACHMENT_WEILD, PROC_REF(try_wield)) | |
RegisterSignal(parent, COMSIG_ATTACHMENT_UNWEILD, PROC_REF(try_unwield)) | |
RegisterSignal(parent, COMSIG_ATTACHMENT_WIELD, PROC_REF(try_wield)) | |
RegisterSignal(parent, COMSIG_ATTACHMENT_UNWIELD, PROC_REF(try_unwield)) |
@@ -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?
|
||
/obj/item/reagent_containers/glass/beaker/flamethrower_underbarrel | ||
name = "internal fuel tank" | ||
desc = "An internal fuel tank for a flamethrower. You shouldnt have been able to pull this out." |
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.
desc = "An internal fuel tank for a flamethrower. You shouldnt have been able to pull this out." | |
desc = "An internal fuel tank for a flamethrower. You shouldn't have been able to pull this out." |
|
||
/obj/item/gun/grenadelauncher/underbarrel | ||
name = "underbarrel riot grenade launcher" | ||
desc = "An even terribler thing. Just despicable really. You shouldnt be seeing this." |
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.
desc = "An even terribler thing. Just despicable really. You shouldnt be seeing this." | |
desc = "An even more terrible thing. Just despicable, really. You shouldn't be seeing this." |
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: