# Rifle / shotgun straping

**URL:** <https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780>\
**Category:** The Drawing Board\
**Created:** [November 6, 2014, 2:35pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780 "2014-11-06T14:35:34Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcoVGnG](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@MarcoVGnG](https://discourse.cataclysmdda.org/u/MarcoVGnG)\
**Post date:** [November 6, 2014, 2:35pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/1 "2014-11-06T14:35:34Z")

</div>

hello my favorite Dev / community 🙂

i’ve a little suggestion concerning firearm:  
simply add strap to rifle and shotgun (long string / short rope and/or leather belt for example), this may allow to wear weapon like cloth on the shoulder (encumbrance on torse of course).  
in this way, we can keep hand warm in the pocket or take in hand too bulky item and preserve inventory volume.

i apologise for my “medium” english 😕

thanks for reading 🙂

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [November 6, 2014, 10:44pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/2 "2014-11-06T22:44:38Z")

</div>

This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

---

<div class="post-metadata">

**Author:** ![jokermatt999](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Post date:** [November 6, 2014, 11:59pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/3 "2014-11-06T23:59:24Z")

</div>

> [@Kevin Granade](#):
>
> This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

So should I just hold off on the hydration pack pull request I was working on til that goes through? I’ve been having some issues with the code anyway.

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [November 7, 2014, 6:13am UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/4 "2014-11-07T06:13:23Z")

</div>

> [@jokermatt999](#):
>
> [quote=“Kevin Granade, post:2, topic:7780”]This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

So should I just hold off on the hydration pack pull request I was working on til that goes through? I’ve been having some issues with the code anyway.[/quote]

Depends, ‘something we want to do’ does not mean it is almost done or will be done in foreseeable future.

---

<div class="post-metadata">

**Author:** ![EkarusRyndren](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ekarusryndren/32/80_2.png) [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Post date:** [November 7, 2014, 7:14am UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/5 "2014-11-07T07:14:33Z")

</div>

> [@Kevin Granade](#):
>
> This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

Stupid question, why not use the existing Holister system?

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [November 7, 2014, 7:23am UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/6 "2014-11-07T07:23:13Z")

</div>

> [@EkarusRyndren](#):
>
> [quote=“Kevin Granade, post:2, topic:7780”]This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

Stupid question, why not use the existing Holister system?[/quote]

Would work strange.

You would wear sling item, attach SMG onto it, then you would detach it to hold and shoot from it, then, you would attach it to sling again. In between, you are wearing ‘empty’ sling. Bit silly.

---

<div class="post-metadata">

**Author:** ![EkarusRyndren](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ekarusryndren/32/80_2.png) [@EkarusRyndren](https://discourse.cataclysmdda.org/u/EkarusRyndren)\
**Post date:** [November 7, 2014, 9:21am UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/7 "2014-11-07T09:21:44Z")

</div>

> [@Robik](#):
>
> [quote=“EkarusRyndren, post:5, topic:7780”][quote=“Kevin Granade, post:2, topic:7780”]This is something we want to do, but we need to clean up some legacy stuff in the item handling code to make it work.

Stupid question, why not use the existing Holister system?[/quote]

Would work strange.

You would wear sling item, attach SMG onto it, then you would detach it to hold and shoot from it, then, you would attach it to sling again. In between, you are wearing ‘empty’ sling. Bit silly.[/quote]

…You guys don’t activate hollisters and crap while their still on you?

---

<div class="post-metadata">

**Author:** ![Robik](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/robik/32/1349_2.png) [@Robik](https://discourse.cataclysmdda.org/u/Robik)\
**Post date:** [November 7, 2014, 9:41am UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/8 "2014-11-07T09:41:05Z")

</div>

We do, but while grabbing pistol from holster results in pistol in hand and empty holster - OK, grabbing SMG would result in SMG without sling in hands and empty sling over your shoulder, which is silly.

---

<div class="post-metadata">

**Author:** ![FunsizeNinja123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/funsizeninja123/32/118_2.png) [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Post date:** [November 7, 2014, 2:01pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/9 "2014-11-07T14:01:43Z")

</div>

In my small experience shooting guns, a sling helps when you’re shooting. So taking it off of the sling is silly when it could give you a little edge in aiming.

---

<div class="post-metadata">

**Author:** ![Datanazush](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/datanazush/32/1055_2.png) [@Datanazush](https://discourse.cataclysmdda.org/u/Datanazush)\
**Post date:** [November 7, 2014, 2:46pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/10 "2014-11-07T14:46:36Z")

</div>

> [@FunsizeNinja123](#):
>
> In my small experience shooting guns, a sling helps when you’re shooting. So taking it off of the sling is silly when it could give you a little edge in aiming.

It’s a quite handy thing when you need to switch weapons in an emergency, your gun jams or runs dry and there’s no safe area to solve this problem? Drop your rifle, grab your pistol, and keep shooting. The sling means you won’t lose it.

---

<div class="post-metadata">

**Author:** ![FunsizeNinja123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/funsizeninja123/32/118_2.png) [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Post date:** [November 7, 2014, 2:51pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/11 "2014-11-07T14:51:47Z")

</div>

> [@Datanazush](#):
>
> Drop your rifle, grab your pistol, and keep shooting. The sling means you won’t lose it.

Oh yeah that too.

---

<div class="post-metadata">

**Author:** ![TheFlame52](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/theflame52/32/247_2.png) [@TheFlame52](https://discourse.cataclysmdda.org/u/TheFlame52)\
**Post date:** [November 7, 2014, 3:38pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/12 "2014-11-07T15:38:04Z")

</div>

What about a gun mod, a strap, that lets you ‘wear’ the gun like clothing?

---

<div class="post-metadata">

**Author:** ![FunsizeNinja123](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/funsizeninja123/32/118_2.png) [@FunsizeNinja123](https://discourse.cataclysmdda.org/u/FunsizeNinja123)\
**Post date:** [November 7, 2014, 3:40pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/13 "2014-11-07T15:40:15Z")

</div>

> [@TheFlame52](#):
>
> What about a gun mod, a strap, that lets you ‘wear’ the gun like clothing?

---

<div class="post-metadata">

**Author:** ![jokermatt999](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Post date:** [November 7, 2014, 3:49pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/14 "2014-11-07T15:49:47Z")

</div>

That would be the proper way to do it, but as the code works now, I believe it’d require casting every applicable gun as a tool\_armor instead (think any wearable you can activate), and maybe even having to transform it back into a firearm to shoot it. If it didn’t require so much coding and restructuring to do it sensibly, I would have already pr’ed it myself.

---

<div class="post-metadata">

**Author:** ![kevin.granade](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/kevin.granade/32/1316_2.png) [@kevin.granade](https://discourse.cataclysmdda.org/u/kevin.granade)\
**Post date:** [November 7, 2014, 5:26pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/15 "2014-11-07T17:26:52Z")

</div>

By the way, the solution (which will take a while, but be worth doing) is to make itypes “composable”, that is an itype defines a way you can interact with an item, e.g. firing it, wearing it, activating it. Then guns with a sling would simply have a “wearable” itype attached to them.

This does require overhauling every item definition in the game though, so not something I’m looking forward to 😛

---

<div class="post-metadata">

**Author:** ![TheFlame52](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/theflame52/32/247_2.png) [@TheFlame52](https://discourse.cataclysmdda.org/u/TheFlame52)\
**Post date:** [November 7, 2014, 5:31pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/16 "2014-11-07T17:31:42Z")

</div>

[quote=“Kevin Granade, post:15, topic:7780”]By the way, the solution (which will take a while, but be worth doing) is to make itypes “composable”, that is an itype defines a way you can interact with an item, e.g. firing it, wearing it, activating it. Then guns with a sling would simply have a “wearable” itype attached to them.

This does require overhauling every item definition in the game though, so not something I’m looking forward to :P[/quote]  
Sounds like something we should put a Kickstarter money reward for.

---

<div class="post-metadata">

**Author:** ![MarcoVGnG](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@MarcoVGnG](https://discourse.cataclysmdda.org/u/MarcoVGnG)\
**Post date:** [November 7, 2014, 5:49pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/17 "2014-11-07T17:49:39Z")

</div>

thanks a lot for reading and answer.  
i ll keep praying at strange temple to see some straping mechanic in a future day. 🙂

---

<div class="post-metadata">

**Author:** ![jokermatt999](https://avatars.discourse-cdn.com/v4/letter/j/e9bcb4/32.png) [@jokermatt999](https://discourse.cataclysmdda.org/u/jokermatt999)\
**Post date:** [November 7, 2014, 8:23pm UTC](https://discourse.cataclysmdda.org/t/rifle-shotgun-straping/7780/18 "2014-11-07T20:23:06Z")

</div>

[quote=“Kevin Granade, post:15, topic:7780”]By the way, the solution (which will take a while, but be worth doing) is to make itypes “composable”, that is an itype defines a way you can interact with an item, e.g. firing it, wearing it, activating it. Then guns with a sling would simply have a “wearable” itype attached to them.

This does require overhauling every item definition in the game though, so not something I’m looking forward to :P[/quote]

I’m definitely rusty in terms of coding, so I’m more than happy to contribute by doing the grunt work in cases like this. Once you’ve got the pull request, just point me to it, and I’ll get to json’ing like it’s Heavy Rain.
