forked from Baystation12/Baystation12
-
Notifications
You must be signed in to change notification settings - Fork 75
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
76 changed files
with
6,313 additions
and
223 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/singleton/modpack/colony_types | ||
/singleton/modpack/anomaly | ||
name = "Интерактивные аномалии" | ||
desc = "Добавляет в игру полноценные аномалии, вдохновлённые Ашаном, пикником на обочине и сталкером." | ||
author = "Shegar" | ||
author = "Shegar(Код), HonkByEmo(Спрайты), AK200(Спрайты)" |
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,15 @@ | ||
/obj/anomaly/part/handle_human_teamplay(mob/living/carbon/human/target, mob/living/carbon/human/helper) | ||
core.handle_human_teamplay(target, helper) | ||
|
||
/obj/anomaly/proc/handle_human_teamplay(mob/living/carbon/human/target, mob/living/carbon/human/helper) | ||
visible_message(SPAN_GOOD("[helper] с силой дёргает [target] на себя!")) | ||
target.forceMove(get_turf(helper)) | ||
target.Weaken(5) | ||
helper.Weaken(5) | ||
|
||
|
||
/mob/living/carbon/help_shake_act(mob/living/carbon/M) | ||
if(isanomalyhere(get_turf(src))) | ||
var/obj/anomaly/handled_anomaly = locate() in get_turf(src) | ||
handled_anomaly.handle_human_teamplay(src, M) | ||
..() |
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,66 @@ | ||
/obj/structure/big_artefact | ||
name = "Something" | ||
desc = "A large something." | ||
icon = 'mods/anomaly/icons/big_artefacts.dmi' | ||
density = TRUE | ||
waterproof = FALSE | ||
var/min_anomalies_ammout = 100 | ||
var/max_anomalies_ammout = 200 | ||
var/min_artefacts_ammount = 1 | ||
var/max_artefacts_ammount = 2 | ||
var/range_spawn = 30 | ||
var/list/possible_anomalies = list() | ||
|
||
/obj/structure/big_artefact/Initialize() | ||
. = ..() | ||
born_anomalies() | ||
|
||
///Функция, которая заспавнит вокруг большого артефакта аномалии | ||
/obj/structure/big_artefact/proc/born_anomalies() | ||
set background = 1 | ||
var/started_in = world.time | ||
var/list/turfs_for_spawn = list() | ||
//У нас нет турфа? | ||
if(!src.loc) | ||
return | ||
//Собираем все турфы в определённом радиусе | ||
for(var/turf/turfs in RANGE_TURFS(src.loc, range_spawn)) | ||
if(!TurfBlocked(turfs) || TurfBlockedByAnomaly(turfs)) | ||
LAZYADD(turfs_for_spawn, turfs) | ||
generate_anomalies_in_turfs(possible_anomalies, turfs_for_spawn, min_anomalies_ammout, max_anomalies_ammout, min_artefacts_ammount, max_artefacts_ammount, null, null, "big artefact generation", started_in) | ||
|
||
/obj/structure/big_artefact/shuttle_land_on() | ||
delete_artefact() | ||
|
||
/obj/structure/big_artefact/proc/delete_artefact() | ||
LAZYREMOVE(SSanom.big_anomaly_artefacts, src) | ||
qdel(src) | ||
|
||
/obj/structure/big_artefact/MouseDrop(obj/machinery/anomaly_container/over_object, mob/user) | ||
if(istype(over_object) && CanMouseDrop(over_object, usr)) | ||
if (over_object.health_dead()) | ||
visible_message(SPAN_WARNING("\The [over_object]'s containment is broken shut.")) | ||
return | ||
if (!over_object.allowed(usr)) | ||
visible_message(SPAN_WARNING("\The [over_object] blinks red, refusing to open.")) | ||
return | ||
user.visible_message( | ||
SPAN_NOTICE("\The [usr] begins placing \the [src] into \the [over_object]."), | ||
SPAN_NOTICE("You begin placing \the [src] into \the [over_object].") | ||
) | ||
if(!do_after(usr, 4 SECONDS, over_object, DO_PUBLIC_UNIQUE)) | ||
return | ||
user.visible_message(SPAN_NOTICE("The bolts on \the [over_object] drop with an hydraulic hiss, sealing its contents.")) | ||
playsound(loc, 'sound/mecha/hydraulic.ogg', 40) | ||
Bumped(usr) | ||
over_object.contain(src) | ||
return | ||
|
||
/obj/structure/big_artefact/forceMove() | ||
..() | ||
if(is_processing) | ||
if(get_turf(src) != loc) | ||
STOP_PROCESSING(SSanom, src) | ||
else | ||
if(get_turf(src) == loc) | ||
START_PROCESSING(SSanom, src) |
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,40 @@ | ||
/obj/structure/big_artefact/electra | ||
icon_state = "electra_anomalies" | ||
min_anomalies_ammout = 70 | ||
max_anomalies_ammout = 150 | ||
range_spawn = 30 | ||
possible_anomalies = list( | ||
/obj/anomaly/electra/three_and_three = 1, | ||
/obj/anomaly/electra/three_and_three/tesla = 2, | ||
/obj/anomaly/electra/three_and_three/tesla_second = 3, | ||
/obj/anomaly/cooler/two_and_two = 1, | ||
/obj/anomaly/cooler/three_and_three = 1 | ||
) | ||
// | ||
var/datum/beam = null | ||
var/last_electra_attack | ||
var/electra_attack_cooldown | ||
|
||
/obj/structure/big_artefact/electra/Initialize() | ||
.=..() | ||
if(!is_processing) | ||
START_PROCESSING(SSanom, src) | ||
electra_attack_cooldown = rand(20 SECONDS, 50 SECONDS) | ||
last_electra_attack = world.time | ||
|
||
//Пусть кусается молниями в пределах 3 турфов. | ||
/obj/structure/big_artefact/electra/Process() | ||
if(world.time - last_electra_attack > electra_attack_cooldown) | ||
electra_attack() | ||
|
||
/obj/structure/big_artefact/electra/proc/electra_attack() | ||
set waitfor = FALSE | ||
last_electra_attack = world.time | ||
var/turf/picked_turf | ||
picked_turf = pick(RANGE_TURFS(src, 3)) | ||
for(var/mob/living/picked_living in picked_turf) | ||
picked_living.electoanomaly_act(50, src) | ||
for(var/obj/structure/aurora/picked_aurora in picked_turf) | ||
picked_aurora.wake_up(5 SECONDS) | ||
beam = src.Beam(BeamTarget = picked_turf, icon_state = "electra_long",icon='mods/anomaly/icons/effects.dmi',time = 0.3 SECONDS) | ||
playsound(src, 'mods/anomaly/sounds/electra_blast.ogg', 100, FALSE ) |
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,9 @@ | ||
/obj/structure/big_artefact/hot | ||
icon_state = "hot_anomalies" | ||
min_anomalies_ammout = 100 | ||
max_anomalies_ammout = 200 | ||
range_spawn = 30 | ||
possible_anomalies = list( | ||
/obj/anomaly/zharka/short_effect = 1, | ||
/obj/anomaly/zharka/long_effect = 2, | ||
) |
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,32 @@ | ||
/obj/structure/big_artefact/gravi | ||
icon_state = "gravi_anomalies" | ||
min_anomalies_ammout = 60 | ||
max_anomalies_ammout = 120 | ||
range_spawn = 30 | ||
possible_anomalies = list( | ||
/obj/anomaly/thamplin/random = 2, | ||
/obj/anomaly/rvach/three_and_three = 1 | ||
) | ||
var/last_gravi_attack | ||
var/gravi_attack_cooldown | ||
|
||
/obj/structure/big_artefact/gravi/Initialize() | ||
.=..() | ||
if(!is_processing) | ||
START_PROCESSING(SSanom, src) | ||
gravi_attack_cooldown = rand(20 SECONDS, 50 SECONDS) | ||
last_gravi_attack = world.time | ||
|
||
/obj/structure/big_artefact/gravi/Process() | ||
if(world.time -last_gravi_attack > gravi_attack_cooldown) | ||
gravi_attack() | ||
|
||
/obj/structure/big_artefact/gravi/proc/gravi_attack() | ||
set waitfor = FALSE | ||
last_gravi_attack = world.time | ||
for(var/turf/picked_turf in RANGE_TURFS(src, 5)) | ||
for(var/mob/living/picked_living in picked_turf) | ||
picked_living.Weaken(3) | ||
picked_living.stun_effect_act(3,1) | ||
to_chat(picked_living, SPAN_WARNING("Что-то с силой прижимает вас к земле.")) | ||
shake_camera(picked_living, 3, 1) |
Oops, something went wrong.