Refactors flashes to ECS, sunglasses protect you from being flashed. (#4579)

* Refactors flashes to ECS, sunglasses protect you from being flashed.

* VV ReadWrite for FlashImmunity Enabled.

* Use cached IEntityLookup.

* Consistent formatting.

* Fix flashbang duration.
Flash duration is a mess.

* Small area flash code cleanup.

* Flashable state is only sent to attached player.
This commit is contained in:
Vera Aguilera Puerto
2021-09-09 16:20:41 +02:00
committed by GitHub
parent e8f769d189
commit 77fe21eb0d
12 changed files with 228 additions and 132 deletions

View File

@@ -68,7 +68,7 @@
parent: ClothingEyesBase
id: ClothingEyesGlasses
name: glasses
description: You want to wear glasses in a game? Imagine rping as physically disabled.
description: A pair of spectacular spectacles with prescription lenses.
components:
- type: Sprite
sprite: Clothing/Eyes/Glasses/glasses.rsi
@@ -85,6 +85,7 @@
sprite: Clothing/Eyes/Glasses/sunglasses.rsi
- type: Clothing
sprite: Clothing/Eyes/Glasses/sunglasses.rsi
- type: FlashImmunity
- type: entity
parent: ClothingEyesBase
@@ -96,6 +97,7 @@
sprite: Clothing/Eyes/Glasses/secglasses.rsi
- type: Clothing
sprite: Clothing/Eyes/Glasses/secglasses.rsi
- type: FlashImmunity
#Make a scanner category when these actually function and we get the trayson
- type: entity