Skip to content

Commit

Permalink
TGS Test Merge (#5552)
Browse files Browse the repository at this point in the history
  • Loading branch information
cm13-github committed Feb 14, 2024
2 parents feb1c77 + 07c6dc3 commit 03d00dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/datums/ammo/bullet/rifle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@
shell_speed = AMMO_SPEED_TIER_6

/datum/ammo/bullet/rifle/m4ra/impact/on_hit_mob(mob/M, obj/projectile/P)
knockback(M, P, 32) // Can knockback basically at max range
knockback(M, P, 32) // Can knockback basically at max range max range is 24 tiles...

/datum/ammo/bullet/rifle/m4ra/impact/knockback_effects(mob/living/living_mob, obj/projectile/fired_projectile)
if(iscarbonsizexeno(living_mob))
var/mob/living/carbon/xenomorph/target = living_mob
to_chat(target, SPAN_XENODANGER("You are shaken and slowed by the sudden impact!"))
target.KnockDown(0.5) // purely for visual effect, noone actually cares
target.Stun(0.5)
target.apply_effect(2, SUPERSLOW)
target.apply_effect(5, SLOW)
target.KnockDown(0.5-fired_projectile.distance_travelled/100) // purely for visual effect, noone actually cares
target.Stun(0.5-fired_projectile.distance_travelled/100)
target.apply_effect(2-fired_projectile.distance_travelled/20, SUPERSLOW)
target.apply_effect(5-fired_projectile.distance_travelled/10, SLOW)
else
if(!isyautja(living_mob)) //Not predators.
living_mob.apply_effect(1, SUPERSLOW)
Expand Down

0 comments on commit 03d00dc

Please sign in to comment.