-
Notifications
You must be signed in to change notification settings - Fork 566
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
42 changed files
with
1,736 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/// Shield can be equal to a maximum of percent_maxhealth_damagecap of the receiver's max hp | ||
/datum/xeno_shield/king_shield | ||
duration = 10 SECONDS | ||
decay_amount_per_second = 100 | ||
/// The maximum damage multiplier of max health to apply in a hit | ||
var/percent_maxhealth_damagecap = 0.1 | ||
|
||
/datum/xeno_shield/king_shield/on_hit(damage) | ||
var/relative_damage_cap = linked_xeno.maxHealth * percent_maxhealth_damagecap | ||
|
||
if(damage > relative_damage_cap) | ||
damage = relative_damage_cap | ||
return ..(damage) | ||
|
||
|
||
/datum/xeno_shield/king_shield/on_removal() | ||
. = ..() | ||
if(linked_xeno) | ||
// Remove the shield overlay early | ||
linked_xeno.remove_suit_layer() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//----------------------------------------- | ||
//HEAVY IMPACT | ||
//----------------------------------------- | ||
|
||
/obj/effect/heavy_impact | ||
icon = 'icons/effects/heavyimpact.dmi' | ||
icon_state = "heavyimpact" | ||
var/duration = 1.3 SECONDS | ||
|
||
/obj/effect/heavy_impact/Initialize(mapload) | ||
. = ..() | ||
flick("heavyimpact", src) | ||
AddElement(/datum/element/temporary, duration) |
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,51 @@ | ||
//----------------------------------------- | ||
//KING LEAP | ||
//----------------------------------------- | ||
|
||
#define LEAP_HEIGHT 210 //how high up leaps go, in pixels | ||
|
||
/obj/effect/king_leap | ||
icon = 'icons/mob/xenos/king.dmi' | ||
icon_state = "Normal King Charging" | ||
layer = 4.7 | ||
plane = -4 | ||
pixel_x = -32 | ||
var/duration = 10 | ||
|
||
/obj/effect/king_leap/Initialize(mapload, negative, dir) | ||
. = ..() | ||
setDir(dir) | ||
INVOKE_ASYNC(src, PROC_REF(flight), negative) | ||
AddElement(/datum/element/temporary, duration) | ||
|
||
/obj/effect/king_leap/proc/flight(negative) | ||
if(negative) | ||
animate(src, pixel_x = -LEAP_HEIGHT*0.1, pixel_z = LEAP_HEIGHT*0.15, time = 3, easing = BOUNCE_EASING) | ||
else | ||
animate(src, pixel_x = LEAP_HEIGHT*0.1, pixel_z = LEAP_HEIGHT*0.15, time = 3, easing = BOUNCE_EASING) | ||
sleep(0.3 SECONDS) | ||
icon_state = "Normal King Charging" | ||
if(negative) | ||
animate(src, pixel_x = -LEAP_HEIGHT, pixel_z = LEAP_HEIGHT, time = 7) | ||
else | ||
animate(src, pixel_x = LEAP_HEIGHT, pixel_z = LEAP_HEIGHT, time = 7) | ||
|
||
/obj/effect/king_leap/end | ||
pixel_x = LEAP_HEIGHT | ||
pixel_z = LEAP_HEIGHT | ||
duration = 10 | ||
|
||
/obj/effect/king_leap/end/flight(negative) | ||
if(negative) | ||
pixel_x = -LEAP_HEIGHT | ||
animate(src, pixel_x = -16, pixel_z = 0, time = 5) | ||
else | ||
animate(src, pixel_x = -16, pixel_z = 0, time = 5) | ||
|
||
/obj/effect/xenomorph/xeno_telegraph/king_attack_template | ||
icon = 'icons/effects/96x96.dmi' | ||
icon_state = "landing2" | ||
layer = BELOW_MOB_LAYER | ||
|
||
/obj/effect/xenomorph/xeno_telegraph/king_attack_template/yellow | ||
icon_state = "xenolandingyellow" |
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.