ACE3/documentation/framework/goggles-framework.md

36 lines
1.2 KiB
Markdown
Raw Normal View History

2015-08-23 19:03:00 +00:00
---
layout: wiki
2015-08-25 01:23:37 +00:00
title: Goggles Framework
description: Explains how to set-up goggles with ACE3 goggles system.
2015-08-23 19:03:00 +00:00
group: framework
order: 5
parent: wiki
---
2015-08-25 01:23:37 +00:00
## 1. Config Values
2015-08-23 19:03:00 +00:00
```c++
class CfgGlasses {
2015-08-25 01:23:37 +00:00
class MyGoggles {
ace_color[] = {0, 0, -1}; // Post-proccess color
ace_tintAmount = 8; // Amount of tint applied to the color
ace_resistance = 1; // Resistance to breaking (0 or 1 or 2)
ace_protection = 0; // Provides protection (0-no, 1-yes)
ace_overlay = ""; // (Optional) Default overlay image path ("" for none)
ace_overlayDirt = "A3\Ui_f\data\igui\rsctitles\HealthTextures\dust_upper_ca.paa"; // (Optional) Dirt overlay image path
ace_overlayCracked = "mod\textures\HUD\Cracked.paa"; // (Optional) Cracked overlay image path
ace_dustPath = "mod\textures\fx\dust\dust1.paa"; // (Optional) Dust overlay image path
2015-08-23 19:03:00 +00:00
};
};
```
2015-08-25 02:18:13 +00:00
## 2. Events
2015-08-25 02:18:13 +00:00
### 2.1 Listenable
2015-08-25 02:18:13 +00:00
Event Name | Description | Passed Parameter(s) | Locality
---------- | ----------- | ------------------- | --------
`"GlassesChanged"` | Glasses Changed | `[_glassesClass]` | Local
`"GlassesCracked"` | Glasses Cracked | `[_unit]` | Local