Skip to content

Commit

Permalink
Barricades, sandbags, razorwire, tank traps (#141)
Browse files Browse the repository at this point in the history
sandbags, razorwire, tank traps
  • Loading branch information
Peptide90 authored Dec 12, 2023
1 parent 7c6d27f commit 44b6406
Show file tree
Hide file tree
Showing 10 changed files with 185 additions and 0 deletions.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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"
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 44b6406

Please sign in to comment.