Update docs

This commit is contained in:
PabstMirror 2019-10-17 13:17:37 -05:00
parent bccf170573
commit 37284bd0e8
3 changed files with 8 additions and 29 deletions

View File

@ -1,7 +1,7 @@
ace_disposable
==============
Makes the NLAW a disposable one-shot weapon and provides disposable launchers framework for use by other mods.
Makes the NLAW a disposable one-shot weapon using the [CBA Disposable Framework](https://github.com/CBATeam/CBA_A3/wiki/Disposable-Launchers).
## Maintainers

View File

@ -14,7 +14,7 @@ version:
## 1. Overview
The NLAW is shoulder fired and disposable, firing just once before being needed to be disposed of. This feature makes the NLAW disposable and provides the tools for other addons to do the same.
The NLAW is shoulder fired and disposable, firing just once before being needed to be disposed of. This feature makes the NLAW disposable.
## 2. Dependencies

View File

@ -1,7 +1,7 @@
---
layout: wiki
title: Disposables Framework
description: Explains how to set-up custom disposable launchers with the ACE3 disposables system.
description: Notes on old ace disposable framework and link to CBA's.
group: framework
order: 5
parent: wiki
@ -12,32 +12,11 @@ version:
patch: 0
---
<div class="panel callout">
<h5>Note:</h5>
<p>This is just the necessary to make a launcher disposable, this is not a guide to make your own launcher.</p>
</div>
## 1. Making a launcher disposable
### 1.1 CfgWeapons
Support for the ace disposable framework will be dropped in 3.13!
Switch to the [CBA Disposable Framework](https://github.com/CBATeam/CBA_A3/wiki/Disposable-Launchers)
Old weapon configs that are no longer supported:
```cpp
class CfgWeapons {
class Launcher_Base_F;
class launch_banana: Launcher_Base_F {
ACE_UsedTube = "launch_banana_Used_F"; // The class name of the used tube
magazines[] = {"ACE_PreloadedMissileDummy"}; // The dummy magazine
};
class launch_banana_Used_F: launch_banana { // The used tube should be a sub class of the disposable launcher
scope = 1;
ACE_isUsedLauncher = 1;
author = "grandBanana";
displayName = "Used banana launcher";
descriptionShort = "A used banana launcher";
magazines[] = {"ACE_FiredMissileDummy"}; // This will disable the used launcher class from being fired again
//picture = ""; // Not supported yet
//model = ""; // Not supported yet
weaponPoolAvailable = 0;
};
};
ACE_UsedTube = "launch_banana_Used_F";
ACE_isUsedLauncher = 1;
```