2016-08-18 16:37:38 +00:00
|
|
|
---
|
|
|
|
layout: wiki
|
|
|
|
title: Overpressure Framework
|
|
|
|
description: Explains how to set-up launchers and cannons with backblast and overpressure areas with the ACE3 overpressure system.
|
|
|
|
group: framework
|
|
|
|
order: 5
|
|
|
|
parent: wiki
|
2016-08-30 13:49:04 +00:00
|
|
|
mod: ace
|
|
|
|
version:
|
|
|
|
major: 3
|
|
|
|
minor: 0
|
|
|
|
patch: 0
|
2016-08-18 16:37:38 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
## 1. Config Values
|
|
|
|
|
|
|
|
### 1.1 Launchers
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
class CfgWeapons {
|
|
|
|
class MyLauncher {
|
|
|
|
ace_overpressure_angle = 60; // Cone in which the damage is applied (in degrees from the back end of the launcher)
|
|
|
|
ace_overpressure_range = 15; // Range in meters in which the damage is applied
|
|
|
|
ace_overpressure_damage = 0.7; // Damage multiplier
|
|
|
|
};
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
|
|
|
### 1.2 Cannons
|
|
|
|
|
|
|
|
```cpp
|
|
|
|
class CfgWeapons {
|
|
|
|
class MyBananaCannon {
|
|
|
|
ace_overpressure_angle = 90; // Cone in which the damage is applied (in degrees from the muzzle of the cannon)
|
|
|
|
ace_overpressure_range = 50; // Range in meters in which the damage is applied
|
|
|
|
ace_overpressure_damage = 0.85; // Damage multiplier
|
|
|
|
};
|
|
|
|
};
|
|
|
|
```
|
|
|
|
|
|
|
|
- You can note that the angle range and damage values are higher, that's because this is a cannon and the backblast area is bigger.
|
|
|
|
|
|
|
|
|
|
|
|
## 2. Events
|
|
|
|
|
|
|
|
### 2.1 Listenable
|
|
|
|
|
|
|
|
Event Name | Description | Passed Parameter(s) | Locality
|
|
|
|
---------- | ----------- | ------------------- | --------
|
2017-06-08 19:31:27 +00:00
|
|
|
`ace_overpressure` | Overpressure damage inflicted | `[_firer, _posASL, _direction, _weapon, _magazine, _ammo]` | Target
|