- add: Toggleable night vision (#31)

* - add: Toggleable night vision

* - add: Add death squad huds & night vision
This commit is contained in:
Aviu00
2024-02-07 00:40:41 +09:00
committed by GitHub
parent cb1b96e6c5
commit 1105109152
9 changed files with 112 additions and 29 deletions

View File

@@ -0,0 +1,2 @@
ent-ToggleNightVision = Переключить ночное зрение
.desc = Переключает ночное зрение.

View File

@@ -248,6 +248,9 @@
- type: Clothing
sprite: Clothing/Eyes/Glasses/ninjavisor.rsi
- type: FlashImmunity
- type: ClothingGrantComponent
component:
- type: NightVision
- type: entity
parent: ClothingEyesBase

View File

@@ -767,6 +767,13 @@
Caustic: 0.95
- type: FlashImmunity # WD edit
- type: EyeProtection # WD edit
- type: ShowHealthIcons
damageContainers:
- Biological
- type: ClothingGrantComponent
component:
- type: NightVision
- type: ShowWhiteHealthBars
#MISC. HARDSUITS
#Clown Hardsuit

View File

@@ -27,3 +27,17 @@
sprite: White/Objects/Weapons/hardlight_spear.rsi
state: spear
event: !type:ActivateHardlightSpearImplantEvent
- type: entity
id: ToggleNightVision
name: Toggle night vision.
description: Toggles night vision.
noSpawn: true
components:
- type: InstantAction
itemIconStyle: BigAction
priority: -20
icon:
sprite: White/Clothing/Head/nightvision.rsi
state: icon
event: !type:ToggleNightVisionEvent

View File

@@ -40,6 +40,8 @@
- type: ClothingGrantComponent
component:
- type: NightVision
toggleAction: null
toggleSound: null
color: White
- type: ShowWhiteHealthBars
damageContainers: