Skip to content

Commit

Permalink
Weather Block Marker, Rad Markers and Invisible Walls (#862)
Browse files Browse the repository at this point in the history
Ported from Nuclear14 by request of @OldDanceJacket as they wanted the
weather blocking markers. Tought you may as well get the rest of the
stuff for rad markers and invisible walls too. Useful for planets.

---------

Signed-off-by: Peptide90 <[email protected]>
Signed-off-by: VMSolidus <[email protected]>
Co-authored-by: VMSolidus <[email protected]>
Co-authored-by: DEATHB4DEFEAT <[email protected]>
  • Loading branch information
3 people authored Sep 14, 2024
1 parent 956b334 commit 41a8b1b
Show file tree
Hide file tree
Showing 9 changed files with 132 additions and 0 deletions.
100 changes: 100 additions & 0 deletions Resources/Prototypes/Entities/Markers/environmental.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
# Radiation
- type: entity
name: Marker Radiation
id: MarkerRadiation1
parent: MarkerBase
suffix: intensity 1
components:
- type: Sprite
layers:
- sprite: Markers/environment.rsi
state: base-green
shader: unshaded
- sprite: Markers/environment.rsi
shader: unshaded
state: rad
- type: RadiationSource
intensity: 1

- type: entity
parent: MarkerRadiation1
id: MarkerRadiation2
suffix: intensity 2
components:
- type: RadiationSource
intensity: 2

- type: entity
parent: MarkerRadiation1
id: MarkerRadiation3
suffix: intensity 3
components:
- type: RadiationSource
intensity: 3

- type: entity
parent: MarkerRadiation1
id: MarkerRadiation4
suffix: intensity 4
components:
- type: RadiationSource
intensity: 4

- type: entity
parent: MarkerRadiation1
id: MarkerRadiation5
suffix: intensity 5
components:
- type: RadiationSource
intensity: 5

- type: entity
parent: MarkerRadiation1
id: MarkerRadiation10
suffix: intensity 10
components:
- type: RadiationSource
intensity: 10

# Invisible Walls
- type: entity
name: Marker Blocker
id: MarkerBlocker
parent: MarkerBase
suffix: invisible wall
components:
- type: Sprite
layers:
- sprite: Markers/environment.rsi
state: base-blue
shader: unshaded
- sprite: Markers/environment.rsi
shader: unshaded
state: wall
- type: PlacementReplacement
key: blocker
- type: Fixtures
fixtures:
fix1:
shape:
!type:PhysShapeAabb
bounds: "-0.5,-0.5,0.5,0.5"
mask:
- FullTileMask
layer:
- WallLayer
density: 1000
- type: Physics
bodyType: Static


# Weather Blocker
- type: entity
name: Marker Weather Blocker
id: MarkerWeatherblocker
parent: MarkerBase
components:
- type: Sprite
sprite: Markers/environment.rsi
state: weather
- type: BlockWeather
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.
Binary file added Resources/Textures/Markers/environment.rsi/fire.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions Resources/Textures/Markers/environment.rsi/meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"version": 1,
"license": "CC-BY-NC-SA-3.0",
"copyright": "Nuclear14",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "base-blue"
},
{
"name": "base-red"
},
{
"name": "base-green"
},
{
"name": "fire"
},
{
"name": "rad"
},
{
"name": "wall"
},
{
"name": "weather"
}
]
}
Binary file added Resources/Textures/Markers/environment.rsi/rad.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 Resources/Textures/Markers/environment.rsi/wall.png
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 41a8b1b

Please sign in to comment.