Skip to content

Commit a015502

Browse files
EstKemranKit0vrasTheArturZh
authored
NewBarricade (#696)
* Barricade * Graph * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * license * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Sprite * spritecomponent v0.2 * NewlyOptimizedGraph v0.1 Проблема та же. Graph не видит рецепта. * WizardVarricadeFix * NewSprite Спрайты, соответствующие стилю игры * FixStrengthBarricade * NewlyOptimizedGraph v0.2 Сделал 3-и прототипа вместо 1-ого. Разделил прототипы Graph по материалам из которых строиться баррикады * NewlyOptimizedGraph v0.3 * licensefix * FixTags * Update Resources/Prototypes/Entities/Structures/barricades.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/Recipes/Construction/structures.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/Recipes/Construction/structures.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/Recipes/Construction/structures.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/Recipes/Construction/structures.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * Update Resources/Prototypes/SS220/Entities/Structures/barricade.yml Co-authored-by: Kit0vras <[email protected]> * licensefix * fixerrorinthetest * Update Resources/Textures/SS220/Structures/barricades.rsi/meta.json Co-authored-by: Artur <[email protected]> * Update Resources/Textures/SS220/Structures/barricades.rsi/meta.json Co-authored-by: Artur <[email protected]> * Update barricadesteel.yml * Update barricadesteel.yml * Update barricade.yml * FixTest --------- Co-authored-by: Kit0vras <[email protected]> Co-authored-by: Artur <[email protected]>
1 parent 3e75528 commit a015502

17 files changed

+779
-5
lines changed

Resources/Prototypes/Entities/Structures/barricades.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
fix1:
9696
shape:
9797
!type:PhysShapeAabb
98-
bounds: "-0.49,-0.39,0.49,-0.36"
98+
bounds: "-0.5,-0.5,0.5,-0.36" #SS220-Barricade
9999
mask:
100100
- FullTileMask
101101
layer:

Resources/Prototypes/Recipes/Construction/structures.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -786,8 +786,8 @@
786786
objectType: Structure
787787
placementMode: SnapgridCenter
788788
canBuildInImpassable: false
789-
conditions:
790-
- !type:TileNotBlocked
789+
#conditions: #SS220-Barricade
790+
#- !type:TileNotBlocked #SS220-Barricade
791791

792792
- type: construction
793793
name: wooden barricade
@@ -803,8 +803,8 @@
803803
objectType: Structure
804804
placementMode: SnapgridCenter
805805
canBuildInImpassable: false
806-
conditions:
807-
- !type:TileNotBlocked
806+
#conditions: #SS220-Barricade
807+
#- !type:TileNotBlocked #SS220-Barricade
808808

809809
- type: construction
810810
name: railing
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,366 @@
1+
#© SS220, An EULA/CLA with a hosting restriction, full text: https://raw.githubusercontent.com/SerbiaStrong-220/space-station-14/master/CLA.txt
2+
3+
#Абстрактные базы
4+
- type: entity
5+
id: BaseBarricade220
6+
description: A barricade made out of wood planks. It looks like it can take a few solid hits.
7+
parent: BaseStructure
8+
name: barricade
9+
abstract: true
10+
components:
11+
- type: InteractionOutline
12+
- type: Sprite
13+
sprite: SS220/Structures/barricades.rsi
14+
drawdepth: BlastDoors
15+
noRot: false
16+
- type: Occluder
17+
- type: Appearance
18+
- type: Physics
19+
- type: Fixtures
20+
fixtures:
21+
fix1:
22+
shape:
23+
!type:PhysShapeAabb {}
24+
mask:
25+
- FullTileMask
26+
layer:
27+
- WallLayer
28+
29+
- type: entity
30+
id: BaseBarricadeDirectional220
31+
description: A barricade made out of wood planks. It looks like it can take a few solid hits.
32+
parent: BaseBarricade220
33+
name: barricadedirectional
34+
abstract: true
35+
components:
36+
- type: Fixtures
37+
fixtures:
38+
fix1:
39+
shape:
40+
!type:PhysShapeAabb
41+
bounds: "-0.5,-0.5,0.5,-0.36"
42+
mask:
43+
- FullTileMask
44+
layer:
45+
- WallLayer
46+
47+
- type: entity
48+
id: BaseBarricadeFloor220
49+
description: A barricade made out of wood planks. It looks like it can take a few solid hits.
50+
parent: BaseStructure
51+
name: barricade
52+
abstract: true
53+
components:
54+
- type: InteractionOutline
55+
- type: Sprite
56+
sprite: SS220/Structures/barricades.rsi
57+
drawdepth: BlastDoors
58+
noRot: false
59+
- type: Appearance
60+
- type: AtmosExposed
61+
- type: Physics
62+
- type: Fixtures
63+
fixtures:
64+
fix1:
65+
shape:
66+
!type:PhysShapeAabb
67+
bounds: "-0.5,-0.5,0.39,-0.36"
68+
mask:
69+
- FullTileMask
70+
layer:
71+
- WallLayer
72+
#Баррикады
73+
- type: entity
74+
id: BarricadeWooden
75+
description: Баррикада из уплотнённых деревянных досок. Защищает вас от чужих глаз.
76+
parent: BaseBarricade220
77+
name: уплотнённая деревянная баррикада
78+
placement:
79+
mode: SnapgridCenter
80+
components:
81+
- type: Sprite
82+
state: barricade_wooden
83+
- type: Construction
84+
graph: BarricadeWooden220
85+
node: barricadewood
86+
- type: Tag
87+
tags:
88+
- Wooden
89+
- type: Flammable
90+
fireSpread: true
91+
damage:
92+
types:
93+
Heat: 2
94+
- type: FireVisuals
95+
sprite: Effects/fire.rsi
96+
normalState: 1
97+
- type: Damageable
98+
damageModifierSet: Wood
99+
damageContainer: StructuralInorganic
100+
- type: Destructible
101+
thresholds:
102+
- trigger:
103+
!type:DamageTrigger
104+
damage: 60
105+
behaviors:
106+
- !type:SpawnEntitiesBehavior
107+
spawn:
108+
MaterialWoodPlank1:
109+
min: 3
110+
max: 3
111+
- !type:DoActsBehavior
112+
acts: [ "Destruction" ]
113+
114+
- type: entity
115+
id: BarricadeSteel
116+
description: Баррикада из стальных листов. Защищает вас от чужих глаз. Способна выдержать пулю.
117+
parent: BaseBarricade220
118+
name: стальная баррикада
119+
placement:
120+
mode: SnapgridCenter
121+
components:
122+
- type: Sprite
123+
state: barricade_steel
124+
- type: Construction
125+
graph: BarricadeSteel220
126+
node: barricadesteel
127+
- type: Damageable
128+
damageModifierSet: StructuralMetallic
129+
damageContainer: StructuralInorganic
130+
- type: Destructible
131+
thresholds:
132+
- trigger:
133+
!type:DamageTrigger
134+
damage: 120
135+
behaviors:
136+
- !type:SpawnEntitiesBehavior
137+
spawn:
138+
SheetSteel1:
139+
min: 2
140+
max: 2
141+
- !type:DoActsBehavior
142+
acts: [ "Destruction" ]
143+
144+
- type: entity
145+
id: BarricadePlasteel
146+
description: Баррикада из листов пластали. Защищает вас от чужих глаз. Способна выдержать взрыв C4.
147+
parent: BaseBarricade220
148+
name: укреплённая баррикада
149+
placement:
150+
mode: SnapgridCenter
151+
components:
152+
- type: Sprite
153+
state: barricade_plasteel
154+
- type: Construction
155+
graph: BarricadePlasteel220
156+
node: barricadeplasteel
157+
- type: Damageable
158+
damageModifierSet: StructuralMetallic
159+
damageContainer: StructuralInorganic
160+
- type: Destructible
161+
thresholds:
162+
- trigger:
163+
!type:DamageTrigger
164+
damage: 260
165+
behaviors:
166+
- !type:SpawnEntitiesBehavior
167+
spawn:
168+
SheetSteel1:
169+
min: 2
170+
max: 2
171+
SheetPlasteel1:
172+
min: 1
173+
max: 1
174+
- !type:DoActsBehavior
175+
acts: [ "Destruction" ]
176+
177+
178+
#Направленные баррикады
179+
180+
- type: entity
181+
id: BarricadeWoodenDirectional
182+
description: Баррикада из уплотнённых деревянных досок. Защищает вас от чужих глаз.
183+
parent: BaseBarricadeDirectional220
184+
name: уплотнённая деревянная баррикада
185+
placement:
186+
mode: SnapgridCenter
187+
components:
188+
- type: Sprite
189+
state: barricade_wooden_directional
190+
- type: Construction
191+
graph: BarricadeWooden220
192+
node: barricadewooddirectional
193+
- type: Tag
194+
tags:
195+
- Wooden
196+
- type: Flammable
197+
fireSpread: true
198+
damage:
199+
types:
200+
Heat: 2
201+
- type: FireVisuals
202+
sprite: Effects/fire.rsi
203+
normalState: 1
204+
- type: Damageable
205+
damageModifierSet: Wood
206+
damageContainer: StructuralInorganic
207+
- type: Destructible
208+
thresholds:
209+
- trigger:
210+
!type:DamageTrigger
211+
damage: 45
212+
behaviors:
213+
- !type:SpawnEntitiesBehavior
214+
spawn:
215+
MaterialWoodPlank1:
216+
min: 2
217+
max: 2
218+
- !type:DoActsBehavior
219+
acts: [ "Destruction" ]
220+
221+
- type: entity
222+
id: BarricadeSteelDirectional
223+
description: Баррикада из стальных листов. Защищает вас от чужих глаз. Способна выдержать пулю.
224+
parent: BaseBarricadeDirectional220
225+
name: стальная баррикада
226+
placement:
227+
mode: SnapgridCenter
228+
components:
229+
- type: Sprite
230+
state: barricade_steel_directional
231+
- type: Construction
232+
graph: BarricadeSteel220
233+
node: barricadesteeldirectional
234+
- type: Damageable
235+
damageModifierSet: StructuralMetallic
236+
damageContainer: StructuralInorganic
237+
- type: Destructible
238+
thresholds:
239+
- trigger:
240+
!type:DamageTrigger
241+
damage: 80
242+
behaviors:
243+
- !type:DoActsBehavior
244+
acts: [ "Destruction" ]
245+
246+
- type: entity
247+
id: BarricadePlasteelDirectional
248+
description: Баррикада из листов пластали. Защищает вас от чужих глаз. Способна выдержать взрыв C4.
249+
parent: BaseBarricadeDirectional220
250+
name: укреплённая баррикада
251+
placement:
252+
mode: SnapgridCenter
253+
components:
254+
- type: Sprite
255+
state: barricade_plasteel_directional
256+
- type: Construction
257+
graph: BarricadePlasteel220
258+
node: barricadeplasteeldirectional
259+
- type: Damageable
260+
damageModifierSet: StructuralMetallic
261+
damageContainer: StructuralInorganic
262+
- type: Destructible
263+
thresholds:
264+
- trigger:
265+
!type:DamageTrigger
266+
damage: 200
267+
behaviors:
268+
- !type:SpawnEntitiesBehavior
269+
spawn:
270+
SheetSteel1:
271+
min: 1
272+
max: 1
273+
SheetPlasteel1:
274+
min: 1
275+
max: 1
276+
- !type:DoActsBehavior
277+
acts: [ "Destruction" ]
278+
279+
280+
#Напольные баррикады
281+
282+
- type: entity
283+
id: BarricadeWoodenFloor
284+
description: Баррикада небольшой высоты из деревянных досок. Есть шанс защитить от шальной пули.
285+
parent: BaseBarricadeFloor220
286+
name: напольная деревянная баррикада
287+
placement:
288+
mode: SnapgridCenter
289+
components:
290+
- type: Sprite
291+
state: barricade_wooden_floor
292+
- type: Construction
293+
graph: BarricadeWooden220
294+
node: barricadewoodfloor
295+
- type: Tag
296+
tags:
297+
- Wooden
298+
- type: Flammable
299+
fireSpread: true
300+
damage:
301+
types:
302+
Heat: 2
303+
- type: FireVisuals
304+
sprite: Effects/fire.rsi
305+
normalState: 1
306+
- type: Damageable
307+
damageModifierSet: Wood
308+
damageContainer: StructuralInorganic
309+
- type: Destructible
310+
thresholds:
311+
- trigger:
312+
!type:DamageTrigger
313+
damage: 30
314+
behaviors:
315+
- !type:DoActsBehavior
316+
acts: [ "Destruction" ]
317+
318+
- type: entity
319+
id: BarricadeSteelFloor
320+
description: Баррикада небольшой высоты из листов стали. Есть шанс защитить от шальной пули.
321+
parent: BaseBarricadeFloor220
322+
name: напольная стальная баррикада
323+
placement:
324+
mode: SnapgridCenter
325+
components:
326+
- type: Sprite
327+
state: barricade_steel_floor
328+
- type: Construction
329+
graph: BarricadeSteel220
330+
node: barricadesteelfloor
331+
- type: Damageable
332+
damageModifierSet: StructuralMetallic
333+
damageContainer: StructuralInorganic
334+
- type: Destructible
335+
thresholds:
336+
- trigger:
337+
!type:DamageTrigger
338+
damage: 50
339+
behaviors:
340+
- !type:DoActsBehavior
341+
acts: [ "Destruction" ]
342+
343+
- type: entity
344+
id: BarricadePlasteelFloor
345+
description: Баррикада небольшой высоты из листов пластали. Есть шанс защитить от шальной пули.
346+
parent: BaseBarricadeFloor220
347+
name: напольная укреплённая баррикада
348+
placement:
349+
mode: SnapgridCenter
350+
components:
351+
- type: Sprite
352+
state: barricade_plasteel_floor
353+
- type: Construction
354+
graph: BarricadePlasteel220
355+
node: barricadeplasteelfloor
356+
- type: Damageable
357+
damageModifierSet: StructuralMetallic
358+
damageContainer: StructuralInorganic
359+
- type: Destructible
360+
thresholds:
361+
- trigger:
362+
!type:DamageTrigger
363+
damage: 90
364+
behaviors:
365+
- !type:DoActsBehavior
366+
acts: [ "Destruction" ]

0 commit comments

Comments
 (0)