Blindness rework - damaged eyes are now a stylized simulation of legal blindness (#23212)

* blindness rework - damaged eyes now simulate legal blindness

* hEY THATS FOR DEMONSTRATION PURPOSES ONLY AAA

* attributions

* makes eyeclosecomponent adminbus compatible

* useshader(null)
This commit is contained in:
deathride58
2024-01-03 04:07:02 -05:00
committed by GitHub
parent 1a531342c5
commit aa6645c8e9
28 changed files with 508 additions and 89 deletions

View File

@@ -274,3 +274,15 @@
icon: { sprite: Objects/Fun/bikehorn.rsi, state: icon }
event: !type:ActivateImplantEvent
useDelay: 1
- type: entity
id: ActionToggleEyes
name: Open/Close eyes
description: Close your eyes to protect your peepers, or open your eyes to enjoy the pretty lights.
noSpawn: true
components:
- type: InstantAction
icon: Interface/Actions/eyeopen.png
iconOn: Interface/Actions/eyeclose.png
event: !type:ToggleEyesActionEvent
useDelay: 1 # so u cant give yourself and observers eyestrain by rapidly spamming the action

View File

@@ -2,6 +2,12 @@
id: CircleMask
kind: source
path: "/Textures/Shaders/circle_mask.swsl"
params:
CircleRadius: 15.0
CircleMinDist: 0.25
CirclePow: 0.5
CircleMax: 4.0
CircleMult: 0.5
- type: shader
id: GradientCircleMask
@@ -87,3 +93,9 @@
id: HorizontalCut
kind: source
path: "/Textures/Shaders/hcut.swsl"
# Stylized simulation of blindness
- type: shader
id: Cataracts
kind: source
path: "/Textures/Shaders/cataracts.swsl"