Add: Reindeer and snowman

This commit is contained in:
keslik
2024-12-26 15:21:15 +03:00
parent 2368d53966
commit 3b2a6eb27c
8 changed files with 141 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
ent-MobReindeer = северный олень
.desc = А где Санта?
ent-DecorationSnowman = снеговик
.desc = Кажется, он следит за тобой.

View File

@@ -0,0 +1,43 @@
- type: entity # WD
parent: BaseStructure
id: DecorationSnowman
name: snowman
description: It seems he is following you.
placement:
mode: AlignTileAny
components:
- type: Physics
bodyType: Static
- type: Transform
noRot: true
- type: Sprite
sprite: White/Objects/Decoration/NewYear/snowman.rsi
state: snowman
noRot: true
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.3
density: 190
mask:
- HighImpassable
- type: Damageable
damageContainer: StructuralInorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/Footsteps/snowstep3.ogg
- type: MeleeSound
soundGroups:
Brute:
path:
"/Audio/Weapons/star_hit.ogg"

View File

@@ -78,3 +78,59 @@
- type: FootstepModifier
footstepSoundCollection:
path: /Audio/Effects/hulk_step.ogg
- type: entity
name: reindeer
parent: SimpleMobBase
id: MobReindeer
description: Where is Santa?
components:
- type: Sprite
drawdepth: Mobs
layers:
- map: ["enum.DamageStateVisualLayers.Base"]
state: reindeer
sprite: White/Mobs/Animals/reindeer.rsi
- type: Tag
tags:
- DoorBumpOpener
- type: Physics
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeCircle
radius: 0.40
density: 400
mask:
- MobMask
layer:
- MobLayer
- type: DamageStateVisuals
states:
Alive:
Base: reindeer
Dead:
Base: dead
- type: Butcherable
spawned:
- id: FoodMeat
amount: 5
- type: InteractionPopup
successChance: 0.7
interactDelay: 2 # Avoids overlapping SFX due to spam - these SFX are a little longer than the typical 1 second.
interactSuccessString: petting-success-soft-floofy
interactFailureString: petting-failure-generic
interactSuccessSpawn: EffectHearts
interactSuccessSound:
path: /Audio/Animals/kangaroo_grunt.ogg
- type: Perishable
molsPerSecondPerUnitMass: 0.0015
- type: NpcFactionMember
factions:
- Passive
- type: Body
prototype: AnimalRuminant
- type: HTN
rootTask:
task: RuminantCompound

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@@ -0,0 +1,23 @@
{
"version": 1,
"size": {
"x": 32,
"y": 32
},
"license": "CC-BY-SA-3.0",
"copyright": "Taken from ParadiseSS13 at https://github.com/ss220club/Paradise-SS220/blob/master/icons/mob/winter_mob.dmi",
"states": [
{
"name": "dead",
"delays": [
[
1
]
]
},
{
"name": "reindeer",
"directions": 4
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from ParadiseSS13 at https://github.com/ss220club/Paradise-SS220/blob/master/icons/obj/statue.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "snowman"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 912 B