Skip to content

Commit

Permalink
Intermediate version for AMF (as v8 is still not ready)
Browse files Browse the repository at this point in the history
  • Loading branch information
jetelain committed Apr 18, 2022
1 parent 707cdd9 commit cfbe6b9
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 7 deletions.
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 0
#define MINOR 5
#define MINOR 6
#define PATCH 0
#define BUILD 0
2 changes: 2 additions & 0 deletions compats/compat_amf/XtdGearInfos.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
36 changes: 31 additions & 5 deletions compats/compat_amf/XtdGearModels.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ class XtdGearModels
icon = QPATHTOF(data\mx.paa);
};
};


#ifdef AMF_v8
class GlovesColorBase
{
hiddenselection = "Camo4";
Expand All @@ -360,6 +361,7 @@ class XtdGearModels
texture = "amf_uniforms\data\usp_gloves_tan_CO.paa";
};
};
#endif

class GogglesBase
{
Expand Down Expand Up @@ -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";
Expand All @@ -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
{
Expand All @@ -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"};
Expand Down Expand Up @@ -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"};
Expand All @@ -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";
Expand All @@ -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 {
Expand All @@ -528,7 +552,9 @@ class XtdGearModels
class flag : FlagBase {
hiddenselection = "drapeau";
};
#ifdef AMF_v8
class glovescolor : GlovesColorBase {};
#endif
};

class amf_felin
Expand Down
8 changes: 7 additions & 1 deletion compats/compat_amf/script_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -14,4 +16,8 @@

#include "\z\aceax\addons\main\script_macros.hpp"

#define AMFPATCHES(path) QUOTE(\amf_patches\##path)
#ifdef AMF_V8
#define AMFPATCHES(path) QUOTE(\amf_patches\##path)
#else
#define AMFPATCHES(path) QUOTE(\z\aceax\compats\amf_patches\##path)
#endif

0 comments on commit cfbe6b9

Please sign in to comment.