-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Barricades, sandbags, razorwire, tank traps (#141)
sandbags, razorwire, tank traps
- Loading branch information
Showing
10 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
147 changes: 147 additions & 0 deletions
147
Resources/Prototypes/Nuclear14/Entities/Structures/Furniture/barricades.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,147 @@ | ||
- type: entity | ||
id: N14BarricadeSandbagSingle | ||
parent: BaseStructure | ||
name: sandbags | ||
description: A sandbag fortification. | ||
components: | ||
- type: Sprite | ||
sprite: Nuclear14/Structures/Furniture/barricades.rsi | ||
netsync: false | ||
state: sandbag_single | ||
- type: Damageable | ||
damageModifierSet: Wood | ||
damageContainer: Inorganic | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 100 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
path: /Audio/Effects/woodhit.ogg | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: Fixtures | ||
fixtures: | ||
fix1: | ||
shape: | ||
!type:PhysShapeAabb | ||
bounds: "-0.49,-0.49,0.49,-0.25" | ||
density: 1000 | ||
mask: | ||
- TableMask | ||
layer: | ||
- TableLayer | ||
- type: Climbable | ||
|
||
- type: entity | ||
id: N14BarricadeTanktrap | ||
parent: N14BarricadeSandbagSingle | ||
name: tank trap | ||
description: A metal fabricated spike for blocking vehicles. | ||
components: | ||
- type: Sprite | ||
sprite: Nuclear14/Structures/Furniture/barricades.rsi | ||
netsync: false | ||
state: iron_barricade | ||
- type: Damageable | ||
damageModifierSet: Metallic | ||
damageContainer: Inorganic | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 200 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
path: /Audio/Effects/metalbreak.ogg | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: Fixtures | ||
fixtures: | ||
fix1: | ||
shape: | ||
!type:PhysShapeAabb | ||
bounds: "-0.5,-0.5,0.5,0.5" | ||
density: 1000 | ||
mask: | ||
- TableMask | ||
layer: | ||
- TableLayer | ||
|
||
- type: entity | ||
id: N14BarricadeTanktrapRusty | ||
parent: N14BarricadeTanktrap | ||
name: tank trap | ||
description: A rusty metal fabricated spike for blocking vehicles. | ||
components: | ||
- type: Sprite | ||
sprite: Nuclear14/Structures/Furniture/barricades.rsi | ||
netsync: false | ||
state: iron_barricadeA | ||
|
||
- type: entity | ||
parent: BaseStructure | ||
id: N14BarricadeRazorwire | ||
name: razorwire barricade | ||
description: A razorwire fortification. | ||
components: | ||
- type: Sprite | ||
sprite: Nuclear14/Structures/Furniture/barricades.rsi | ||
netsync: false | ||
state: barbedwire_single | ||
- type: Damageable | ||
damageModifierSet: Metallic | ||
damageContainer: Inorganic | ||
- type: Destructible | ||
thresholds: | ||
- trigger: | ||
!type:DamageTrigger | ||
damage: 50 | ||
behaviors: | ||
- !type:PlaySoundBehavior | ||
sound: | ||
path: /Audio/Effects/metalbreak.ogg | ||
- !type:DoActsBehavior | ||
acts: ["Destruction"] | ||
- type: Sharp # not sure this is needed | ||
- type: DamageOtherOnHit | ||
damage: | ||
types: | ||
Slash: 2 | ||
- type: StepTrigger | ||
intersectRatio: 0.2 | ||
requiredTriggeredSpeed: 0 | ||
- type: TriggerOnStepTrigger | ||
- type: DamageUserOnTrigger | ||
damage: | ||
types: | ||
Piercing: 5 | ||
- type: SlowContacts | ||
walkSpeedModifier: 0.5 | ||
sprintSpeedModifier: 0.5 | ||
- type: Fixtures | ||
fixtures: | ||
slips: | ||
shape: | ||
!type:PhysShapeAabb | ||
bounds: "-0.49,-0.49,0.49,-0.25" | ||
hard: false | ||
layer: | ||
- LowImpassable | ||
fix1: | ||
shape: | ||
!type:PhysShapeAabb | ||
bounds: "-0.49,-0.49,0.49,-0.25" | ||
density: 100 | ||
mask: | ||
- ItemMask | ||
- type: CollisionWake # not sure this is needed | ||
enabled: false | ||
- type: Slippery | ||
slipSound: | ||
path: /Audio/Effects/fence_rattle1.ogg | ||
launchForwardsMultiplier: 0 | ||
paralyzeTime: 0 |
Binary file added
BIN
+400 Bytes
...extures/Nuclear14/Structures/Furniture/barricades.rsi/barbedwire_horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+792 Bytes
...es/Textures/Nuclear14/Structures/Furniture/barricades.rsi/barbedwire_single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+439 Bytes
...urces/Textures/Nuclear14/Structures/Furniture/barricades.rsi/iron_barricade.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+382 Bytes
...rces/Textures/Nuclear14/Structures/Furniture/barricades.rsi/iron_barricade2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1 KB
...ces/Textures/Nuclear14/Structures/Furniture/barricades.rsi/iron_barricade2A.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.2 KB
...rces/Textures/Nuclear14/Structures/Furniture/barricades.rsi/iron_barricadeA.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions
38
Resources/Textures/Nuclear14/Structures/Furniture/barricades.rsi/meta.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"version": 1, | ||
"license": "CC-BY-SA-3.0", | ||
"copyright": "Taken from MS13 at commit https://github.com/Mojave-Sun/mojave-sun-13/commit/c935466d94a1450d41b2b2a8a904b46d0f7dceab", | ||
"size": { | ||
"x": 32, | ||
"y": 32 | ||
}, | ||
"states": [ | ||
{ | ||
"name": "sandbag_single", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "sandbag_horizontal", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "barbedwire_horizontal" | ||
}, | ||
{ | ||
"name": "barbedwire_single", | ||
"directions": 4 | ||
}, | ||
{ | ||
"name": "iron_barricade" | ||
}, | ||
{ | ||
"name": "iron_barricadeA" | ||
}, | ||
{ | ||
"name": "iron_barricade2" | ||
}, | ||
{ | ||
"name": "iron_barricade2A" | ||
} | ||
] | ||
} |
Binary file added
BIN
+1.49 KB
...s/Textures/Nuclear14/Structures/Furniture/barricades.rsi/sandbag_horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.72 KB
...urces/Textures/Nuclear14/Structures/Furniture/barricades.rsi/sandbag_single.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.