Skip to content

Commit f651bbf

Browse files
authoredApr 30, 2022
Cleanup of Vox + make them breathe nitrogen (#7853)
1 parent 0a284dd commit f651bbf

File tree

7 files changed

+151
-23
lines changed

7 files changed

+151
-23
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-

1+
- type: entity
2+
id: OrganVoxLungs
3+
parent: OrganHumanLungs
4+
suffix: "vox"
5+
components:
6+
- type: Metabolizer
7+
metabolizerTypes: [ Vox ]
8+

‎Resources/Prototypes/Body/Parts/vox.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
compatibility: Biological
2828
mechanisms:
2929
- OrganHumanHeart
30-
- OrganHumanLungs
30+
- OrganVoxLungs
3131
- OrganHumanStomach
3232
- OrganHumanLiver
3333
- OrganHumanKidneys

‎Resources/Prototypes/Chemistry/metabolizer_types.yml

+4
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@
99

1010
- type: metabolizerType
1111
id: Slime
12+
13+
- type: metabolizerType
14+
id: Vox
15+
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
- type: entity
22
save: false
33
name: Vox
4-
parent: BaseVox
5-
id: Vox
4+
parent: MobVoxBase
5+
id: MobVox
66
components:
77
- type: InteractionPopup
88
successChance: 1
@@ -13,14 +13,24 @@
1313
showExamineInfo: true
1414
- type: Input
1515
context: "human"
16+
- type: PlayerMobMover
17+
- type: PlayerInputMover
18+
- type: Vocal
19+
maleScream: /Audio/Voice/Vox/shriek1.ogg
20+
femaleScream: /Audio/Voice/Vox/shriek1.ogg
1621
- type: Alerts
17-
- type: Actions
1822
- type: Eye
1923
- type: CameraRecoil
2024
- type: Examiner
21-
- type: Vocal
22-
maleScream: /Audio/Voice/Vox/shriek1.ogg
23-
femaleScream: /Audio/Voice/Vox/shriek1.ogg
25+
- type: CanHostGuardian
2426
- type: AiFactionTag
2527
factions:
2628
- NanoTrasen
29+
- type: Respirator
30+
damage:
31+
types:
32+
Asphyxiation: 1.5
33+
damageRecovery:
34+
types:
35+
Asphyxiation: -1.5
36+

‎Resources/Prototypes/Entities/Mobs/Species/vox.yml

+93-15
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
- type: entity
2-
parent: MobHuman
3-
abstract: true
4-
id: BaseVox
2+
parent: MobHumanBase
3+
id: MobVoxBase
4+
noSpawn: true
55
components:
66
- type: Icon
77
sprite: Mobs/Species/Vox/parts.rsi
@@ -83,25 +83,14 @@
8383
- type: Body
8484
template: HumanoidTemplate
8585
preset: VoxPreset
86-
# TODO Vox nitrogen
86+
# Vox nitrogen stuff is handled in their metabolism
8787
- type: Respirator
8888
damage:
8989
types:
9090
Asphyxiation: 3
9191
damageRecovery:
9292
types:
9393
Asphyxiation: -1.5
94-
# - type: Appearance
95-
# visuals:
96-
# - type: RotationVisualizer
97-
# - type: BuckleVisualizer
98-
# - type: FireVisualizer
99-
# sprite: Mobs/Effects/onfire.rsi
100-
# normalState: Generic_mob_burning
101-
# alternateState: Standing
102-
# fireStackAlternateState: 3
103-
# - type: CreamPiedVisualizer
104-
# state: creampie_human
10594
- type: HumanoidAppearance
10695
canColorHair: false
10796
canColorFacialHair: false
@@ -114,3 +103,92 @@
114103
spawned:
115104
- id: FoodMeatChicken
116105
amount: 5
106+
107+
- type: entity
108+
id: MobVoxDummy
109+
parent: MobHumanDummy
110+
noSpawn: true
111+
components:
112+
- type: Sprite
113+
netsync: false
114+
noRot: true
115+
drawdepth: Mobs
116+
layers:
117+
- map: [ "enum.HumanoidVisualLayers.Chest" ]
118+
sprite: Mobs/Species/Vox/parts.rsi
119+
state: torso_m
120+
- map: [ "enum.HumanoidVisualLayers.Head" ]
121+
sprite: Mobs/Species/Vox/parts.rsi
122+
state: head_m
123+
- map: [ "enum.HumanoidVisualLayers.Eyes" ]
124+
color: "#008800"
125+
sprite: Mobs/Customization/eyes.rsi
126+
state: vox_eyes_s
127+
- map: [ "enum.HumanoidVisualLayers.RArm" ]
128+
sprite: Mobs/Species/Vox/parts.rsi
129+
state: r_arm
130+
- map: [ "enum.HumanoidVisualLayers.LArm" ]
131+
sprite: Mobs/Species/Vox/parts.rsi
132+
state: l_arm
133+
- map: [ "enum.HumanoidVisualLayers.RLeg" ]
134+
sprite: Mobs/Species/Vox/parts.rsi
135+
state: r_leg
136+
- map: [ "enum.HumanoidVisualLayers.LLeg" ]
137+
sprite: Mobs/Species/Vox/parts.rsi
138+
state: l_leg
139+
# Vox don't have female clothing masks.
140+
#- shader: StencilClear
141+
# sprite: Mobs/Species/Vox/parts.rsi
142+
# state: l_leg
143+
#- shader: StencilMask
144+
# map: [ "enum.HumanoidVisualLayers.StencilMask" ]
145+
# sprite: Mobs/Customization/masking_helpers.rsi
146+
# state: female_full
147+
# visible: false
148+
#- map: [ "jumpsuit" ]
149+
# shader: StencilDraw
150+
- map: [ "enum.HumanoidVisualLayers.LHand" ]
151+
sprite: Mobs/Species/Vox/parts.rsi
152+
state: l_hand
153+
- map: [ "enum.HumanoidVisualLayers.RHand" ]
154+
sprite: Mobs/Species/Vox/parts.rsi
155+
state: r_hand
156+
- map: [ "enum.HumanoidVisualLayers.LFoot" ]
157+
sprite: Mobs/Species/Vox/parts.rsi
158+
state: l_foot
159+
- map: [ "enum.HumanoidVisualLayers.RFoot" ]
160+
sprite: Mobs/Species/Vox/parts.rsi
161+
state: r_foot
162+
- map: [ "enum.HumanoidVisualLayers.Handcuffs" ]
163+
color: "#ffffff"
164+
sprite: Objects/Misc/handcuffs.rsi
165+
state: body-overlay-2
166+
visible: false
167+
- map: [ "id" ]
168+
- map: [ "gloves" ]
169+
- map: [ "shoes" ]
170+
- map: [ "ears" ]
171+
- map: [ "outerClothing" ]
172+
- map: [ "eyes" ]
173+
- map: [ "belt" ]
174+
- map: [ "neck" ]
175+
- map: [ "back" ]
176+
- map: [ "enum.HumanoidVisualLayers.FacialHair" ]
177+
state: shaved
178+
sprite: Mobs/Customization/human_facial_hair.rsi
179+
- map: [ "enum.HumanoidVisualLayers.Hair" ]
180+
state: bald
181+
sprite: Mobs/Customization/human_hair.rsi
182+
- map: [ "mask" ]
183+
- map: [ "head" ]
184+
- map: [ "pocket1" ]
185+
- map: [ "pocket2" ]
186+
- type: HumanoidAppearance
187+
canColorHair: false
188+
canColorFacialHair: false
189+
categoriesHair: VoxHair
190+
categoriesFacialHair: VoxFacialHair
191+
- type: Body
192+
template: HumanoidTemplate
193+
preset: VoxPreset
194+

‎Resources/Prototypes/Reagents/gases.yml

+20
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
type: Animal
2020
# Convert Oxygen into CO2.
2121
- !type:ModifyLungGas
22+
conditions:
23+
- !type:OrganType
24+
type: Vox
25+
shouldHave: false
2226
ratios:
2327
CarbonDioxide: 1.0
2428
Oxygen: -1.0
@@ -124,3 +128,19 @@
124128
color: "#808080"
125129
boilingPoint: -195.8
126130
meltingPoint: -210.0
131+
metabolisms:
132+
Gas:
133+
effects:
134+
- !type:Oxygenate
135+
conditions:
136+
- !type:OrganType
137+
type: Vox
138+
# Converts Nitrogen into CO2
139+
- !type:ModifyLungGas
140+
conditions:
141+
- !type:OrganType
142+
type: Vox
143+
ratios:
144+
CarbonDioxide: 1.0
145+
Nitrogen: -1.0
146+

‎Resources/Prototypes/species.yml

+9
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,12 @@
2929
prototype: MobSlimePerson
3030
dollPrototype: MobSlimePersonDummy
3131
skinColoration: Hues
32+
33+
#- type: species
34+
# id: Vox
35+
# name: Vox
36+
# roundStart: true
37+
# prototype: MobVox
38+
# dollPrototype: MobVoxDummy
39+
# skinColoration: Hues
40+

0 commit comments

Comments
 (0)
Please sign in to comment.