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

CSI: DeltaV (Gun Forensics)

Open BarryNorfolk opened this issue 8 months ago • 7 comments

giphy

About the PR

Expands out gun forensics so that security and/or the justice system can identify the murder weapon and who might have done it.

I've purposefully left the weapons touched in this PR to be just the revolver, as I would like direction and others to tell me which weapons and projectiles should be "Lodgeable" into a target.

Why / Balance

Largely the forensics for guns is lackluster and you have to base your detective skills on someone saying "I was shot by a python", hoping that you find only a single version of this gun to "Prove" that it was that specific gun. Here we can now start having things like firearm residue on people that have fired a gun, and match bullets to specific weapons.

Technical details

Bullets are stored inside a component via a hashset, the reason being to limit the entity spam when the eager surgeon removes over 8000 bullets from Hammy after a particularly bad round with nukies. If the rifling is different, or the round is different, then that constitutes a whole new "bullet" to be removed and looked at by the security team.

One annoyance here is that residues are not managed well and, although their name implies a more general use, they were always meant to just compound on one another. So in theory you could wash an item with all the soap and the residues would all stack on one another, which is irritating.

Because gunshot residue is now a new residue to be cleaned, soap now will always try and clean an entity, even if there is no "evidence" to clean off.

Media

Gunshot residue on things: image image

New projectile retrieval via a hemostat image

Which allows us to see the spent bullet, and the name specified in the prototype: image

and finally, the rifling indicator that is unique to this weapon: image

Requirements

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

Breaking changes

N/A

Changelog :cl:

  • add: Added gunshot residue to the weapon and user when firing a gun, cleanable with soap!
  • add: Bullets hitting a valid entity now have a chance to become lodged, retrievable with a hemostat.
  • add: Rifling forensics now allows users to match bullets to weapons.
  • tweak: You'll never be sure if an item has forensic information on it anymore, be sure to clean things thoroughly. -->

BarryNorfolk avatar Mar 31 '25 19:03 BarryNorfolk

RSI Diff Bot; head commit ed62ec7922b6a49746cccb6b2725aea2db334494 merging into ea3918a96312b9243a9b48d89b2a57f2e00fc699 This PR makes changes to 1 or more RSIs. Here is a summary of all changes:

Resources/Textures/_DV/Objects/Weapons/Guns/Ammunition/Casings/spent_bullet.rsi

State Old New Status
base Added

github-actions[bot] avatar Mar 31 '25 19:03 github-actions[bot]

need to wait for wounds for this so foreign bodies are better integrated

deltanedas avatar Apr 01 '25 01:04 deltanedas

Is this next week? :trollface:

BarryNorfolk avatar Apr 01 '25 04:04 BarryNorfolk

How do you see the rifling of a gun? Or are you intended to just compare bullets?

Toby222 avatar Apr 04 '25 18:04 Toby222

Yep, take gun and fire it into a target dummy. Get bullet from dummy and compare.

BarryNorfolk avatar Apr 05 '25 04:04 BarryNorfolk

Since the conditions for this (woundmed) are nextweek not gonna take this under direction review, but badger us again when it's ready for official look over

ThataKat avatar Apr 10 '25 02:04 ThataKat

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

github-actions[bot] avatar Apr 12 '25 14:04 github-actions[bot]

Gonna close this pending activity

Toby222 avatar Nov 28 '25 09:11 Toby222