From cfbe6b90785d4afb5f052c8e4e10c653a8449ff6 Mon Sep 17 00:00:00 2001 From: Julien Date: Mon, 18 Apr 2022 13:18:36 +0200 Subject: [PATCH] Intermediate version for AMF (as v8 is still not ready) --- addons/main/script_version.hpp | 2 +- compats/compat_amf/XtdGearInfos.hpp | 2 ++ compats/compat_amf/XtdGearModels.hpp | 36 +++++++++++++++++++++---- compats/compat_amf/script_component.hpp | 8 +++++- 4 files changed, 41 insertions(+), 7 deletions(-) diff --git a/addons/main/script_version.hpp b/addons/main/script_version.hpp index 376dcf4..2613c65 100644 --- a/addons/main/script_version.hpp +++ b/addons/main/script_version.hpp @@ -1,4 +1,4 @@ #define MAJOR 0 -#define MINOR 5 +#define MINOR 6 #define PATCH 0 #define BUILD 0 diff --git a/compats/compat_amf/XtdGearInfos.hpp b/compats/compat_amf/XtdGearInfos.hpp index 6e324ea..2a40857 100644 --- a/compats/compat_amf/XtdGearInfos.hpp +++ b/compats/compat_amf/XtdGearInfos.hpp @@ -411,8 +411,10 @@ class XtdGearInfos PATTERN_UNIFORM_G3(amf_uniform_04_MTP,MTP,Full) PATTERN_UNIFORM_G3(amf_uniform_05_MTP,MTP,Half) +#ifdef AMF_v8 PATTERN_UNIFORM_G3(amf_uniform_04_BLK,BLK,Full) PATTERN_UNIFORM_G3(amf_uniform_05_BLK,BLK,Half) +#endif PATTERN_CIRAS(amf_plate_ca_tan, none,TAN) PATTERN_CIRAS(amf_plate_ca_green, none,OD) diff --git a/compats/compat_amf/XtdGearModels.hpp b/compats/compat_amf/XtdGearModels.hpp index 431fd8e..b547f8f 100644 --- a/compats/compat_amf/XtdGearModels.hpp +++ b/compats/compat_amf/XtdGearModels.hpp @@ -345,7 +345,8 @@ class XtdGearModels icon = QPATHTOF(data\mx.paa); }; }; - + +#ifdef AMF_v8 class GlovesColorBase { hiddenselection = "Camo4"; @@ -360,6 +361,7 @@ class XtdGearModels texture = "amf_uniforms\data\usp_gloves_tan_CO.paa"; }; }; +#endif class GogglesBase { @@ -388,10 +390,16 @@ class XtdGearModels label = "Treillis F3/Ubas"; author = "Arma Mod France"; options[] = {"camo","sleeves","gloves"}; - textureoptions[]={"rank","bloodtype","flag","glovescolor"}; //will be added in v8 in september +#ifdef AMF_v8 + textureoptions[]={"rank","bloodtype","flag","glovescolor"}; +#endif class camo // coventional name { +#ifdef AMF_v8 values[] = {"CE_TAN","CE_OD","DA","SERVAL","TUNDRA"}; +#else + values[] = {"CE_TAN","CE_OD","DA","SERVAL"}; +#endif class CE_TAN { label = "CE/TAN"; @@ -412,11 +420,13 @@ class XtdGearModels label = "SERVAL"; image = QPATHTOF(data\serval.paa); }; +#ifdef AMF_v8 class TUNDRA { label = "TUNDRA"; image = QPATHTOF(data\tundra.paa); }; +#endif }; class sleeves // coventional name { @@ -432,15 +442,17 @@ class XtdGearModels class flag : FlagBase { hiddenselection = "drapeau"; }; +#ifdef AMF_v8 class glovescolor : GlovesColorBase {}; +#endif }; - +#ifdef AMF_v8 class amf_uniform_t4s2 { label = "Treillis T4S2"; author = "Arma Mod France"; options[] = {"camo","gloves"}; - textureoptions[]={"rank","bloodtype","flag","glovescolor"}; //will be added in v8 in september + textureoptions[]={"rank","bloodtype","flag","glovescolor"}; class camo // coventional name { values[] = {"CE","DA","SERVAL"}; @@ -472,16 +484,20 @@ class XtdGearModels }; class glovescolor : GlovesColorBase {}; }; - +#endif class amf_g3 { label = "Crye G3"; author = "Arma Mod France"; +#ifdef AMF_v8 options[] = {"camo", "sleeves"}; class camo // coventional name { values[] = {"MTP", "BLK"}; }; +#else + options[] = {"sleeves"}; +#endif class sleeves // coventional name { values[] = {"Full", "Half"}; @@ -493,10 +509,16 @@ class XtdGearModels label = "Treillis F3"; author = "Arma Mod France"; options[] = {"camo","gloves"}; +#ifdef AMF_v8 textureoptions[]={"rank","bloodtype","flag","glovescolor"}; //will be added later, need to wait for updated p3ds +#endif class camo // coventional name { +#ifdef AMF_v8 values[] = {"CE","DA","SERVAL","MTP","TUNDRA"}; +#else + values[] = {"CE","DA","SERVAL","MTP"}; +#endif class CE { label = "CE"; @@ -512,11 +534,13 @@ class XtdGearModels label = "SERVAL"; image = QPATHTOF(data\serval.paa); }; +#ifdef AMF_v8 class TUNDRA { label = "TUNDRA"; image = QPATHTOF(data\tundra.paa); }; +#endif }; class gloves : GlovesBase { }; class rank : RankBase { @@ -528,7 +552,9 @@ class XtdGearModels class flag : FlagBase { hiddenselection = "drapeau"; }; +#ifdef AMF_v8 class glovescolor : GlovesColorBase {}; +#endif }; class amf_felin diff --git a/compats/compat_amf/script_component.hpp b/compats/compat_amf/script_component.hpp index d375755..e7f3c09 100644 --- a/compats/compat_amf/script_component.hpp +++ b/compats/compat_amf/script_component.hpp @@ -2,6 +2,8 @@ #define SUBPREFIX compats #include "\z\aceax\addons\main\script_mod.hpp" +// #define AMF_v8 + // #define DEBUG_MODE_FULL // #define DISABLE_COMPILE_CACHE @@ -14,4 +16,8 @@ #include "\z\aceax\addons\main\script_macros.hpp" -#define AMFPATCHES(path) QUOTE(\amf_patches\##path) \ No newline at end of file +#ifdef AMF_V8 +#define AMFPATCHES(path) QUOTE(\amf_patches\##path) +#else +#define AMFPATCHES(path) QUOTE(\z\aceax\compats\amf_patches\##path) +#endif \ No newline at end of file