Skip to content

Commit

Permalink
Docs - Update CSW proxy weapon information (#10309)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnb432 authored Sep 11, 2024
1 parent fdf3198 commit 33f2143
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/wiki/framework/crew-served-weapons-framework.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ version:

To convert a static weapon into a crew served weapon, you need to create the following:

- A proxy weapon
- A proxy weapon (optional)
- A carryable weapon that can be mounted on a tripod
- Carryable weapon magazines
- The CSW config in the static weapon
Expand All @@ -27,6 +27,8 @@ For the following examples, we are going to assume you are modifying your existi

Because the magazine loading time is already handled by the ACE interaction, a proxy weapon with a very low loading time is used. It automatically replaces the default weapon of the turret when CSW is enabled.

A proxy weapon isn't required for a CSW to work. If a CSW uses the default weapons, the reload times will just be longer.

```cpp
class CfgWeapons {
class prefix_hmg_weapon;
Expand Down Expand Up @@ -136,7 +138,7 @@ class CfgVehicles {
class prefix_hmg: StaticMGWeapon {
class ACE_CSW {
enabled = 1; // Enables ACE CSW for this weapon
proxyWeapon = "prefix_hmg_weapon_proxy"; // The proxy weapon created above
proxyWeapon = "prefix_hmg_weapon_proxy"; // The proxy weapon created above. This can also be a function name that returns a proxy weapon - passed [_vehicle, _turret, _currentWeapon, _needed, _emptyWeapon]
magazineLocation = "_target selectionPosition 'magazine'"; // Ammo handling interaction point location
disassembleWeapon = "prefix_hmg_carry"; // Carryable weapon created above
disassembleTurret = "ace_csw_m3Tripod"; // Which static tripod will appear when weapon is disassembled
Expand Down

0 comments on commit 33f2143

Please sign in to comment.