Ports the radiation subsystem and cleans up damage flags. (#15715)

This commit is contained in:
Matt Atlas
2023-02-07 13:22:47 +01:00
committed by GitHub
parent 5527fc0810
commit 31c73ead85
198 changed files with 981 additions and 649 deletions

View File

@@ -39,15 +39,15 @@
if("feet")
zone = pick(BP_L_FOOT, BP_R_FOOT)
if(!H.shoes)
H.apply_effect(400 / (target.mob_size * (target.mob_size * 0.25)), PAIN)//Halloss instead of instant knockdown
H.apply_effect(400 / (target.mob_size * (target.mob_size * 0.25)), DAMAGE_PAIN)//Halloss instead of instant knockdown
//Mainly for the benefit of giant monsters like vaurca breeders
if(BP_L_HAND, BP_R_HAND)
zone = type
if(!H.gloves)
H.apply_effect(250 / (target.mob_size * (target.mob_size * 0.25)), PAIN)
H.apply_effect(250 / (target.mob_size * (target.mob_size * 0.25)), DAMAGE_PAIN)
if(!(types & TYPE_SYNTHETIC))
target.apply_damage(rand(6 , 14), PAIN, def_zone = zone, used_weapon = src)
target.apply_damage(rand(1 , 3), BRUTE, def_zone = zone, used_weapon = src)
target.apply_damage(rand(6 , 14), DAMAGE_PAIN, def_zone = zone, used_weapon = src)
target.apply_damage(rand(1 , 3), DAMAGE_BRUTE, def_zone = zone, used_weapon = src)
playsound(target.loc, 'sound/effects/snap.ogg', 50, 1)
layer = MOB_LAYER - 0.2