Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"The Stun META discussion Thread"
#31
After looking through the code, I can confirm parts of this. As it currently operates (based on stamina_stuns.dm), weapons that apply stun, like stun batons, will deduct stamina on hit and apply Disorient debuffs and similar. If the target hits 0 stamina or has negative stamina, they will be knocked to the ground and stunned for a variable amount of time, based on the weapon and the buffs/armor that the target has. Drugs that increase stamina regeneration can counter this by having you regenerate stamina between hits and by directly reducing how long the disorient debuff you take from getting hit and the resulting stun length from hitting zero stamina is.

If I understand part of the code correctly, having disorient resistance also directly decreases the stamina damage taken from stunning weapons:
Code:
var/disorient_mult = 1 - (protection/100)
    var/stamdmg_mult = lerp(disorient_mult, 1, 0.25) // apply 3/4 the reduction effect to the stamina damage

    disorient *= disorient_mult
    stamina_damage *= stamdmg_mult

    if (remove_stamina_below_zero)
        src.remove_stamina(stamina_damage)
    else if (src.stamina > 0)
        src.remove_stamina(min(stamina_damage, src.stamina))
(note that this is part of a much bigger block of code - this is just the most pertinent part)

This would mean that drugs and armor that provide disorient resistance also directly reduce stamina damage from tasers and batons - which tracks with the common knowledge that being on meth increases the amount of baton swings needed to knock you down (given meth provides a baseline 50% reduction in disorient duration, or a 33.25% reduction in stamina damage taken).
Reply


Messages In This Thread
"The Stun META discussion Thread" - by Kotlol - 02-14-2023, 01:02 PM
RE: "The Stun META discussion Thread" - by Kotlol - 02-15-2023, 05:09 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-15-2023, 10:30 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-16-2023, 03:25 AM
RE: "The Stun META discussion Thread" - by Mouse - 02-21-2023, 10:06 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-22-2023, 06:22 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-22-2023, 07:21 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-22-2023, 10:34 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-22-2023, 11:10 AM
RE: "The Stun META discussion Thread" - by RelentlessGarbage - 02-22-2023, 12:13 PM
RE: "The Stun META discussion Thread" - by Kotlol - 02-22-2023, 01:07 PM
RE: "The Stun META discussion Thread" - by Kotlol - 02-24-2023, 04:49 AM
RE: "The Stun META discussion Thread" - by Kotlol - 02-24-2023, 06:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)