# Frying pans MISFIRING?! (0.4-git)

**URL:** <https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187>\
**Category:** The Garage\
**Created:** [May 12, 2013, 7:27am UTC](https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187 "2013-05-12T07:27:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reservoir](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/reservoir/32/28_2.png) [@Reservoir](https://discourse.cataclysmdda.org/u/Reservoir)\
**Post date:** [May 12, 2013, 7:27am UTC](https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187/1 "2013-05-12T07:27:27Z")

</div>

So, it was a great day in town, a new game, had an useless NPC companion that had loads of shotgun ammo (0.4-git) and I found myself hitting a Z in the middle of the street with a pan. I was attacking and watching the messages when this happened  
 ![](http://i1306.photobucket.com/albums/s565/ReservoirHead/Captura_zpsec1c6233.png)  
My frying pan misfired. MISFIRED. How.

A pic of my inventory to show that I dont have a firearm

![](http://i1306.photobucket.com/albums/s565/ReservoirHead/Captura2_zpsfdccf179.png)

---

<div class="post-metadata">

**Author:** ![Mrnocamera](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/mrnocamera/32/61_2.png) [@Mrnocamera](https://discourse.cataclysmdda.org/u/Mrnocamera)\
**Post date:** [May 12, 2013, 7:34am UTC](https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187/2 "2013-05-12T07:34:02Z")

</div>

I have no idea what happened, but on that topic, there should be a version of a misfire for melee weapons, like “You fumble with your weapon” or something like that.

---

<div class="post-metadata">

**Author:** ![ejseto](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@ejseto](https://discourse.cataclysmdda.org/u/ejseto)\
**Post date:** [May 12, 2013, 7:48am UTC](https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187/3 "2013-05-12T07:48:43Z")

</div>

The message always says “Your weapon” but it plays whenever ANYONE misfires their weapon. Adding a conditional “if (!p.is\_npc())” to the misfire code in ranged.cpp should fix it, I think.

---

<div class="post-metadata">

**Author:** ![i2amroy](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/i2amroy/32/909_2.png) [@i2amroy](https://discourse.cataclysmdda.org/u/i2amroy)\
**Post date:** [May 12, 2013, 8:02am UTC](https://discourse.cataclysmdda.org/t/frying-pans-misfiring-0-4-git/1187/4 "2013-05-12T08:02:21Z")

</div>

> [@Mrnocamera](#):
>
> I have no idea what happened, but on that topic, there should be a version of a misfire for melee weapons, like “You fumble with your weapon” or something like that.

With the recent dodge functions added in monsters now have a chance of missing. Hopefully later on we’ll eventually be able to broaden that out to so that a single function can be used to determine miss chances for players, monsters, and NPC’s.

And yeah, this problem is caused by the fact that NPC’s misfiring will trigger the same message as you misfiring right now.
