Skip to content

Commit

Permalink
gas
Browse files Browse the repository at this point in the history
  • Loading branch information
ihatethisengine committed Dec 6, 2023
1 parent 236a443 commit 68d5009
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -787,10 +787,21 @@
spitting = FALSE

SEND_SIGNAL(xeno, COMSIG_XENO_POST_SPIT)

if(xeno.ammo.spit_windup)
RegisterSignal(proj, COMSIG_BULLET_PRE_HANDLE_TURF, PROC_REF(xeno_spit_check_turf))
apply_cooldown()
return ..()

/datum/action/xeno_action/activable/xeno_spit/proc/xeno_spit_check_turf(obj/projectile/projectile, turf/turf)
SIGNAL_HANDLER
if(!istype(turf, /turf/closed/wall/resin/membrane) || !istype(projectile.ammo, /datum/ammo/xeno/boiler_gas))
return
var/turf/closed/wall/resin/membrane/membrane = turf
xeno_announcement(SPAN_XENOANNOUNCE("TEST"), membrane.hivenumber, XENO_GENERAL_ANNOUNCE)
if(membrane.can_bombard(projectile.firer))
xeno_announcement(SPAN_XENOANNOUNCE("TEST4"), membrane.hivenumber, XENO_GENERAL_ANNOUNCE)
return COMPONENT_BULLET_PASS_THROUGH

/datum/action/xeno_action/activable/bombard/use_ability(atom/A)
var/mob/living/carbon/xenomorph/X = owner

Expand Down

0 comments on commit 68d5009

Please sign in to comment.