Skip to content

Commit 87ee193

Browse files
Merge branch 'master' of https://github.com/PolarisSS13/Polaris-Neb into map/cynosure_support
2 parents 1bbc579 + e401011 commit 87ee193

File tree

13 files changed

+140
-0
lines changed

13 files changed

+140
-0
lines changed

maps/exodus/exodus.dm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
#include "../../mods/species/tajaran/_tajaran.dme"
3939
#include "../../mods/species/unathi/_unathi.dme"
4040
#include "../../mods/species/teshari/_teshari.dme"
41+
#include "../../mods/species/vatborn/_vatborn.dme"
4142

4243
#include "../random_ruins/exoplanet_ruins/playablecolony/playablecolony.dm"
4344
#include "../random_ruins/exoplanet_ruins/crashed_pod/crashed_pod.dm"

mods/content/polaris/_polaris.dme

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#define MODPACK_POLARIS
33
// BEGIN_INCLUDE
44
#include "code\background.dm"
5+
#include "code\vent_pump.dm"
56
#include "datum\loadout.dm"
67
#include "datum\materials.dm"
78
#include "datum\backgrounds\citizenship.dm"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/datum/composite_sound/air_pump
2+
start_sound = 'mods/content/polaris/sound/machines/airpumpstart.ogg'
3+
start_length = 10
4+
mid_sounds = list()//list('mods/content/polaris/sound/machines/airpumpidle_1.ogg' = 1, 'mods/content/polaris/sound/machines/airpumpidle_2.ogg' = 1, 'mods/content/polaris/sound/machines/airpumpidle_3.ogg' = 1, 'mods/content/polaris/sound/machines/airpumpidle_4.ogg' = 1)
5+
mid_length = 19
6+
end_sound = 'mods/content/polaris/sound/machines/airpumpshutdown.ogg'
7+
volume = 3
8+
9+
/obj/machinery/atmospherics/unary/vent_pump
10+
var/datum/composite_sound/air_pump/soundloop
11+
12+
/obj/machinery/atmospherics/unary/vent_pump/Initialize()
13+
soundloop = new(list(src), FALSE)
14+
. = ..()
15+
16+
/obj/machinery/atmospherics/unary/vent_pump/Destroy()
17+
QDEL_NULL(soundloop)
18+
. = ..()
19+
20+
/obj/machinery/atmospherics/unary/vent_pump/attackby(obj/item/used_item, mob/user)
21+
. = ..()
22+
can_pump() //in order to shut off sound when welded
23+
return .
24+
25+
/obj/machinery/atmospherics/unary/vent_pump/can_pump() //everything that update_sound() does should be done every time can_pump() is called
26+
. = ..()
27+
if(. == 1)
28+
if(!soundloop.started)
29+
soundloop.start()
30+
if(!sound_id)
31+
sound_id = "[sequential_id("vent_z[z]")]"
32+
if(!sound_token)
33+
sound_token = play_looping_sound(src, sound_id, 'mods/content/polaris/sound/machines/airpumpidle.ogg', 8, range = 7, falloff = 4)
34+
else
35+
if(soundloop.started && !welded)
36+
soundloop.stop()
37+
if(sound_token)
38+
sound_token.Destroy()
39+
QDEL_NULL(sound_token)
40+
return .
41+
42+
/obj/machinery/atmospherics/unary/vent_pump/update_sound()
43+
can_pump()
Binary file not shown.
Binary file not shown.
Binary file not shown.

mods/species/vatborn/_vatborn.dme

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef MODPACK_VATBORN
2+
#define MODPACK_VATBORN
3+
// BEGIN_INCLUDE
4+
#include "vatborn.dm"
5+
#include "datum\species.dm"
6+
#include "datum\species_bodytype.dm"
7+
8+
// END_INCLUDE
9+
#endif // MODPACK_VATBORN

