# (JSON help) making a single-shot anti-material rifle

**URL:** <https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546>\
**Category:** The Drawing Board\
**Created:** [September 29, 2019, 10:07pm UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546 "2019-09-29T22:07:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)\
**Post date:** [September 29, 2019, 10:07pm UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546/1 "2019-09-29T22:07:48Z")

</div>

so my new PR (which opened 3 days ago) will add 2 more anti-material rifle to the game. which is Mcmillan TAC-50 and Serbu BFG-50.

but the problem i got now is that BFG-50 is a single-shot anti-material rifle, which means it doesn’t have any magazine and instead reloaded after every shot.

how to make the BFG-50 work? any suggestion?

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [September 29, 2019, 10:24pm UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546/2 "2019-09-29T22:24:01Z")

</div>

You can look at existing examples of similar things without a magazine, such as many of the shotguns

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/8f1f0c51b768514e87fcf534dfb47815674899b6/data/json/items/gun/shot.json#L43>

  

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/8f1f0c51b768514e87fcf534dfb47815674899b6/data/json/items/gun/shot.json#L118>

  
Or crossbows  

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/8f1f0c51b768514e87fcf534dfb47815674899b6/data/json/items/crossbows.json#L370>

  
Or this existing 50 caliber weapon  

> <https://github.com/CleverRaven/Cataclysm-DDA/blob/8f1f0c51b768514e87fcf534dfb47815674899b6/data/json/items/gun/50.json#L70>

---

<div class="post-metadata">

**Author:** ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)\
**Post date:** [September 30, 2019, 1:39am UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546/3 "2019-09-30T01:39:49Z")

</div>

some of these examples have “reload” after “clip\_size”, which i was put into my BFG-50 but the C++ check failed because of “reload” error. so i delete it…

is it still going to work?

---

<div class="post-metadata">

**Author:** ![anothersimulacrum](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/anothersimulacrum/32/10770_2.png) [@anothersimulacrum](https://discourse.cataclysmdda.org/u/anothersimulacrum)\
**Post date:** [September 30, 2019, 3:48am UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546/4 "2019-09-30T03:48:54Z")

</div>

Only way to know is to test it

---

<div class="post-metadata">

**Author:** ![Ricky\_Van](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/ricky_van/32/4666_2.png) [@Ricky\_Van](https://discourse.cataclysmdda.org/u/Ricky_Van)\
**Post date:** [September 30, 2019, 10:26am UTC](https://discourse.cataclysmdda.org/t/json-help-making-a-single-shot-anti-material-rifle/21546/5 "2019-09-30T10:26:58Z")

</div>

just tested it out… it works well but the message during reload was weird ( you insert a cartridge into the BFG-50)
