-
-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> Adds the shoulder sling attachment to cargo for 500 credits. The shoulder sling can be attached any long arm gun with a weight class of bulky or up. The sling allows for the gun to be carried in your suit storage slot without an armor holster. Adds support for attachment overlays to render under the attached gun. Shoulder sling sprites by Moffball. ![image](https://github.com/user-attachments/assets/f6b9910f-b42b-4e38-87fa-a146061c05d5) ## Why It's Good For The Game <!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding. --> This gives players more options for fashion and accessorizing. You're no longer stuck with wearing a boring armor vest to hold your bulky weapons, and the other option of carrying your gun everywhere in your hands makes you look like a maniac. Balance wise this should be fine, since you can buy armor from the outpost anyways, which provides the same benefit with it's holster while being objectively better because well. It's armored. ## Changelog :cl: add: Shoulder slings to outpost cargo for 500 credits. /:cl: <!-- Both :cl:'s are required for the changelog to work! You can put your name to the right of the first :cl: if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
- Loading branch information
1 parent
acd54fd
commit 8dd6c6c
Showing
10 changed files
with
57 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/obj/item/attachment/sling | ||
name = "shoulder sling" | ||
desc = "A leather shoulder sling for longarms to allow for easy carrying on the shoulder without the need for traditional armor holsters." | ||
icon_state = "sling" | ||
|
||
attach_features_flags = ATTACH_REMOVABLE_HAND | ||
pixel_shift_x = 14 | ||
pixel_shift_y = 15 | ||
render_layer = BELOW_OBJ_LAYER | ||
render_plane = BELOW_OBJ_LAYER | ||
wield_delay = 0.2 SECONDS | ||
|
||
var/check_size = TRUE | ||
|
||
/obj/item/attachment/sling/apply_attachment(obj/item/gun/gun, mob/user) | ||
. = ..() | ||
if(initial(gun.w_class) < WEIGHT_CLASS_BULKY && check_size) | ||
to_chat(user,span_warning("The frame of the \the [gun] isn't large enough to support \the [src]!")) | ||
return FALSE | ||
if(!(gun.slot_flags | ITEM_SLOT_SUITSTORE)) | ||
gun.slot_flags = gun.slot_flags | ITEM_SLOT_SUITSTORE | ||
ADD_TRAIT(gun,TRAIT_FORCE_SUIT_STORAGE,REF(src)) | ||
|
||
/obj/item/attachment/sling/remove_attachment(obj/item/gun/gun, mob/user) | ||
. = ..() | ||
gun.slot_flags = initial(gun.slot_flags) | ||
REMOVE_TRAIT(gun,TRAIT_FORCE_SUIT_STORAGE, REF(src)) | ||
|
||
/obj/item/attachment/sling/examine(mob/user) | ||
. = ..() | ||
. += span_notice("The shoulder sling can only be attached to bulky or heavier guns.") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters