Delta-v icon indicating copy to clipboard operation
Delta-v copied to clipboard

Projectile foreign bodies

Open sowelipililimute opened this issue 7 months ago • 6 comments

About the PR

  • projectiles can now spawn foreign bodies stuck in someone

  • atm this is limited to guns, which can get a bullet, incendiary bullet, or an uranium bullet someone stuck in someone

  • embedded bullets take 5 minutes before they start doing effects

  • BaseBullet embeds a 0.05/s poison at 50% base chance

  • BaseBulletAP embeds the same as above but w/ 75% base chance

  • BaseBulletPractice embeds at 0% base chance

  • BaseBulletIncendiary embeds a 0.05/s burn at 50% base chance

  • BaseBulletUranium embeds a 0.05/s radiation at 50% base chance

  • the chance is modified by the Piercing of worn armour

Why / Balance

  • it came to us in a dream
  • surgeons could use more stuff to do after fighting happens
  • make incendiary and uranium rounds even more evil

Technical details

  • ProjectileForeignBodyComponent marks a projectile as spawning a foreign body on impact with the ProjectileForeignBodyAttemptEvent event
  • ForeignBodyActivelyEmbeddedComponent keeps track of this foreign body being actively embedded in something and when it should start taking effects
  • ForeignBodyEffectsComponent deals those effects
  • two containers for foreign bodies: BodyForeignBodyContainerComponent/BodyPartForeignBodyContainerComponent that deal with foreign bodies in the context of a complex Body, whilst SimpleForeignBodyContainerComponent is for simple mobs
    • these respond to ProjectileForeignBodyAttemptEvent and spawn the embedded body in the appropriate place
  • new surgery elements SurgeryRemoveForeignBodyStepComponent and SurgeryForeignBodyConditionComponent for removing foreign bodies surgically

Media

grafik grafik grafik

Requirements

  • [x] I have tested all added content and changes.
  • [x] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl:

  • add: Bullets can now get stuck in you, and will start dealing trace amounts of damage after a few minutes. Surgical intervention is required to remove them.

sowelipililimute avatar Apr 28 '25 20:04 sowelipililimute

woundmed 67.5% complete blocked by that

deltanedas avatar Apr 28 '25 20:04 deltanedas

I feel like AP rounds should have a lower chance to embed the less armored a person is. After all they are designed to punch through armor and keep going. But if it punches through a hardsuit first it should have higher embed chance

Avalon-Proto avatar Apr 28 '25 20:04 Avalon-Proto

direction has no plans for the forseeable future to block delta-v content based on the development efforts of another codebase which we have historically had difficulties incorporating into ours in a beneficial manner. we will cross the woundmed bridge when we get to it.

sowelipililimute avatar Apr 28 '25 21:04 sowelipililimute

it will be reverted or need great reworking to work with wounds instead of a bespoke system

deltanedas avatar Apr 28 '25 21:04 deltanedas

it is not guaranteed that direction will give goobstation woundmed the greenlight

sowelipililimute avatar Apr 28 '25 21:04 sowelipililimute

Would it make more sense to use a retractor or scalpel over a bonesaw? From all my experience with bullet wounds from popular media, typically you dont need to saw through bone to get a bullet out, just an incision (which had been done), something to hold it open, and forceps to grab the bullet.

ShepardToTheStars avatar Apr 28 '25 22:04 ShepardToTheStars

This pull request has conflicts, please resolve those before we can evaluate the pull request.

github-actions[bot] avatar Sep 12 '25 09:09 github-actions[bot]

I don't think this is still being worked on. notify me if it is. closing for now.

Stop-Signs avatar Oct 21 '25 02:10 Stop-Signs