Skip to content

Commit

Permalink
Converting
Browse files Browse the repository at this point in the history
  • Loading branch information
InsaneRed committed Dec 11, 2023
1 parent 8092213 commit a385ccc
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions code/modules/mob/living/carbon/xenomorph/attack_alien.dm
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
extinguish_mob(M)
else
M.visible_message(SPAN_NOTICE("[M] caresses [src] with its claws."), \
SPAN_NOTICE("You caress [src] with your claws."), null, 5, CHAT_TYPE_XENO_FLUFF)
SPAN_NOTICE("We caress [src] with our claws."), null, 5, CHAT_TYPE_XENO_FLUFF)

if(INTENT_GRAB)
if(M == src || anchored || buckled)
return XENO_NO_DELAY_ACTION

if(check_shields(0, M.name)) // Blocking check
M.visible_message(SPAN_DANGER("[M]'s grab is blocked by [src]'s shield!"), \
SPAN_DANGER("Your grab was blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("Our grab was blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
playsound(loc, 'sound/weapons/alien_claw_block.ogg', 25, 1) //Feedback
return XENO_ATTACK_ACTION

Expand All @@ -44,26 +44,26 @@
if(M.can_not_harm(src))
M.animation_attack_on(src)
M.visible_message(SPAN_NOTICE("[M] nibbles [src]"), \
SPAN_XENONOTICE("You nibble [src]"))
SPAN_XENONOTICE("We nibble [src]"))
return XENO_ATTACK_ACTION

if(M.behavior_delegate && M.behavior_delegate.handle_slash(src))
return XENO_NO_DELAY_ACTION

if(stat == DEAD)
to_chat(M, SPAN_WARNING("[src] is dead, why would you want to touch it?"))
to_chat(M, SPAN_WARNING("[src] is dead, why would we want to touch it?"))
return XENO_NO_DELAY_ACTION

if(M.caste && !M.caste.is_intelligent)
if(HAS_TRAIT(src, TRAIT_NESTED) && (status_flags & XENO_HOST))
for(var/obj/item/alien_embryo/embryo in src)
if(HIVE_ALLIED_TO_HIVE(M.hivenumber, embryo.hivenumber))
to_chat(M, SPAN_WARNING("You should not harm this host! It has a sister inside."))
to_chat(M, SPAN_WARNING("We should not harm this host! It has a sister inside."))
return XENO_NO_DELAY_ACTION

if(check_shields(0, M.name)) // Blocking check
M.visible_message(SPAN_DANGER("[M]'s slash is blocked by [src]'s shield!"), \
SPAN_DANGER("Your slash is blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("Our slash is blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
playsound(loc, 'sound/weapons/alien_claw_block.ogg', 25, 1) //Feedback
return XENO_ATTACK_ACTION

Expand All @@ -87,7 +87,7 @@
playsound(M.loc, 'sound/weapons/alien_claw_swipe.ogg', 25, 1)
M.animation_attack_on(src)
M.visible_message(SPAN_DANGER("[M] lunges at [src]!"), \
SPAN_DANGER("You lunge at [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We lunge at [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
return XENO_ATTACK_ACTION

M.flick_attack_overlay(src, "slash")
Expand All @@ -111,7 +111,7 @@
if(prob(knock_chance))
playsound(loc, "alien_claw_metal", 25, 1)
M.visible_message(SPAN_DANGER("[M] smashes off [src]'s [wear_mask.name]!"), \
SPAN_DANGER("You smash off [src]'s [wear_mask.name]!"), null, 5)
SPAN_DANGER("We smash off [src]'s [wear_mask.name]!"), null, 5)
drop_inv_item_on_ground(wear_mask)
if(isyautja(src))
emote("roar")
Expand Down Expand Up @@ -189,7 +189,7 @@
M.animation_attack_on(src)
if(check_shields(0, M.name)) // Blocking check
M.visible_message(SPAN_DANGER("[M]'s tackle is blocked by [src]'s shield!"), \
SPAN_DANGER("Your tackle is blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("Our tackle is blocked by [src]'s shield!"), null, 5, CHAT_TYPE_XENO_COMBAT)
playsound(loc, 'sound/weapons/alien_claw_block.ogg', 25, 1) //Feedback
return XENO_ATTACK_ACTION
M.flick_attack_overlay(src, "disarm")
Expand All @@ -206,15 +206,15 @@
playsound(loc, 'sound/weapons/alien_knockdown.ogg', 25, 1)
apply_effect(rand(M.tacklestrength_min, M.tacklestrength_max), WEAKEN)
M.visible_message(SPAN_DANGER("[M] tackles down [src]!"), \
SPAN_DANGER("You tackle down [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We tackle down [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
playsound(loc, 'sound/weapons/alien_claw_swipe.ogg', 25, 1)
if (HAS_TRAIT(src, TRAIT_FLOORED))
M.visible_message(SPAN_DANGER("[M] tries to tackle [src], but they are already down!"), \
SPAN_DANGER("You try to tackle [src], but they are already down!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We try to tackle [src], but they are already down!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
M.visible_message(SPAN_DANGER("[M] tries to tackle [src]"), \
SPAN_DANGER("You try to tackle [src]"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We try to tackle [src]"), null, 5, CHAT_TYPE_XENO_COMBAT)
return XENO_ATTACK_ACTION


Expand All @@ -226,7 +226,7 @@
switch(M.a_intent)
if(INTENT_HELP)
M.visible_message(SPAN_NOTICE("[M] caresses [src] with its claws."), \
SPAN_NOTICE("You caress [src] with your claws."), null, 5, CHAT_TYPE_XENO_FLUFF)
SPAN_NOTICE("We caress [src] with Our claws."), null, 5, CHAT_TYPE_XENO_FLUFF)

if(INTENT_GRAB)
if(M == src || anchored || buckled)
Expand All @@ -240,7 +240,7 @@
var/mob/living/carbon/xenomorph/X = src
if(!X.banished)
M.visible_message(SPAN_WARNING("[M] nibbles [src]."), \
SPAN_WARNING("You nibble [src]."), null, 5, CHAT_TYPE_XENO_FLUFF)
SPAN_WARNING("We nibble [src]."), null, 5, CHAT_TYPE_XENO_FLUFF)
return XENO_ATTACK_ACTION

// copypasted from attack_alien.dm
Expand All @@ -257,12 +257,12 @@
playsound(M.loc, 'sound/weapons/alien_claw_swipe.ogg', 25, 1)
M.animation_attack_on(src)
M.visible_message(SPAN_DANGER("[M] lunges at [src]!"), \
SPAN_DANGER("You lunge at [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We lunge at [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
return XENO_ATTACK_ACTION

last_damage_data = create_cause_data(initial(M.name), M)
M.visible_message(SPAN_DANGER("[M] [M.slashes_verb] [src]!"), \
SPAN_DANGER("You [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
attack_log += text("\[[time_stamp()]\] <font color='orange'>was [M.slash_verb]ed by [key_name(M)]</font>")
M.attack_log += text("\[[time_stamp()]\] <font color='red'>[M.slash_verb]ed [key_name(src)]</font>")
log_attack("[key_name(M)] [M.slash_verb]ed [key_name(src)]")
Expand All @@ -277,14 +277,14 @@

playsound(loc, 'sound/weapons/alien_knockdown.ogg', 25, 1)
M.visible_message(SPAN_WARNING("[M] shoves [src]!"), \
SPAN_WARNING("You shove [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_WARNING("We shove [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
if(ismonkey(src))
apply_effect(8, WEAKEN)
return XENO_ATTACK_ACTION

/mob/living/attack_larva(mob/living/carbon/xenomorph/larva/M)
M.visible_message(SPAN_DANGER("[M] nudges its head against [src]."), \
SPAN_DANGER("You nudge your head against [src]."), null, 5, CHAT_TYPE_XENO_FLUFF)
SPAN_DANGER("We nudge our head against [src]."), null, 5, CHAT_TYPE_XENO_FLUFF)

/mob/living/proc/is_xeno_grabbable()
if(stat == DEAD)
Expand Down Expand Up @@ -324,11 +324,11 @@
health -= rand(M.melee_damage_lower, M.melee_damage_upper)
if(health <= 0)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"), \
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
deconstruct(FALSE)
else
M.visible_message(SPAN_DANGER("[M] [M.slashes_verb] [src]!"), \
SPAN_DANGER("You [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
return XENO_ATTACK_ACTION

//Breaking barricades
Expand All @@ -339,13 +339,13 @@
playsound(src, barricade_hitsound, 25, 1)
if(health <= 0)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"), \
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
M.visible_message(SPAN_DANGER("[M] [M.slashes_verb] [src]!"), \
SPAN_DANGER("You [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
if(is_wired)
M.visible_message(SPAN_DANGER("The barbed wire slices into [M]!"),
SPAN_DANGER("The barbed wire slices into you!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("The barbed wire slices into us!"), null, 5, CHAT_TYPE_XENO_COMBAT)
M.apply_damage(10)
return XENO_ATTACK_ACTION

Expand All @@ -354,19 +354,19 @@
if(barricade_hitsound)
playsound(src, barricade_hitsound, 25, 1)
if(health <= 0)
xeno.visible_message(SPAN_DANGER("[xeno] stabs \the [src] apart!"), SPAN_DANGER("You stab \the [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
xeno.visible_message(SPAN_DANGER("[xeno] stabs \the [src] apart!"), SPAN_DANGER("We stab \the [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
xeno.visible_message(SPAN_DANGER("[xeno] stabs \the [src] with its razor sharp tail!"), SPAN_DANGER("You stab \the [src] with your razor sharp tail!"), null, 5, CHAT_TYPE_XENO_COMBAT)
xeno.visible_message(SPAN_DANGER("[xeno] stabs \the [src] with its razor sharp tail!"), SPAN_DANGER("We stab \the [src] with our razor sharp tail!"), null, 5, CHAT_TYPE_XENO_COMBAT)
if(is_wired)
xeno.visible_message(SPAN_DANGER("The barbed wire slices into \the [xeno]'s tail!"), SPAN_DANGER("The barbed wire slices into your tail!"), null, 5, CHAT_TYPE_XENO_COMBAT)
xeno.visible_message(SPAN_DANGER("The barbed wire slices into \the [xeno]'s tail!"), SPAN_DANGER("The barbed wire slices into our tail!"), null, 5, CHAT_TYPE_XENO_COMBAT)
xeno.apply_damage(5)
return TAILSTAB_COOLDOWN_NORMAL

/obj/structure/surface/rack/attack_alien(mob/living/carbon/xenomorph/M)
M.animation_attack_on(src)
playsound(src, 'sound/effects/metalhit.ogg', 25, 1)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"), \
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
deconstruct(FALSE)
return XENO_ATTACK_ACTION

Expand All @@ -375,7 +375,7 @@
/obj/structure/attack_alien(mob/living/carbon/xenomorph/M)
// fuck off dont destroy my unslashables
if(unslashable || health <= 0)
to_chat(M, SPAN_WARNING("You stare at \the [src] cluelessly."))
to_chat(M, SPAN_WARNING("We stare at \the [src] cluelessly."))
return XENO_NO_DELAY_ACTION


Expand All @@ -387,7 +387,7 @@
M.animation_attack_on(src)
playsound(src, hit_bed_sound, 25, 1)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"),
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
unbuckle()
deconstruct(FALSE)
return XENO_ATTACK_ACTION
Expand Down Expand Up @@ -421,7 +421,7 @@
if(M.a_intent == INTENT_HELP)
playsound(loc, 'sound/effects/glassknock.ogg', 25, 1)
M.visible_message(SPAN_WARNING("[M] creepily taps on [src] with its huge claw."), \
SPAN_WARNING("You creepily tap on [src]."), \
SPAN_WARNING("We creepily tap on [src]."), \
SPAN_WARNING("You hear a glass tapping sound."), 5, CHAT_TYPE_XENO_COMBAT)
else
attack_generic(M, M.melee_damage_lower)
Expand All @@ -433,10 +433,10 @@
health -= rand(15, 30)
if(health <= 0)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"), \
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
else
M.visible_message(SPAN_DANGER("[M] [M.slashes_verb] [src]!"), \
SPAN_DANGER("You [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We [M.slash_verb] [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
playsound(loc, "alien_claw_metal", 25, 1)
if(prob(10))
new /obj/effect/decal/cleanable/blood/oil(loc)
Expand All @@ -447,7 +447,7 @@
/obj/structure/machinery/camera/attack_alien(mob/living/carbon/xenomorph/M)
if(status)
M.visible_message(SPAN_DANGER("[M] slices [src] apart!"), \
SPAN_DANGER("You slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We slice [src] apart!"), null, 5, CHAT_TYPE_XENO_COMBAT)
playsound(loc, "alien_claw_metal", 25, 1)
wires = 0 //wires all cut
light_disabled = 0
Expand All @@ -459,7 +459,7 @@
M.animation_attack_on(src)
playsound(loc, 'sound/effects/Glasshit.ogg', 25, 1)
M.visible_message(SPAN_DANGER("[M] smashes against [src]!"), \
SPAN_DANGER("You smash against [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We smash against [src]!"), null, 5, CHAT_TYPE_XENO_COMBAT)
var/damage = 25
if(M.mob_size >= MOB_SIZE_BIG)
damage = 40
Expand All @@ -472,8 +472,8 @@
playsound(loc, 'sound/effects/grillehit.ogg', 25, 1)
var/damage_dealt = 5
M.visible_message(SPAN_DANGER("[M] mangles [src]!"), \
SPAN_DANGER("You mangle [src]!"), \
SPAN_DANGER("You hear twisting metal!"), 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We mangle [src]!"), \
SPAN_DANGER("We hear twisting metal!"), 5, CHAT_TYPE_XENO_COMBAT)

if(shock(M, 70))
M.visible_message(SPAN_DANGER("ZAP! [M] spazzes wildly amongst a smell of burnt ozone."), \
Expand All @@ -490,8 +490,8 @@
M.animation_attack_on(src)
var/damage_dealt = 5
M.visible_message(SPAN_DANGER("[M] mangles [src]!"), \
SPAN_DANGER("You mangle [src]!"), \
SPAN_DANGER("You hear twisting metal!"), 5, CHAT_TYPE_XENO_COMBAT)
SPAN_DANGER("We mangle [src]!"), \
SPAN_DANGER("We hear twisting metal!"), 5, CHAT_TYPE_XENO_COMBAT)

health -= damage_dealt
healthcheck()
Expand Down

0 comments on commit a385ccc

Please sign in to comment.