Reworks the syndicate chainsaw (#18252)

* Reworks the syndicate chainsaw

* fixes merge conflict

* not work on dead people

* makes stun absorption removal respect stamina

* requested changes
This commit is contained in:
Qwertytoforty
2022-07-11 22:15:47 +01:00
committed by GitHub
parent f028d4a9bf
commit 69a9206b78
6 changed files with 58 additions and 6 deletions
+10 -2
View File
@@ -625,13 +625,21 @@
if(!isliving(target))
return
else
target.Weaken(8 SECONDS)
..()
user.apply_status_effect(STATUS_EFFECT_CHAINSAW_SLAYING)
if(..())
target.KnockDown(8 SECONDS)
return
else
playsound(loc, "swing_hit", 50, 1, -1)
return ..()
/obj/item/twohanded/chainsaw/hit_reaction(mob/living/carbon/human/owner, atom/movable/hitby, attack_text = "the attack", final_block_chance = 0, damage = 0, attack_type = MELEE_ATTACK)
if(attack_type == PROJECTILE_ATTACK)
final_block_chance = 0 //It's a chainsaw, you try blocking bullets with it
else if(owner.has_status_effect(STATUS_EFFECT_CHAINSAW_SLAYING))
final_block_chance = 80 //Need to be ready to ruuuummbllleeee
return ..()
/obj/item/twohanded/chainsaw/wield() //you can't disarm an active chainsaw, you crazy person.
. = ..()
if(.)