Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODsuits #42

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
91 changes: 91 additions & 0 deletions Resources/Prototypes/Entities/Clothing/Head/base_clothinghead.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,94 @@
- type: Tag
tags:
- HidesHair

- type: entity
abstract: true
# No parent since we aren't actually an item.
id: ClothingHeadModsuitBase
name: base MODsuit helmet
noSpawn: true
components:
- type: Sprite
state: icon # default state used by most inheritors
- type: Clickable
- type: InteractionOutline
- type: Clothing
#Apparently the hardsuit helmet equip sound is from a walking mech?
equipSound: /Audio/Mecha/mechmove03.ogg
unequipSound: /Audio/Mecha/mechmove03.ogg
quickEquip: false
slots: [ HEAD ]
- type: PressureProtection
highPressureMultiplier: 0.3
lowPressureMultiplier: 1000
- type: TemperatureProtection
coefficient: 0.1
- type: Armor
modifiers:
coefficients:
Blunt: 0.90
Slash: 0.90
Piercing: 0.95
Heat: 0.90
Radiation: 0.25
- type: GroupExamine
- type: IngestionBlocker
- type: Tag
tags:
- HidesHair
- WhitelistChameleon
- HidesNose
- type: IdentityBlocker

- type: entity
abstract: true
parent: ClothingHeadModsuitBase
id: ClothingHeadModsuitWithLightBase
name: base MODsuit helmet with light
noSpawn: true
components:
- type: Sprite
layers:
- state: icon
- state: icon-flash
visible: false
map: [ "light" ]
- type: Clothing
equippedPrefix: off
- type: ToggleableLightVisuals
- type: PointLight
enabled: false
radius: 3
energy: 2
mask: /Textures/Effects/LightMasks/cone.png
autoRot: true
netsync: false
- type: Appearance
- type: HandheldLight
addPrefix: true
blinkingBehaviourId: blinking
radiatingBehaviourId: radiating
- type: LightBehaviour
behaviours:
- !type:FadeBehaviour
id: radiating
interpolate: Linear
maxDuration: 2.0
startValue: 3.0
endValue: 2.0
isLooped: true
reverseWhenFinished: true
- !type:PulseBehaviour
id: blinking
interpolate: Nearest
maxDuration: 1.0
minValue: 0.1
maxValue: 2.0
isLooped: true
- type: Battery
maxCharge: 600
startingCharge: 600
- type: BatterySelfRecharger
autoRecharge: true
autoRechargeRate: 2
36 changes: 36 additions & 0 deletions Resources/Prototypes/Entities/Clothing/Head/modsuit-helmets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#When adding new modsuits, please try to keep the organization consistent with modsuits-helmets.yml (if possible.)

#STANDARD MODSUITS
#Standard MODsuit
- type: entity
parent: ClothingHeadModsuitBase
id: ClothingHeadHelmetModsuitStandard
name: standard MODsuit helmet
description: A civilian class suit by Nakamura Engineering, doesn't offer much other than slightly quicker movement.
components:
- type: BreathMask
- type: Sprite
sprite: Clothing/Head/Modsuits/standard.rsi
- type: Clothing
sprite: Clothing/Head/Modsuits/standard.rsi
- type: Tag
tags:
- HidesNose
- HidesHair

#Engineering MODsuit
- type: entity
parent: ClothingHeadModsuitBase
id: ClothingHeadHelmetModsuitEngineering
name: engineering MODsuit helmet
description: An engineer-fit suit with heat and shock resistance. Nakamura Engineering's classic.
components:
- type: BreathMask
- type: Sprite
sprite: Clothing/Head/Modsuits/engineering.rsi
- type: Clothing
sprite: Clothing/Head/Modsuits/engineering.rsi
- type: Tag
tags:
- HidesNose
- HidesHair
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,40 @@
components:
- type: Item
size: Huge

- type: entity
abstract: true
parent: [ClothingOuterBase, GeigerCounterClothing]
id: ClothingOuterModsuitBase
name: base MODsuit
components:
- type: PressureProtection
highPressureMultiplier: 0.3
lowPressureMultiplier: 1000
- type: TemperatureProtection
coefficient: 0.001 # yes it needs to be this low, fires are fucking deadly apparently!!!!
- type: ClothingSpeedModifier
walkModifier: 0.4
sprintModifier: 0.6
- type: HeldSpeedModifier
- type: Item
size: Ginormous
- type: Armor
modifiers:
coefficients:
Blunt: 0.90
Slash: 0.90
Piercing: 0.95
Heat: 0.90
Radiation: 0.25
- type: ToggleableClothing
slot: head
- type: ContainerContainer
containers:
toggleable-clothing: !type:ContainerSlot {}
- type: GroupExamine
- type: Tag
tags:
- MODsuit
- WhitelistChameleon
- HidesHarpyWings #DeltaV: Used by harpies to help render their hardsuit sprites
62 changes: 62 additions & 0 deletions Resources/Prototypes/Entities/Clothing/OuterClothing/modsuits.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#When adding new modsuits, please try to keep the organization consistent with modsuits-helmets.yml (if possible.)

#STANDARD MODSUITS
#Standard MODsuit
- type: entity
parent: ClothingOuterModsuitBase
id: ClothingOuterModsuitStandard
name: standard MODsuit
description: A civilian class suit by Nakamura Engineering, doesn't offer much other than slightly quicker movement.
components:
- type: Sprite
sprite: Clothing/OuterClothing/Modsuits/standard.rsi
- type: Clothing
sprite: Clothing/OuterClothing/Modsuits/standard.rsi
- type: ExplosionResistance
damageCoefficient: 0.9
- type: Armor
modifiers:
coefficients:
Blunt: 0.9
Slash: 0.9
Piercing: 0.9
Caustic: 0.9
- type: ClothingSpeedModifier
walkModifier: 0.80
sprintModifier: 0.80
- type: HeldSpeedModifier
- type: Construction
graph: Modsuit
node: modsuit
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetModsuitStandard

#Engineering MODsuit
- type: entity
parent: ClothingOuterModsuitBase
id: ClothingOuterModsuitEngineering
name: engineering MODsuit
description: An engineer-fit suit with heat and shock resistance. Nakamura Engineering's classic.
components:
- type: Sprite
sprite: Clothing/OuterClothing/Modsuits/engineering.rsi
- type: Clothing
sprite: Clothing/OuterClothing/Modsuits/engineering.rsi
- type: ExplosionResistance
damageCoefficient: 0.9
- type: Armor
modifiers:
coefficients:
Blunt: 0.9
Slash: 0.9
Piercing: 0.9
Caustic: 0.9
- type: ClothingSpeedModifier
walkModifier: 0.80
sprintModifier: 0.80
- type: HeldSpeedModifier
- type: Construction
graph: Modsuit
node: modsuit
- type: ToggleableClothing
clothingPrototype: ClothingHeadHelmetModsuitEngineering
Loading
Loading