Bones (#1683)
* bones * bone remains * step sound * sound destruction * demiplan * fix
This commit is contained in:
@@ -17,6 +17,12 @@
|
||||
- type: ClothingSpeedModifier
|
||||
walkModifier: 0.98
|
||||
sprintModifier: 0.98
|
||||
- type: Construction
|
||||
graph: CP14BoneArmor
|
||||
node: cp14bonearmor
|
||||
- type: PhysicalComposition
|
||||
materialComposition:
|
||||
CP14Bone: 120
|
||||
|
||||
- type: entity
|
||||
parent: CP14ClothingOuterClothingBoneArmor
|
||||
|
||||
@@ -118,3 +118,4 @@
|
||||
- id: CP14ScrapIron
|
||||
- id: CP14CopperCoin1
|
||||
weight: 3
|
||||
- id: CP14Bone1
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
- id: CP14FoodMeatLambCutletCooked
|
||||
- id: CP14ModularInlayQuartzFire
|
||||
- id: CP14CopperCoin1
|
||||
- id: CP14Bone1
|
||||
|
||||
- type: entity
|
||||
id: CP14AreaEntityEffectSlimeIgnite
|
||||
|
||||
@@ -164,6 +164,9 @@
|
||||
- id: CP14Leather1
|
||||
amount: 1
|
||||
maxAmount: 3
|
||||
- id: CP14Bone1
|
||||
amount: 2
|
||||
maxAmount: 3
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 150
|
||||
bloodReagent: CP14BloodAnimal
|
||||
@@ -222,6 +225,9 @@
|
||||
- id: CP14CheapFur
|
||||
amount: 1
|
||||
prob: 0.25
|
||||
- id: CP14Bone1
|
||||
amount: 2
|
||||
maxAmount: 4
|
||||
- type: Reproductive
|
||||
partnerWhitelist:
|
||||
tags:
|
||||
@@ -437,6 +443,9 @@
|
||||
amount: 1
|
||||
maxAmount: 5
|
||||
prob: 0.3
|
||||
- id: CP14Bone1
|
||||
amount: 1
|
||||
maxAmount: 2
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 150
|
||||
bloodReagent: CP14BloodAnimal
|
||||
@@ -529,6 +538,9 @@
|
||||
prob: 0.5
|
||||
- id: CP14GoodFur
|
||||
amount: 1
|
||||
- id: CP14Bone1
|
||||
amount: 8
|
||||
maxAmount: 10
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 350
|
||||
bloodReagent: CP14BloodAnimal
|
||||
|
||||
@@ -101,6 +101,9 @@
|
||||
- id: CP14Leather1
|
||||
amount: 2
|
||||
maxAmount: 4
|
||||
- id: CP14Bone1
|
||||
amount: 2
|
||||
maxAmount: 3
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 200
|
||||
- type: SpamEmitSound
|
||||
|
||||
@@ -92,6 +92,9 @@
|
||||
- id: CP14CheapFur
|
||||
amount: 1
|
||||
prob: 0.25
|
||||
- id: CP14Bone1
|
||||
amount: 2
|
||||
maxAmount: 3
|
||||
- type: Bloodstream
|
||||
bloodMaxVolume: 200
|
||||
bloodReagent: CP14BloodMonster
|
||||
|
||||
@@ -100,6 +100,11 @@
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:GibBehavior
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14Bone1:
|
||||
min: 2
|
||||
max: 4
|
||||
- type: Vocal
|
||||
sounds:
|
||||
Male: Skeleton
|
||||
|
||||
@@ -118,3 +118,48 @@
|
||||
components:
|
||||
- type: Stack
|
||||
count: 10
|
||||
|
||||
# bones
|
||||
- type: entity
|
||||
id: CP14Bone1
|
||||
parent: BaseItem
|
||||
name: bone
|
||||
description: A yellowed bone that once belonged to a living creature.
|
||||
categories: [ ForkFiltered ]
|
||||
components:
|
||||
- type: Item
|
||||
size: Normal
|
||||
- type: Sprite
|
||||
sprite: _CP14/Objects/Materials/bones.rsi
|
||||
layers:
|
||||
- state: bone_1
|
||||
map: ["base"]
|
||||
- type: Appearance
|
||||
- type: Stack
|
||||
stackType: CP14Bone
|
||||
count: 1
|
||||
baseLayer: base
|
||||
layerStates:
|
||||
- bone_1
|
||||
- bone_2
|
||||
- bone_3
|
||||
- type: Material
|
||||
- type: PhysicalComposition
|
||||
materialComposition:
|
||||
CP14Glass: 10
|
||||
|
||||
- type: entity
|
||||
id: CP14Bone5
|
||||
parent: CP14Bone1
|
||||
suffix: 5
|
||||
components:
|
||||
- type: Stack
|
||||
count: 5
|
||||
|
||||
- type: entity
|
||||
id: CP14Bone10
|
||||
parent: CP14Bone1
|
||||
suffix: 10
|
||||
components:
|
||||
- type: Stack
|
||||
count: 10
|
||||
|
||||
@@ -88,6 +88,12 @@
|
||||
- type: CP14ModularCraftPart
|
||||
possibleParts:
|
||||
- BladeBoneSword
|
||||
- type: Construction
|
||||
graph: CP14BoneSword
|
||||
node: cp14bonesword
|
||||
- type: PhysicalComposition
|
||||
materialComposition:
|
||||
CP14Bone: 50
|
||||
|
||||
- type: entity
|
||||
parent: CP14ModularBladeSwordBase
|
||||
|
||||
@@ -0,0 +1,148 @@
|
||||
- type: entity
|
||||
parent: BaseStructure
|
||||
id: CP14BaseBoneRemains
|
||||
name: bone remains
|
||||
description: The remains of bones have grown into the ground.
|
||||
categories: [ ForkFiltered ]
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: _CP14/Structures/Decoration/bone_remains.rsi
|
||||
drawdepth: BelowFloor
|
||||
layers:
|
||||
- state: bone_remains_1
|
||||
map: ["random"]
|
||||
- type: RandomSprite
|
||||
available:
|
||||
- random:
|
||||
bone_remains_1: ""
|
||||
bone_remains_2: ""
|
||||
bone_remains_3: ""
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
hard: false
|
||||
shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.2
|
||||
density: 50
|
||||
mask:
|
||||
- SlipLayer
|
||||
layer:
|
||||
- ItemMask
|
||||
- type: Damageable
|
||||
damageContainer: StructuralInorganic
|
||||
damageModifierSet: CP14Skeleton
|
||||
- type: FootstepModifier
|
||||
footstepSoundCollection:
|
||||
collection: CP14StepBones
|
||||
params:
|
||||
volume: 4
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 10
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14Bone1:
|
||||
min: 1
|
||||
max: 3
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: CP14BoneCrack
|
||||
|
||||
- type: entity
|
||||
id: CP14BoneSpine
|
||||
parent: BaseStructure
|
||||
name: bone spine
|
||||
description: The large bony torso of an unknown creature, as if it had been torn to pieces.
|
||||
categories: [ ForkFiltered ]
|
||||
components:
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: _CP14/Structures/Decoration/bone_spine.rsi
|
||||
drawdepth: Mobs
|
||||
layers:
|
||||
- state: bone_spine
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
density: 80
|
||||
mask:
|
||||
- MachineMask
|
||||
layer:
|
||||
- MachineLayer
|
||||
- type: Damageable
|
||||
damageContainer: StructuralInorganic
|
||||
damageModifierSet: CP14Skeleton
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 40
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14Bone1:
|
||||
min: 5
|
||||
max: 7
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: CP14BoneCrack
|
||||
|
||||
- type: entity
|
||||
id: CP14BoneDragon
|
||||
parent: CP14BoneSpine
|
||||
name: bone dragon
|
||||
description: The large skeleton of a dragon, the possibility of encountering such a creature is both fascinating and terrifying.
|
||||
categories: [ ForkFiltered ]
|
||||
components:
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
sprite: _CP14/Structures/Decoration/bone_dragon.rsi
|
||||
layers:
|
||||
- state: bone_dragon
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-1.5,-0.9,1.6,1"
|
||||
density: 500
|
||||
mask:
|
||||
- MachineMask
|
||||
layer:
|
||||
- MachineLayer
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 120
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14Bone1:
|
||||
min: 10
|
||||
max: 10
|
||||
- !type:SpawnEntitiesBehavior
|
||||
spawn:
|
||||
CP14Bone1:
|
||||
min: 5
|
||||
max: 10
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
collection: CP14BoneCrack
|
||||
@@ -147,4 +147,12 @@
|
||||
unit: materials-unit-bar
|
||||
icon: { sprite: _CP14/Objects/Materials/blood_essence.rsi, state: drop }
|
||||
color: "#a78a63"
|
||||
price: 8
|
||||
price: 8
|
||||
|
||||
- type: material
|
||||
id: CP14Bone
|
||||
stackEntity: CP14Bone1
|
||||
name: cp14-material-bone
|
||||
icon: { sprite: _CP14/Objects/Materials/bones.rsi, state: bone_1 }
|
||||
color: "#ccb495"
|
||||
price: 0.15
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
id: BladeBoneSword
|
||||
slots:
|
||||
- Blade
|
||||
sourcePart: CP14ModularBladeBoneSword
|
||||
sourcePart: CP14Bone1
|
||||
rsiPath: _CP14/Objects/ModularTools/Blade/Sword/bone_sword.rsi
|
||||
modifiers:
|
||||
- !type:Inherit
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
- type: cp14LocationModifier
|
||||
id: BoneRemains
|
||||
levels:
|
||||
min: 0
|
||||
max: 10
|
||||
generationWeight: 2
|
||||
categories:
|
||||
Reward: 0.1
|
||||
layers:
|
||||
- !type:CP14OreDunGen
|
||||
entity: CP14BaseBoneRemains
|
||||
count: 8
|
||||
minGroupSize: 2
|
||||
maxGroupSize: 3
|
||||
|
||||
- type: cp14LocationModifier
|
||||
id: BoneSpine
|
||||
levels:
|
||||
min: 4
|
||||
max: 10
|
||||
generationWeight: 0.5
|
||||
categories:
|
||||
Reward: 0.15
|
||||
layers:
|
||||
- !type:CP14OreDunGen
|
||||
entity: CP14BoneSpine
|
||||
count: 2
|
||||
minGroupSize: 1
|
||||
maxGroupSize: 1
|
||||
|
||||
- type: cp14LocationModifier
|
||||
id: BoneDragon
|
||||
levels:
|
||||
min: 5
|
||||
max: 10
|
||||
generationWeight: 0.1
|
||||
generationProb: 0.1
|
||||
categories:
|
||||
Fun: 1
|
||||
requiredTags:
|
||||
- CP14DemiplaneOpenSky
|
||||
layers:
|
||||
- !type:CP14OreDunGen
|
||||
entity: CP14BoneDragon
|
||||
count: 1
|
||||
minGroupSize: 1
|
||||
maxGroupSize: 1
|
||||
@@ -0,0 +1,16 @@
|
||||
- type: constructionGraph
|
||||
id: CP14BoneArmor
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: cp14bonearmor
|
||||
steps:
|
||||
- material: CP14Bone
|
||||
amount: 10
|
||||
- material: CP14Bone
|
||||
amount: 5
|
||||
doAfter: 8
|
||||
|
||||
- node: cp14bonearmor
|
||||
entity: CP14ClothingOuterClothingBoneArmor
|
||||
@@ -0,0 +1,14 @@
|
||||
- type: constructionGraph
|
||||
id: CP14BoneSword
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: cp14bonesword
|
||||
steps:
|
||||
- material: CP14Bone
|
||||
amount: 5
|
||||
doAfter: 4
|
||||
|
||||
- node: cp14bonesword
|
||||
entity: CP14ModularBladeBoneSword
|
||||
@@ -24,3 +24,21 @@
|
||||
targetNode: cp14torch
|
||||
category: construction-category-tools
|
||||
objectType: Item
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: cp14bladebonesword
|
||||
graph: CP14BoneSword
|
||||
startNode: start
|
||||
targetNode: cp14bonesword
|
||||
category: construction-category-weapons
|
||||
objectType: Item
|
||||
|
||||
- type: construction
|
||||
crystallPunkAllowed: true
|
||||
id: cp14bonearmor
|
||||
graph: CP14BoneArmor
|
||||
startNode: start
|
||||
targetNode: cp14bonearmor
|
||||
category: construction-category-clothing
|
||||
objectType: Item
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
- type: soundCollection
|
||||
id: CP14BoneCrack
|
||||
files:
|
||||
- /Audio/_CP14/Effects/bone_crush1.ogg
|
||||
- /Audio/_CP14/Effects/bone_crush2.ogg
|
||||
@@ -11,3 +11,11 @@
|
||||
- /Audio/_CP14/Effects/Footsteps/slippers1.ogg
|
||||
- /Audio/_CP14/Effects/Footsteps/slippers2.ogg
|
||||
- /Audio/_CP14/Effects/Footsteps/slippers3.ogg
|
||||
|
||||
- type: soundCollection
|
||||
id: CP14StepBones
|
||||
files:
|
||||
- /Audio/_CP14/Effects/Footsteps/bones1.ogg
|
||||
- /Audio/_CP14/Effects/Footsteps/bones2.ogg
|
||||
- /Audio/_CP14/Effects/Footsteps/bones3.ogg
|
||||
- /Audio/_CP14/Effects/Footsteps/bones4.ogg
|
||||
|
||||
@@ -144,3 +144,10 @@
|
||||
icon: { sprite: "_CP14/Objects/Materials/blood_essence.rsi", state: drop }
|
||||
spawn: CP14BloodEssence
|
||||
maxCount: 10
|
||||
|
||||
- type: stack
|
||||
id: CP14Bone
|
||||
name: cp14-stack-bones-pile
|
||||
icon: { sprite: _CP14/Objects/Materials/bones.rsi, state: bone_1 }
|
||||
spawn: CP14Bone1
|
||||
maxCount: 10
|
||||
|
||||
Reference in New Issue
Block a user