Zombie and old lamp (#467)

* zombie

* fix

* spawner fix

* license

* woman parts

* male parts

* 122

* 123

* 124

* HideSpawnMenu

* damn

* requested

* fixxxx

* gooo
This commit is contained in:
Nim
2024-10-04 21:24:17 +03:00
committed by GitHub
parent 21ea4290a5
commit 98c921aa94
33 changed files with 508 additions and 8 deletions

View File

@@ -0,0 +1,49 @@
- type: body
id: CP14Zombie
name: zombie
root: torso
slots:
head:
part: CP14HeadHuman
connections:
- torso
organs:
brain: OrganHumanBrain
eyes: OrganHumanEyes
torso:
part: TorsoHuman
connections:
- right_arm
- left_arm
- right_leg
- left_leg
organs:
heart: OrganHumanHeart
lungs: OrganHumanLungs
stomach: OrganHumanStomach
liver: OrganHumanLiver
kidneys: OrganHumanKidneys
right_arm:
part: CP14RightArmHuman
connections:
- right_hand
left_arm:
part: CP14LeftArmHuman
connections:
- left_hand
right_hand:
part: CP14RightHandHuman
left_hand:
part: CP14LeftHandHuman
right_leg:
part: CP14RightLegHuman
connections:
- right_foot
left_leg:
part: CP14LeftLegHuman
connections:
- left_foot
right_foot:
part: CP14RightFootHuman
left_foot:
part: CP14LeftFootHuman

View File

@@ -1,3 +1,4 @@
# Structures
- type: damageModifierSet
id: CP14WoodStructural
@@ -11,4 +12,16 @@
Blunt: 10
Slash: 10
Piercing: 10
Structural: 10
Structural: 10
# Mobs
- type: damageModifierSet
id: CP14Zombie
coefficients:
Blunt: 0.7
Slash: 0.9
Piercing: 0.6
Heat: 1.5
Cold: 0.4
Poison: 0

View File

@@ -0,0 +1,14 @@
- type: entity
name: walking dead spawner
id: CP14SpawnMobUndeadZombie
parent: MarkerBase
components:
- type: Sprite
layers:
- sprite: Markers/cross.rsi
state: green
- sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: full
- type: ConditionalSpawner
prototypes:
- CP14MobUndeadZombie

View File

@@ -0,0 +1,12 @@
- type: entity
id: CP14MobUndeadZombie
parent: CP14BaseMobZombie
name: walking dead
description: A reanimated rotting body of a dead man wanting to devour the living.
components:
- type: HTN
rootTask:
task: SimpleHostileCompound
- type: NpcFactionMember
factions:
- SimpleHostile

View File

@@ -0,0 +1,145 @@
- type: entity
parent:
- BaseSimpleMob
- MobFlammable
- MobCombat
id: CP14BaseMobZombie
name: Mr. Zombie
abstract: true
components:
- type: HumanoidAppearance
species: CP14Zombie
- type: Icon
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: full
- type: Butcherable
butcheringType: Spike
spawned:
- id: FoodMeatHuman
amount: 5
- type: Body
prototype: CP14Zombie
requiredLegs: 2
- type: MovementSpeedModifier
baseWalkSpeed: 2
baseSprintSpeed: 2.5
- type: MobState
allowedStates:
- Alive
- Dead
- type: MobThresholds
thresholds:
0: Alive
150: Dead
- type: SlowOnDamage
speedModifierThresholds:
80: 0.8
120: 0.4
- type: StatusEffects
allowed:
- KnockedDown
- SlowedDown
- Electrocution
- Stutter
- TemporaryBlindness
- Pacified
- type: RotationVisuals
defaultRotation: 90
horizontalRotation: 90
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.35
density: 130
mask:
- MobMask
layer:
- MobLayer
- type: Damageable
damageContainer: Biological
damageModifierSet: CP14Zombie
- type: PassiveDamage
allowedStates:
- Alive
damageCap: 140
damage:
groups:
Brute: -0.3
Burn: -0.3
- type: MeleeWeapon
altDisarm: false
angle: 0
animation: WeaponArcBite
soundHit:
path: /Audio/Effects/bite.ogg
damage:
types:
Slash: 4
- type: Pullable
- type: GhostTakeoverAvailable
- type: SpamEmitSound
minInterval: 10
maxInterval: 30
sound:
collection: ZombieScreams
params:
variation: 0.125
- type: SoundWhileAlive
- type: Strippable
- type: UserInterface
interfaces:
enum.StrippingUiKey.Key:
type: StrippableBoundUserInterface
- type: InventorySlots
- type: ContainerContainer
- type: Inventory
templateId: CP14Partial
femaleDisplacements:
cloak:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_cloak
pants:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_pants
shirt:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_shirt
- type: entity
parent: CP14BaseSpeciesDummy
id: CP14MobZombieDummy
categories: [ HideSpawnMenu ]
components:
- type: HumanoidAppearance
species: CP14Zombie
- type: Inventory
templateId: CP14Partial
femaleDisplacements:
cloak:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_cloak
gloves:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_cloak #Its ok for gloves
pants:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_pants
shirt:
sizeMaps:
32:
sprite: _CP14/Mobs/Species/Human/displacement.rsi
state: female_shirt

View File

@@ -1,14 +1,22 @@
- type: entity
parent: BaseItem
id: CP14OldLantern
name: Old lantern
name: old lantern
description: Relic of the Techomagic's past. Large, weighty, unpractical. At least feels good to crack some skulls with it.
components:
- type: Sprite
sprite: _CP14/Objects/Tools/magic-lamp.rsi
noRot: false
layers:
- state: lamp
- state: lamp
- type: Clothing
equipDelay: 0.25
unequipDelay: 0.25
sprite: _CP14/Objects/Tools/magic-lamp.rsi
quickEquip: false
breakOnMove: false
slots:
- belt
- type: MeleeWeapon
attackRate: 0.7
wideAnimationRotation: 10
@@ -35,6 +43,3 @@
radius: 4
netsync: false
- type: Appearance

View File

@@ -114,7 +114,7 @@
occludes: False
ent: null
- type: Inventory
templateId: CP14mannequin
templateId: CP14Partial
- type: InventorySlots
- type: Strippable
- type: UserInterface

View File

@@ -1,5 +1,5 @@
- type: inventoryTemplate
id: CP14mannequin
id: CP14Partial
slots:
# Left hotbar
# 0, y

View File

@@ -0,0 +1,154 @@
- type: species
id: CP14Zombie
name: cp14-species-name-human
roundStart: false
prototype: CP14BaseMobZombie
sprites: CP14MobZombieSprites
markingLimits: MobHumanMarkingLimits
dollPrototype: CP14MobZombieDummy
skinColoration: TintedHues
defaultSkinTone: "#ffffff"
maleFirstNames: CP14_Names_Human_Male_First
femaleFirstNames: CP14_Names_Human_Female_First
lastNames: CP14_Names_Human_Last
- type: speciesBaseSprites
id: CP14MobZombieSprites
sprites:
Head: CP14MobZombieHead
Chest: CP14MobZombieTorso
Eyes: CP14MobZombieEyes
LArm: CP14MobZombieLArm
RArm: CP14MobZombieRArm
LHand: CP14MobZombieLHand
RHand: CP14MobZombieRHand
LLeg: CP14MobZombieLLeg
RLeg: CP14MobZombieRLeg
LFoot: CP14MobZombieLFoot
RFoot: CP14MobZombieRFoot
- type: humanoidBaseSprite
id: CP14MobZombieEyes
baseSprite:
sprite: _CP14/Mobs/Customization/eyes.rsi
state: eyes
- type: humanoidBaseSprite
id: CP14MobZombieHead
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: head
- type: humanoidBaseSprite
id: CP14MobZombieHeadFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: head
- type: humanoidBaseSprite
id: CP14MobZombieTorso
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: torso
- type: humanoidBaseSprite
id: CP14MobZombieTorsoFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: torso
- type: humanoidBaseSprite
id: CP14MobZombieLLeg
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: l_leg
- type: humanoidBaseSprite
id: CP14MobZombieLLegFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: l_leg
- type: humanoidBaseSprite
id: CP14MobZombieLArm
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: l_arm
- type: humanoidBaseSprite
id: CP14MobZombieLArmFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: l_arm
- type: humanoidBaseSprite
id: CP14MobZombieLHand
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: l_hand
- type: humanoidBaseSprite
id: CP14MobZombieLHandFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: l_hand
- type: humanoidBaseSprite
id: CP14MobZombieLFoot
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: l_foot
- type: humanoidBaseSprite
id: CP14MobZombieLFootFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: l_foot
- type: humanoidBaseSprite
id: CP14MobZombieRLeg
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: r_leg
- type: humanoidBaseSprite
id: CP14MobZombieRLegFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: r_leg
- type: humanoidBaseSprite
id: CP14MobZombieRArm
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: r_arm
- type: humanoidBaseSprite
id: CP14MobZombieRArmFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: r_arm
- type: humanoidBaseSprite
id: CP14MobZombieRHand
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: r_hand
- type: humanoidBaseSprite
id: CP14MobZombieRHandFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: r_hand
- type: humanoidBaseSprite
id: CP14MobZombieRFoot
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/parts.rsi
state: r_foot
- type: humanoidBaseSprite
id: CP14MobZombieRFootFemale
baseSprite:
sprite: _CP14/Mobs/Species/Zombie/female_parts.rsi
state: r_foot

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 436 B

View File

@@ -0,0 +1,54 @@
{
"version": 1,
"license": "CLA",
"copyright": "Created by KREKS for CrystallPunk14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "full"
},
{
"name": "head",
"directions": 4
},
{
"name": "l_arm",
"directions": 4
},
{
"name": "l_foot",
"directions": 4
},
{
"name": "l_hand",
"directions": 4
},
{
"name": "l_leg",
"directions": 4
},
{
"name": "r_arm",
"directions": 4
},
{
"name": "r_foot",
"directions": 4
},
{
"name": "r_hand",
"directions": 4
},
{
"name": "r_leg",
"directions": 4
},
{
"name": "torso",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 950 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 360 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 369 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 401 B

View File

@@ -0,0 +1,54 @@
{
"version": 1,
"license": "CLA",
"copyright": "Created by KREKS for CrystallPunk14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "full"
},
{
"name": "head",
"directions": 4
},
{
"name": "l_arm",
"directions": 4
},
{
"name": "l_foot",
"directions": 4
},
{
"name": "l_hand",
"directions": 4
},
{
"name": "l_leg",
"directions": 4
},
{
"name": "r_arm",
"directions": 4
},
{
"name": "r_foot",
"directions": 4
},
{
"name": "r_hand",
"directions": 4
},
{
"name": "r_leg",
"directions": 4
},
{
"name": "torso",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 386 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 449 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 957 B