mods/species/vatborn/datum/species.dm

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/datum/appearance_descriptor/age/vatborn
2+
name = "age"
3+
chargen_max_index = 9
4+
5+
standalone_value_descriptors = list( //vatborns grow quickly and die young
6+
"an infant" = 1,
7+
"a toddler" = 2,
8+
"a child" = 3,
9+
"a teenager" = 4,
10+
"a young adult" = 6,
11+
"an adult" = 20,
12+
"middle-aged" = 35,
13+
"aging" = 50,
14+
"elderly" = 70,
15+
"ancient" = 91
16+
)
17+
18+
19+
/decl/species/human/vatborn
20+
uid = "species_vatborn"
21+
name = "Vatborn"
22+
name_plural = "Vatborns"
23+
24+
available_bodytypes = list(
25+
/decl/bodytype/human/vatborn,
26+
/decl/bodytype/human/vatborn/masculine,
27+
/decl/bodytype/prosthetic/basic_human
28+
)
29+
30+
31+
description = "With cloning on the forefront of human scientific advancement, cheap mass production \
32+
of bodies is a very real and rather ethically grey industry. Vat-grown or Vatborn humans tend to be \
33+
paler than baseline, with no appendix and fewer inherited genetic disabilities, but a more aggressive metabolism. \
34+
Most vatborn are engineered to experience rapid maturation, reaching approximately sixteen years of growth in only five \
35+
before slowing to normal growth rates."
36+
37+
preview_outfit = /decl/outfit/job/generic/assistant
38+
39+
toxins_mod = 1.1
40+
metabolism_mod = 1.15
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/decl/bodytype/human/vatborn
2+
name = "feminine"
3+
icon_base = 'mods/species/vatborn/icons/body/body_female.dmi'
4+
limb_icon_intensity = 0.7
5+
associated_gender = FEMALE
6+
onmob_state_modifiers = list((slot_w_uniform_str) = "f")
7+
uid = "bodytype_vatborn_fem"
8+
age_descriptor = /datum/appearance_descriptor/age/vatborn
9+
10+
has_organ = list(
11+
BP_HEART = /obj/item/organ/internal/heart,
12+
BP_STOMACH = /obj/item/organ/internal/stomach,
13+
BP_LUNGS = /obj/item/organ/internal/lungs,
14+
BP_LIVER = /obj/item/organ/internal/liver,
15+
BP_KIDNEYS = /obj/item/organ/internal/kidneys,
16+
BP_BRAIN = /obj/item/organ/internal/brain,
17+
BP_EYES = /obj/item/organ/internal/eyes
18+
)
19+
20+
/decl/bodytype/human/vatborn/masculine
21+
name = "masculine"
22+
icon_base = 'mods/species/vatborn/icons/body/body_male.dmi'
23+
icon_deformed = 'icons/mob/human_races/species/human/deformed_body_male.dmi'
24+
associated_gender = MALE
25+
uid = "bodytype_vatborn_masc"
26+
onmob_state_modifiers = null
27+
override_emote_sounds = list(
28+
"cough" = list(
29+
'sound/voice/emotes/m_cougha.ogg',
30+
'sound/voice/emotes/m_coughb.ogg',
31+
'sound/voice/emotes/m_coughc.ogg'
32+
),
33+
"sneeze" = list(
34+
'sound/voice/emotes/m_sneeze.ogg'
35+
)
36+
)
1.36 KB
Binary file not shown.
1.34 KB
Binary file not shown.
774 Bytes
Binary file not shown.

mods/species/vatborn/vatborn.dm

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/decl/modpack/vatborn
2+
name = "Vatborn"
3+
4+
/decl/modpack/vatborn/pre_initialize()
5+
..()
6+
SSmodpacks.default_submap_whitelisted_species |= /decl/species/human/vatborn::uid
7+
8+
/mob/living/human/vatborn/Initialize(mapload, species_uid, datum/mob_snapshot/supplied_appearance)
9+
species_uid = /decl/species/human/vatborn::uid
10+
. = ..()

0 commit comments

Comments
 (0)