# PKILL-4 bug

**URL:** https://discourse.cataclysmdda.org/t/pkill-4-bug/2089
**Category:** The Garage
**Created:** [July 3, 2013, 6:25pm UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089 "2013-07-03T18:25:38Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TheGrifter](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@TheGrifter](https://discourse.cataclysmdda.org/u/TheGrifter)
#### Post date: [July 3, 2013, 6:25pm UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/1 "2013-07-03T18:25:38Z")

</div>

So, I’m trying to make some high powered painkillers for Elvis, but when I go to put them in the game, regardless of “tool”, it just treats all PKILL\_4 drugs as heroin, and says “You Shoot Up” even when they’re pills. Why?

---

<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: [July 3, 2013, 7:21pm UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/2 "2013-07-03T19:21:52Z")

</div>

Yea, it assumes that anything with PKILL\_4 is heroin, need to clean out that whole section and make the behavior properly configurable from the JSON, probably just by moving the PKILL strings from use\_action to flags, and using just one PKILL use\_action. Then you’ll be able to mix and match different painkiller effects (e.g. currently PKILL\_3 gives you a large hit of DI\_PKILL2 and a small hit of DI\_PKILL3, PKILL\_4 gives you a large hit of both).

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [July 5, 2013, 2:46am UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/3 "2013-07-05T02:46:14Z")

</div>

Is Json even C? Or C++?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [July 5, 2013, 6:29am UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/4 "2013-07-05T06:29:00Z")

</div>

D-D-d double post!

If you want to get it to have a different printf make the pkill\_X a floating interger and make it 3.5 to make your own.

Might require some copy pasting but it should work with my 5 minutes of reading a book on C.

---

<div class="post-metadata">

### Author: ![darth\_servo](https://avatars.discourse-cdn.com/v4/letter/d/e79b87/32.png) [@darth\_servo](https://discourse.cataclysmdda.org/u/darth_servo)
#### Post date: [July 5, 2013, 8:12pm UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/5 "2013-07-05T20:12:13Z")

</div>

> [@gtaguy](#):
>
> Is Json even C? Or C++?

JSON = JavaScript Object Notation

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/1X/21b5d044e8473b25d0bf905d60477e25f6fbe0cf.png) [@system](https://discourse.cataclysmdda.org/u/system)
#### Post date: [July 5, 2013, 10:58pm UTC](https://discourse.cataclysmdda.org/t/pkill-4-bug/2089/6 "2013-07-05T22:58:26Z")

</div>

[size=14pt]Java![/size]  
My mortal nemesis.
