Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion code/game/objects/items/weapons/ranged/ammo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,6 @@
armor_penetration = BULLET_PENETRATION
speed = 0.3
accuracy = 50 //Lower accuracy than an arrow.
reduce_crit_chance = 5 //Reduces crit chance
dismemberment = 0 //Can't dismember

/obj/projectile/bullet/reusable/bullet/on_hit(atom/target)
Expand All @@ -520,6 +519,18 @@
var/mob/living/carbon/target_mob = target
target_mob.safe_throw_at(throw_target, 1, 4)
target_mob.Knockdown(SHOVE_KNOCKDOWN_SOLID)

if(get_dist(get_turf(firer), get_turf(target)) <= 3)
var/mob/living/carbon/C = target
var/obj/item/bodypart/BP = C.get_bodypart(def_zone)
if(BP)
var/fracture_type = /datum/wound/fracture
switch(BP.body_zone)
if(BODY_ZONE_HEAD)
fracture_type = /datum/wound/fracture/head
if(BODY_ZONE_CHEST)
fracture_type = /datum/wound/fracture/chest
BP.add_wound(fracture_type)
..()

/obj/projectile/bullet/fragment
Expand Down
Loading