- add: Toggleable night vision (#31)
* - add: Toggleable night vision * - add: Add death squad huds & night vision
This commit is contained in:
2
Resources/Locale/ru-RU/_miracle/night_vision.ftl
Normal file
2
Resources/Locale/ru-RU/_miracle/night_vision.ftl
Normal file
@@ -0,0 +1,2 @@
|
||||
ent-ToggleNightVision = Переключить ночное зрение
|
||||
.desc = Переключает ночное зрение.
|
||||
@@ -248,6 +248,9 @@
|
||||
- type: Clothing
|
||||
sprite: Clothing/Eyes/Glasses/ninjavisor.rsi
|
||||
- type: FlashImmunity
|
||||
- type: ClothingGrantComponent
|
||||
component:
|
||||
- type: NightVision
|
||||
|
||||
- type: entity
|
||||
parent: ClothingEyesBase
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
- type: ClothingGrantComponent
|
||||
component:
|
||||
- type: NightVision
|
||||
toggleAction: null
|
||||
toggleSound: null
|
||||
color: White
|
||||
- type: ShowWhiteHealthBars
|
||||
damageContainers:
|
||||
|
||||
Reference in New Issue
Block a user