Skip to content

shrapnel for improvised explosives: 3rd times the charm

Rob Nelson requested to merge pull/13080/IED3 into Bleeding-Edge

Created by: ultraplen

The 3rd PR for this, this time it seems to work. I literally could not unfuck my last 2 PRs. 1st pr : #12961

@9600bauds @PJB3005 and @Exxion had open reviews on the first PR.

I accidentaly some sharpness flags but I manually readded them, should be fine.

Copy paste: In reponse to #12398

Allows players to add any w_class_tiny item to an improvised explosive. The items will then launch out in random directions when it explodes. Some items, not necessarily tiny, will disintegrate into shrapnel which deals spicy damage. The code makes it semi simple to add custom types of shrapnel for certain items in the future.

The numbers for those who do not want to read through the code:

  • 8 item slots in each explosive. (Previously 10) Shards take up 2 slots (Previously 1)

  • Shards disintegrate into 3 pieces of small shrapnel (Previously 5 normal sized)

  • Standard shrapnel deals 45 damage and small shrapnel 25. Shrapnel is child of projectile/bullet (Previously 55 damage for standard shrapnel)

  • Shrapnel targets a random bodypart

  • Plasma shards produce purple TOX damage (35) shrapnel

  • Kitchen utensils produce 1 standard shrapnel and take up 2 slots each

  • Individual pieces of shrapnel have a random range limit of 6 to 10 squares

  • Bullet casings fire their projectile if its not already spent.

  • All spent bullet casings are small shrapnel.

As it is now this is fairly balanced tbh. Its a buff to the IED for sure but it was trash earlier.

Clip of some crayons and 5 shards: https://puu.sh/sVJ5o.mp4

🆑

  • rscadd: Shrapnel, in the form of tiny items and shards, can be added to improvised explosives.

Merge request reports