forked from CombinedArmsGaming/CAFE3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Working identity translation and initial definitions. CombinedArmsGam…
…ing#2 90% complete. Resolves CombinedArmsGaming#3 resolves CombinedArmsGaming#4 resolves CombinedArmsGaming#5 resolves CombinedArmsGaming#6 Still need to handle if no identity is assigned and do MP test.
- Loading branch information
Showing
8 changed files
with
62 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
.../identity/fn_factionToIdentityVariant.sqf → components/identity/fn_factionToSideName.sqf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
|
||
params ["_faction"]; | ||
|
||
_identityVariant = _faction; | ||
_identity = _faction; | ||
|
||
|
||
if (_faction in ["blu_f", "blu_t_f", "blu_ctrg_f", "blu_gen_f"]) then | ||
{ | ||
_identityVariant = "blufor"; | ||
_identity = "blufor"; | ||
}; | ||
|
||
if (_faction in ["opf_f", "opf_t_f"]) then | ||
{ | ||
_identityVariant = "limey"; | ||
_identity = "opfor"; | ||
}; | ||
|
||
if (_faction in ["ind_f", "ind_c_f"]) then | ||
{ | ||
_identityVariant = "indfor"; | ||
_identity = "indfor"; | ||
}; | ||
|
||
if (_faction in ["blu_g_f","opf_g_f","ind_g_f"]) then | ||
{ | ||
_identityVariant = "guerrilla"; | ||
_identity = "guerrilla"; | ||
}; | ||
|
||
if (_faction in ["civ_f","civ_idap_f"]) then | ||
{ | ||
_identityVariant = "civilian"; | ||
_identity = "civilian"; | ||
}; | ||
|
||
|
||
_identityVariant | ||
_identity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
BEGIN_IDENTITY_ASSIGNMENT; | ||
|
||
SET_FACTION_IDENTITY(opfor,brit); | ||
SET_FACTION_IDENTITY(blufor,yank); | ||
SET_FACTION_IDENTITY(indfor,greek); | ||
SET_FACTION_IDENTITY(guerilla,monke); | ||
SET_FACTION_IDENTITY(civilian,coward); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,32 @@ | ||
|
||
BEGIN_IDENTITIES; | ||
|
||
|
||
// // Cor, it's the Empire, innit? | ||
_speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
_faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
CREATE_IDENTITY(brit,_speakers,_faces); | ||
|
||
CREATE_IDENTITY(east, _speakers, _faces); | ||
// SPEAKERS(_speakers) | ||
// //FACES(_faces) | ||
|
||
|
||
// // FREEDOM MOTHERFUCKER, DO YOU SPEAK IT? | ||
// _speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
// _faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
// CREATE_IDENTITY(west,_speakers,_faces); | ||
|
||
|
||
// // FREEDOM MOTHERFUCKER (pretend they are different for this example) | ||
// _speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
// _faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
// FREEDOM MOTHERFUCKER, DO YOU SPEAK IT? | ||
_speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
_faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
CREATE_IDENTITY(yank,_speakers,_faces); | ||
|
||
// CREATE_IDENTITY(independent,_speakers,_faces); | ||
// Greek joke | ||
_speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
_faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
// // FREEDOM MOTHERFUCKER (pretend they are different for this example) | ||
// _speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
// _faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
CREATE_IDENTITY(greek,_speakers,_faces); | ||
|
||
// Gorilla joke | ||
_speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
_faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
// CREATE_IDENTITY(resistance,_speakers,_faces); | ||
CREATE_IDENTITY(monke,_speakers,_faces); | ||
|
||
// // FREEDOM MOTHERFUCKER (pretend they are different for this example) | ||
// _speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
// _faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
// War crime joke | ||
_speakers = ["male05engb","male04engb","male03engb","male02engb","male01engb"]; | ||
_faces = ["WhiteHead_27","WhiteHead_07","WhiteHead_18","WhiteHead_21","WhiteHead_13"]; | ||
|
||
// CREATE_IDENTITY(civilian,_speakers,_faces); | ||
CREATE_IDENTITY(coward,_speakers,_faces); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
|
||
#include "identities\identityGroups.sqf" | ||
#include "identities\identityAssignment.sqf" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
|
||
#define BEGIN_IDENTITIES f_identities_registry = [] | ||
#define BEGIN_IDENTITY_ASSIGNMENT f_identity_assignment = [] | ||
|
||
#define ADD_IDENTITY_TO_REGISTRY(NAME) f_identities_registry pushBack #NAME | ||
|
||
#define IDENTITY_VAR(NAME) CONCAT(f_identities_,NAME) | ||
#define SET_FACTION_IDENTITY(FACTION,IDENTITY) f_identity_assignment pushBack [#FACTION,#IDENTITY] | ||
#define GET_FACTION_IDENTITY(FACTION) f_identity_assignment select { (_x select 0) == FACTION} select 0 select 1 | ||
|
||
#define IDENTITY_VAR(NAME) CONCAT(f_identities_,NAME) | ||
|
||
#define SPEAKERS(NAME) CONCAT(IDENTITY_VAR(NAME),_speakers) | ||
|
||
|
||
#define FACES(NAME) CONCAT(IDENTITY_VAR(NAME),_faces) | ||
|
||
#define CREATE_IDENTITY(NAME, SPEAKERS, FACES)\ | ||
#define CREATE_IDENTITY(NAME,SPEAKERARRAY,FACEARRAY)\ | ||
IDENTITY_VAR(NAME) = [];\ | ||
SPEAKERS(NAME) = [];\ | ||
FACES(NAME) = [];\ | ||
SPEAKERS(NAME) = SPEAKERARRAY;\ | ||
FACES(NAME) = FACEARRAY;\ | ||
ADD_IDENTITY_TO_REGISTRY(NAME) | ||
|
||
//#define SET_SIDE_IDENTITY(SIDE, IDENTITY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters