Хлопушки! (#2727)

This commit is contained in:
Kendrick 2025-08-15 00:23:59 +03:00 committed by GitHub
parent b7bd1ef512
commit baec9b9dfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 135 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,6 @@
ent-FirecrackerBundle = связка хлопушек
.desc = Яркая связка хлопушек с запахом дешёвого пластика.
ent-Firecracker = хлопушка
.desc = Красная хлопушка, издающая громкий звук при броске.
ent-FirecrackerBox = коробка хлопушек
.desc = Красочная коробка, полная праздничных хлопушек.

View file

@ -6,3 +6,5 @@
ToySwordDoubled: 2
FaketAnomalyIceFlatpack: 2
ClusterSyndyFlashGrenade: 5
FirecrackerBundle: 4
FirecrackerBox: 4

View file

@ -0,0 +1,85 @@
- type: entity
parent: ScatteringGrenadeBase
id: FirecrackerBundle
name: firecracker bundle
description: This item emits a pungent smell of cheap plastic.
components:
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Grenades/clusterpetard.rsi
layers:
- state: icon
map: ["enum.TriggerVisualLayers.Base"]
- type: ScatteringGrenade
capacity: 10
fillPrototype: Firecracker
distance: 3
- type: OnUseTimerTrigger # todo: make it activate through welder/lighter/fire instead
delay: 5
examinable: false
initialBeepDelay: 0
beepSound: /Audio/Effects/lightburn.ogg
- type: TimerTriggerVisuals
- type: RandomTimerTrigger
min: 1
max: 10
- type: ExplodeOnTrigger
- type: entity
parent: BaseItem
id: Firecracker
name: firecracker
description: This item emits a pungent smell of cheap plastic.
components:
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Grenades/fireworkpetard.rsi
state: icon
- type: Item
size: Tiny
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:PlaySoundBehavior
sound:
path: /Audio/_Sunrise/Misc/petard.ogg
params:
variation: 0.2
- !type:ExplodeBehavior
- type: DamageOnLand
damage:
types:
Blunt: 3
- type: Explosive
explosionType: Default
maxIntensity: 0.01
intensitySlope: 1
totalIntensity: 0.01
- type: entity
parent: BaseStorageItem
id: FirecrackerBox
name: firecrackers box
description: Contains firecrackers for a New Year's mood.
components:
- type: Item
size: Normal
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Grenades/firecrackerbox.rsi
state: box
- type: Storage
grid:
- 0,0,4,3
areaInsert: true
maxItemSize: Tiny
- type: StorageFill
contents:
- id: Firecracker
amount: 10
- type: Dumpable

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

View file

@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made for Sunrise",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 B

View file

@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made for Sunrise",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "box"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

View file

@ -0,0 +1,14 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Made for Sunrise",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
}
]
}