From f85c31fc924cc1a140729de67284f338ec175892 Mon Sep 17 00:00:00 2001 From: cuberound <122645057+cuberound@users.noreply.github.com> Date: Thu, 15 Feb 2024 10:37:16 +0100 Subject: [PATCH] reduces effects of impact ammo with range, proof of concept numbers can be adjusted (#5552) # About the pull request attempt to adress the issue with offscreen stun rather then removing scope . NUMBERS ARE UP FOR DEBATE, they are just placeholders # Explain why it's good for the game offscreen stun sucks shure, but that is not a reason to limit gameplay options, high impact should have lower effect with higer range just like it does with revolvers (a bit diferent aproach in this PR rather then having suden drop in effect it is gradual) also it has almoust no effect on close range spec reducing the effects by about 1/10 for stuff on screen # Testing Photographs and Procedure
Screenshots & Videos Put screenshots and videos here with an empty line between the screenshots and the `
` tags.
# Changelog :cl: balance: m4ra ammo looses about 1/5 of initial effect duration per 10 tiles traveled /:cl: --------- Co-authored-by: vincibrv --- code/datums/ammo/bullet/rifle.dm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/code/datums/ammo/bullet/rifle.dm b/code/datums/ammo/bullet/rifle.dm index 0be6f1db8ff4..ab30599eeb12 100644 --- a/code/datums/ammo/bullet/rifle.dm +++ b/code/datums/ammo/bullet/rifle.dm @@ -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)