-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
474 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
117 changes: 117 additions & 0 deletions
117
code/modules/mob/living/carbon/xenomorph/abilities/palatine/palatine_abilities.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
GLOBAL_LIST_INIT(resin_build_order_palatine, list( | ||
/datum/resin_construction/resin_turf/wall/thick, | ||
/datum/resin_construction/resin_turf/wall/reflective/royal, | ||
/datum/resin_construction/resin_turf/membrane/thick, | ||
/datum/resin_construction/resin_obj/door/thick, | ||
/datum/resin_construction/resin_obj/acid_pillar/palatine, | ||
/datum/resin_construction/resin_obj/sticky_resin, | ||
/datum/resin_construction/resin_obj/resin_spike, | ||
/datum/resin_construction/resin_obj/movable/thick_wall, | ||
/datum/resin_construction/resin_obj/movable/thick_membrane, | ||
/datum/resin_construction/resin_obj/resin_node | ||
// /datum/resin_construction/resin_obj/movable/reflective_royal | ||
)) | ||
|
||
/datum/resin_construction/resin_obj/acid_pillar/palatine | ||
name = "Royal Acid Pillar" | ||
desc = "A tall, green pillar that is capable of firing at multiple targets at once. Fires strong acid." | ||
construction_name = "acid pillar" | ||
|
||
build_overlay_icon = /obj/effect/warning/alien | ||
|
||
build_path = /obj/effect/alien/resin/acid_pillar/palatine | ||
build_time = 6 SECONDS | ||
|
||
/obj/effect/alien/resin/acid_pillar/palatine | ||
name = "royal acid pillar" | ||
desc = "An enhanced resin pillar that is oozing with acid." | ||
|
||
health = (HEALTH_RESIN_XENO_ACID_PILLAR * 2) | ||
should_track_build = TRUE | ||
anchored = TRUE | ||
|
||
acid_type = /obj/effect/xenomorph/spray/strong/no_stun | ||
range = 6 | ||
|
||
/obj/effect/alien/resin/acid_pillar/palatine/Initialize(mapload, hive) | ||
. = ..() | ||
add_filter("royal_glow", priority = 1, params = list("type" = "outline", "color" = BLOOD_COLOR_XENO_ROYAL, "size" = 1)) | ||
|
||
/datum/resin_construction/resin_turf/wall/reflective/royal | ||
name = "Royal Reflective Resin Wall" | ||
desc = "A reflective resin wall, able to reflect any and all projectiles back to the shooter." | ||
construction_name = "reflective resin wall" | ||
cost = XENO_RESIN_WALL_REFLECT_COST | ||
max_per_xeno = 10 | ||
|
||
build_path = /turf/closed/wall/resin/reflective/royal | ||
|
||
/turf/closed/wall/resin/reflective/royal | ||
name = "royal reflective membrane" | ||
damage_cap = HEALTH_WALL_XENO_MEMBRANE_THICK | ||
|
||
/datum/action/xeno_action/onclick/plant_weeds/palatine | ||
ability_primacy = XENO_NOT_PRIMARY_ACTION | ||
|
||
/datum/action/xeno_action/onclick/choose_resin/palatine | ||
ability_primacy = XENO_NOT_PRIMARY_ACTION | ||
|
||
/datum/action/xeno_action/activable/secrete_resin/palatine | ||
name = "Secrete Royal Resin" | ||
ability_primacy = XENO_NOT_PRIMARY_ACTION | ||
thick = TRUE | ||
|
||
|
||
|
||
|
||
///############################################## | ||
|
||
/datum/action/xeno_action/onclick/palatine_roar | ||
name = "Roar" | ||
icon_file = 'icons/mob/hud/actions_palatine.dmi' | ||
action_icon_state = "screech_empower" | ||
ability_name = "roar" | ||
action_type = XENO_ACTION_CLICK | ||
ability_primacy = XENO_PRIMARY_ACTION_1 | ||
xeno_cooldown = 60 SECONDS | ||
plasma_cost = 50 | ||
|
||
var/roar_type = "piercing" | ||
var/screech_sound_effect = "sound/voice/alien_distantroar_3.ogg" | ||
var/bonus_damage_scale = 2.5 | ||
var/bonus_speed_scale = 0.05 | ||
|
||
/datum/action/xeno_action/onclick/palatine_change_roar | ||
name = "Change Roar" | ||
icon_file = 'icons/mob/hud/actions_palatine.dmi' | ||
action_icon_state = "screech_shift" | ||
ability_name = "change roar" | ||
action_type = XENO_ACTION_CLICK | ||
ability_primacy = XENO_NOT_PRIMARY_ACTION | ||
plasma_cost = 0 | ||
|
||
/datum/action/xeno_action/onclick/palatine_change_roar/use_ability(atom/A) | ||
var/mob/living/carbon/xenomorph/X = owner | ||
var/action_icon_result | ||
|
||
if(!X.check_state(1)) | ||
return | ||
|
||
var/datum/action/xeno_action/onclick/palatine_roar/PR = get_xeno_action_by_type(X, /datum/action/xeno_action/onclick/palatine_roar) | ||
if (!istype(PR)) | ||
return | ||
|
||
if (PR.roar_type == "piercing") | ||
action_icon_result = "screech_disrupt" | ||
PR.roar_type = "thundering" | ||
PR.screech_sound_effect = "sound/voice/4_xeno_roars.ogg" | ||
to_chat(X, SPAN_XENOWARNING("You will now disrupt dangers to the hive!")) | ||
|
||
else | ||
action_icon_result = "screech_empower" | ||
PR.roar_type = "piercing" | ||
PR.screech_sound_effect = "sound/voice/alien_distantroar_3.ogg" | ||
to_chat(X, SPAN_XENOWARNING("You will now empower your allies with rage!")) | ||
|
||
PR.button.overlays.Cut() | ||
PR.button.overlays += image('icons/mob/hud/actions_palatine.dmi', button, action_icon_result) |
49 changes: 49 additions & 0 deletions
49
code/modules/mob/living/carbon/xenomorph/abilities/palatine/palatine_powers.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/datum/action/xeno_action/onclick/palatine_roar/use_ability(atom/target) | ||
var/mob/living/carbon/xenomorph/xeno = owner | ||
|
||
if (!action_cooldown_check()) | ||
return | ||
|
||
if (!xeno.check_state()) | ||
return | ||
|
||
if(!check_and_use_plasma_owner()) | ||
return | ||
|
||
if(roar_type == "piercing") | ||
var/datum/behavior_delegate/palatine_base/behavior = xeno.behavior_delegate | ||
if(!istype(behavior)) | ||
to_chat(xeno, SPAN_ALERTWARNING("Something went wrong with your behavior delegate! Inform forest2001 or a coder!")) | ||
return FALSE | ||
if(behavior.thirst < 3) | ||
to_chat(xeno, SPAN_WARNING("You have not slain enough in the name of the Queen Mother to unleash this power!")) | ||
return FALSE | ||
|
||
xeno.visible_message(SPAN_XENOHIGHDANGER("[xeno] emits a piercing screech!")) | ||
for(var/mob/living/carbon/carbon in view(7, xeno)) | ||
if(isxeno(carbon) && xeno.can_not_harm(carbon)) | ||
new /datum/effects/xeno_buff(carbon, xeno, ttl = (0.5 SECONDS * behavior.thirst + 3 SECONDS), bonus_damage = bonus_damage_scale * behavior.thirst, bonus_speed = (bonus_speed_scale * behavior.thirst)) | ||
|
||
for(var/mob/M in view(xeno)) | ||
if(M && M.client) | ||
shake_camera(M, 10, 1) | ||
behavior.thirst = max(0, behavior.thirst - 3) | ||
to_chat(xeno, SPAN_XENOMINORWARNING("Your bloodlust cools as you unleash your rage.")) | ||
else | ||
xeno.visible_message(SPAN_XENOHIGHDANGER("[xeno] emits a thundering roar!")) | ||
for(var/mob/living/carbon/carbon in view(7, xeno)) | ||
if(ishuman(carbon)) | ||
var/mob/living/carbon/human/human = carbon | ||
human.disable_special_items() | ||
|
||
var/obj/item/clothing/gloves/yautja/hunter/YG = locate(/obj/item/clothing/gloves/yautja/hunter) in human | ||
if(isyautja(human) && YG) | ||
if(HAS_TRAIT(human, TRAIT_CLOAKED)) | ||
YG.decloak(human, TRUE, DECLOAK_PREDALIEN) | ||
|
||
xeno.create_shriekwave(9) | ||
playsound(xeno.loc, screech_sound_effect, 75, 0, status = 0) | ||
apply_cooldown() | ||
|
||
. = ..() | ||
return |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.