Bochka (#512)
* just barrel * add Barrels for liquids * Fix1 * Update Sprite Beer * fixes * fix2 * fix3
This commit is contained in:
@@ -0,0 +1,74 @@
|
|||||||
|
- type: entity
|
||||||
|
id: Barrel
|
||||||
|
name: Бочка
|
||||||
|
description: Большой обьект для хранения.
|
||||||
|
parent: BaseStructureDynamic
|
||||||
|
components:
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 500
|
||||||
|
- type: Anchorable
|
||||||
|
- type: InteractionOutline
|
||||||
|
- type: Damageable
|
||||||
|
damageContainer: StructuralInorganic
|
||||||
|
damageModifierSet: Wood
|
||||||
|
- type: Destructible
|
||||||
|
thresholds:
|
||||||
|
- trigger:
|
||||||
|
!type:DamageTrigger
|
||||||
|
damage: 150
|
||||||
|
behaviors:
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
- trigger:
|
||||||
|
!type:DamageTrigger
|
||||||
|
damage: 100
|
||||||
|
behaviors:
|
||||||
|
- !type:EmptyAllContainersBehaviour
|
||||||
|
- !type:SpawnEntitiesBehavior
|
||||||
|
spawn:
|
||||||
|
MaterialWoodPlank1:
|
||||||
|
min: 3
|
||||||
|
max: 5
|
||||||
|
- !type:DoActsBehavior
|
||||||
|
acts: [ "Destruction" ]
|
||||||
|
- type: Climbable
|
||||||
|
- type: Sprite
|
||||||
|
noRot: true
|
||||||
|
sprite: /Textures/White/Objects/Storage/Barrel.rsi
|
||||||
|
layers:
|
||||||
|
- state: Barrel
|
||||||
|
- state: Barrel-top
|
||||||
|
map: [ top ]
|
||||||
|
visible: true
|
||||||
|
- type: Appearance
|
||||||
|
- type: GenericVisualizer
|
||||||
|
visuals:
|
||||||
|
enum.StorageVisuals.Open:
|
||||||
|
top:
|
||||||
|
True: { visible: false }
|
||||||
|
False: { visible: true }
|
||||||
|
- type: Storage
|
||||||
|
grid:
|
||||||
|
- 0,0,9,5
|
||||||
|
storageOpenSound: /Audio/Effects/closetopen.ogg
|
||||||
|
storageCloseSound: /Audio/Effects/closetclose.ogg
|
||||||
|
- type: UserInterface
|
||||||
|
interfaces:
|
||||||
|
- key: enum.StorageUiKey.Key
|
||||||
|
type: StorageBoundUserInterface
|
||||||
|
- type: ContainerContainer
|
||||||
|
containers:
|
||||||
|
storagebase: !type:Container
|
||||||
|
ents: [ ]
|
||||||
|
- type: Fixtures
|
||||||
|
fixtures:
|
||||||
|
fix1:
|
||||||
|
shape:
|
||||||
|
!type:PhysShapeCircle
|
||||||
|
radius: 0.3
|
||||||
|
# very not dense to make it easy to pull
|
||||||
|
density: 20
|
||||||
|
mask:
|
||||||
|
- MachineMask
|
||||||
|
layer:
|
||||||
|
- MachineLayer
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
- type: entity
|
||||||
|
id: Barrel_Beer_Empty
|
||||||
|
parent: [StorageTank, StructureWheeled]
|
||||||
|
name: бочка пива
|
||||||
|
description: Изготовлено древними дворфами
|
||||||
|
suffix: Empty
|
||||||
|
components:
|
||||||
|
- type: StaticPrice
|
||||||
|
price: 750
|
||||||
|
- type: Sprite
|
||||||
|
sprite: /Textures/White/Objects/Storage/Barrel_Beer.rsi
|
||||||
|
layers:
|
||||||
|
- state: Barrel_Beer
|
||||||
|
- type: Appearance
|
||||||
|
- type: ExaminableSolution
|
||||||
|
solution: tank
|
||||||
|
- type: ReagentTank
|
||||||
|
tankType: Fuel
|
||||||
|
|
||||||
|
- type: entity
|
||||||
|
id: Barrel_Beer_Full
|
||||||
|
parent: Barrel_Beer_Empty
|
||||||
|
suffix: Full
|
||||||
|
components:
|
||||||
|
- type: SolutionContainerManager
|
||||||
|
solutions:
|
||||||
|
tank:
|
||||||
|
reagents:
|
||||||
|
- ReagentId: Beer
|
||||||
|
Quantity: 1500
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 230 B |
BIN
Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel.png
Normal file
BIN
Resources/Textures/White/Objects/Storage/Barrel.rsi/Barrel.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 692 B |
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "ГООООООООООЛ",
|
||||||
|
"copyright": "тебя ебать не должно",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "Barrel"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Barrel-top"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 823 B |
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"version": 1,
|
||||||
|
"license": "ГООООООООООЛ",
|
||||||
|
"copyright": "тебя ебать не должно",
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "Barrel_Beer"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user