Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resin hugger buff #158

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 18 additions & 12 deletions code/modules/mob/living/carbon/xenomorph/facehuggers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -776,27 +776,33 @@
activate_time = 1 SECONDS
jump_cooldown = 1 SECONDS
proximity_time = 0.25 SECONDS
var/have_resin = TRUE

/obj/item/clothing/mask/facehugger/combat/resin/Attach(mob/M, mob/user)
if(!combat_hugger_check_target(M))
return FALSE

visible_message(span_danger("[src] explodes into a mess of viscous resin!"))
playsound(loc, get_sfx("alien_resin_build"), 50, 1)
do_attack_animation(M)

for(var/turf/sticky_tile AS in RANGE_TURFS(1, loc))
if(!locate(/obj/effect/xenomorph/spray) in sticky_tile.contents)
new /obj/alien/resin/sticky/thin(sticky_tile)

for(var/mob/living/target in range(1, loc))
if(isxeno(target)) //Xenos aren't affected by sticky resin
continue

target.adjust_stagger(3 SECONDS)
target.add_slowdown(15)
target.apply_damage(100, STAMINA, BODY_ZONE_HEAD, BIO, updating_health = TRUE) //This should prevent sprinting
if(have_resin)
for(var/turf/sticky_tile AS in RANGE_TURFS(1, loc))
if(!locate(/obj/effect/xenomorph/spray) in sticky_tile.contents)
new /obj/alien/resin/sticky/thin(sticky_tile)
for(var/mob/living/target in range(1, loc))
if(isxeno(target)) //Xenos aren't affected by sticky resin
continue
target.adjust_stagger(3 SECONDS)
target.add_slowdown(15)
target.apply_damage(100, STAMINA, BODY_ZONE_HEAD, BIO, updating_health = TRUE) //This should prevent sprinting
have_resin = FALSE
else
var/mob/living/victim = M
victim.apply_damage(80, STAMINA, BODY_ZONE_HEAD, BIO, updating_health = TRUE) //This should prevent sprinting

kill_hugger(0.5 SECONDS)
leaping = FALSE
go_idle() //We're a bit slow on the recovery

return TRUE

Expand Down
Loading