Skip to content

Commit

Permalink
refactor to missile_clgp
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Jan 13, 2025
1 parent af20847 commit cf0eb62
Show file tree
Hide file tree
Showing 35 changed files with 23 additions and 23 deletions.
1 change: 0 additions & 1 deletion addons/clgp/$PBOPREFIX$

This file was deleted.

Binary file removed addons/clgp/data/ace_copperhead_interactive.p3d
Binary file not shown.
1 change: 1 addition & 0 deletions addons/missile_clgp/$PBOPREFIX$
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
z\ace\addons\missile_clgp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion addons/clgp/README.md → addons/missile_clgp/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ace_clgp
ace_missile_clgp
===================

Cannon Launched Guided Projectiles
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
systemChat format ["recompile took [%1 ms]", (1000 * (_end - _start)) toFixed 1];

if (productVersion #4 == "Diag") then {
call compile "diag_mergeConfigFile ['P:\z\ace\addons\clgp\config.cpp']";
call compile "diag_mergeConfigFile ['P:\z\ace\addons\missile_clgp\config.cpp']";
};
false
}, {false}, [59, [false, false, false]], false] call CBA_fnc_addKeybind; // F1 Key
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Missile Aim PosASL <ARRAY>
*
* Example:
* [[1,2,3], [], []] call ace_clgp_fnc_copperhead_attackProfile
* [[1,2,3], [], []] call ace_missile_clgp_fnc_copperhead_attackProfile
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* <BOOL>
*
* Example:
* [any, vehicle player] call ace_clgp_fnc_copperhead_deployCondition
* [any, vehicle player] call ace_missile_clgp_fnc_copperhead_deployCondition
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* None
*
* Example:
* [] call ace_clgp_fnc_copperhead_onfired
* [] call ace_missile_clgp_fnc_copperhead_onfired
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* None
*
* Example:
* [vehicle, player] call ace_clgp_fnc_copperhead_uiCanOpen
* [vehicle, player] call ace_missile_clgp_fnc_copperhead_uiCanOpen
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* None
*
* Example:
* [vehicle, player] call ace_clgp_fnc_copperhead_uiCreate
* [vehicle, player] call ace_missile_clgp_fnc_copperhead_uiCreate
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Nothing
*
* Example:
* [] call ace_clgp_fnc_submunition_ammoFired
* [] call ace_missile_clgp_fnc_submunition_ammoFired
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* None
*
* Example:
* [x, 2, 2] call ace_clgp_fnc_submunition_applyDrag
* [x, 2, 2] call ace_missile_clgp_fnc_submunition_applyDrag
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* Nothing
*
* Example:
* [a,b] call ace_clgp_fnc_submunition_submunitionCreated
* [a,b] call ace_missile_clgp_fnc_submunition_submunitionCreated
*
* Public: No
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define COMPONENT clgp
#define COMPONENT missile_clgp
#define COMPONENT_BEAUTIFIED Cannon Launched Guided Projectiles
#include "\z\ace\addons\main\script_mod.hpp"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<Project name="ACE">
<Package name="CLGP">
<Key ID="STR_ACE_CLGP_copperhead_action">
<Package name="MISSILE_CLGP">
<Key ID="STR_ACE_MISSILE_CLGP_copperhead_action">
<English>Configure M712 Shell</English>
</Key>
<Key ID="STR_ACE_CLGP_copperhead_dial_FlightProfile">
<Key ID="STR_ACE_MISSILE_CLGP_copperhead_dial_FlightProfile">
<English>Flight Profile</English>
</Key>
<Key ID="STR_ACE_CLGP_copperhead_dial_GuidanceDelay">
<Key ID="STR_ACE_MISSILE_CLGP_copperhead_dial_GuidanceDelay">
<English>Guidance Delay</English>
</Key>
<Key ID="STR_ACE_CLGP_pike_magazine_descriptionShort">
<Key ID="STR_ACE_MISSILE_CLGP_pike_magazine_descriptionShort">
<English>Semi-Active Laser Guided 40mm Grenade</English>
</Key>
<Key ID="STR_ACE_CLGP_pike_magazine_displayName">
<Key ID="STR_ACE_MISSILE_CLGP_pike_magazine_displayName">
<English>40mm Pike</English>
</Key>
<Key ID="STR_ACE_CLGP_pike_magazine_displayNameShort">
<Key ID="STR_ACE_MISSILE_CLGP_pike_magazine_displayNameShort">
<English>Pike SALH</English>
</Key>
</Package>
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions docs/wiki/framework/clgp-framework.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: wiki
title: CLGP Framework
title: Missile CLGP Framework
description: Explains how to set-up ammo for the cannon-launched-guided-projectile system.
group: framework
parent: wiki
Expand All @@ -26,7 +26,7 @@ class CfgAmmo {
ace_clgp_artilleryDrag = 1;
submunitionAmmo = "x_missle";
class Eventhandlers {
fired = "call ace_clgp_fnc_submunition_ammoFired"; // need to add the EH yourself to all ammos
fired = "call ace_missile_clgp_fnc_submunition_ammoFired"; // need to add the EH yourself to all ammos
};
};

Expand All @@ -38,11 +38,11 @@ class CfgAmmo {
### 2.2 Configs
`ace_clgp_deployCondition`
`ace_missile_clgp_deployCondition`
- A function that will trigger the ammo when returning true, passed `[_projectile, _guidanceArgs]`
- Is optional, can just use normal submuntion triggers
`ace_clgp_artilleryDrag`
`ace_missile_clgp_artilleryDrag`
- Optional (Leave undefined (or set to -1) to ignore)
- Used as a coefficient on drag from ace_artilleryTables's advancedCorrections
- Value of 0 is valid and will not apply drag but still keep nose pointed correctly (for unpowered missiles)
Expand Down

0 comments on commit cf0eb62

Please sign in to comment.