mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #5 from jonpas/docpass11_3
Documentation Pass 11 Additions 3
This commit is contained in:
commit
a53221c5b2
@ -39,7 +39,7 @@ You will **not** be able to carry / drag objects that are too heavy, the mass is
|
|||||||
|
|
||||||
`ace_dragging_fnc_setDraggable`
|
`ace_dragging_fnc_setDraggable`
|
||||||
|
|
||||||
Arguments | | Type | Optional (default value)
|
| Arguments | Type | Optional (default value)
|
||||||
---| --------- | ---- | ------------------------
|
---| --------- | ---- | ------------------------
|
||||||
0 | Any object | Object | Required
|
0 | Any object | Object | Required
|
||||||
1 | Enable dragging, true to enable, false to disable | Boolean | Required
|
1 | Enable dragging, true to enable, false to disable | Boolean | Required
|
||||||
@ -51,7 +51,7 @@ You will **not** be able to carry / drag objects that are too heavy, the mass is
|
|||||||
|
|
||||||
`[foo, true, [0, 2, 0], 45] call ace_dragging_fnc_setDraggable;`
|
`[foo, true, [0, 2, 0], 45] call ace_dragging_fnc_setDraggable;`
|
||||||
|
|
||||||
Arguments | | Explanation
|
| Arguments | Explanation
|
||||||
---| --------- | -----------
|
---| --------- | -----------
|
||||||
0 | `foo` | My object
|
0 | `foo` | My object
|
||||||
1 | `true` | Dragging is enabled
|
1 | `true` | Dragging is enabled
|
||||||
@ -62,7 +62,7 @@ Arguments | | Explanation
|
|||||||
|
|
||||||
`[bar, false, [3, -2, 2], 20] call ace_dragging_fnc_setDraggable;`
|
`[bar, false, [3, -2, 2], 20] call ace_dragging_fnc_setDraggable;`
|
||||||
|
|
||||||
Arguments | | Explanation
|
| Arguments | Explanation
|
||||||
---| --------- | -----------
|
---| --------- | -----------
|
||||||
0 | `bar` | My object
|
0 | `bar` | My object
|
||||||
1 | `false` | Dragging is disabled
|
1 | `false` | Dragging is disabled
|
||||||
@ -74,7 +74,7 @@ Arguments | | Explanation
|
|||||||
|
|
||||||
`ace_dragging_fnc_setCarryable`
|
`ace_dragging_fnc_setCarryable`
|
||||||
|
|
||||||
Arguments | | Type | Optional (default value)
|
| Arguments | Type | Optional (default value)
|
||||||
---| --------- | ---- | ------------------------
|
---| --------- | ---- | ------------------------
|
||||||
0 | Any object | Object | Required
|
0 | Any object | Object | Required
|
||||||
1 | Enable carrying, true to enable, false to disable | Boolean | Required
|
1 | Enable carrying, true to enable, false to disable | Boolean | Required
|
||||||
@ -86,7 +86,7 @@ Arguments | | Type | Optional (default value)
|
|||||||
|
|
||||||
`[foo, true, [0, 3, 1], 10] call ace_dragging_fnc_setCarryable;`
|
`[foo, true, [0, 3, 1], 10] call ace_dragging_fnc_setCarryable;`
|
||||||
|
|
||||||
Arguments | | Explanation
|
| Arguments | Explanation
|
||||||
---| --------- | -----------
|
---| --------- | -----------
|
||||||
0 | `foo` | My object
|
0 | `foo` | My object
|
||||||
1 | `true`| Carrying is enabled
|
1 | `true`| Carrying is enabled
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
layout: wiki
|
layout: wiki
|
||||||
title: Overpressure Framework
|
title: Overpressure Framework
|
||||||
description: Explains how to set-up launchers and cannon backblasts with ACE3 overpressure system.
|
description: Explains how to set-up launchers and cannons with backblast and overpressure areas with the ACE3 overpressure system.
|
||||||
group: framework
|
group: framework
|
||||||
order: 5
|
order: 5
|
||||||
parent: wiki
|
parent: wiki
|
||||||
@ -13,11 +13,10 @@ parent: wiki
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
class CfgWeapons {
|
class CfgWeapons {
|
||||||
|
|
||||||
class MyLauncher {
|
class MyLauncher {
|
||||||
ACE_overpressure_angle = 60; // cone in which the damage is applied (in degrees from the back end of the launcher)
|
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_range = 15; // Range in meters in which the damage is applied
|
||||||
ACE_overpressure_damage = 0.7; // damage multiplier
|
ace_overpressure_damage = 0.7; // Damage multiplier
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
@ -26,13 +25,21 @@ class CfgWeapons {
|
|||||||
|
|
||||||
```c++
|
```c++
|
||||||
class CfgWeapons {
|
class CfgWeapons {
|
||||||
|
|
||||||
class MyBananaCannon {
|
class MyBananaCannon {
|
||||||
ACE_overpressure_angle = 90; // cone in which the damage is applied (in degrees from the muzzle of the cannon)
|
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_range = 50; // Range in meters in which the damage is applied
|
||||||
ACE_overpressure_damage = 0.85; // damage multiplier
|
ace_overpressure_damage = 0.85; // Damage multiplier
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
- You can note that the angle range and damage are higher, that's because this is a cannon and the backblast is higher.
|
- 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
|
||||||
|
---------- | ----------- | ------------------- | --------
|
||||||
|
`"overpressure"` | Overpressure damage inflicted | `[_firer, _position, _direction, _weapon]` | Target
|
||||||
|
Loading…
Reference in New Issue
Block a user