Skip to content

Commit

Permalink
insignia fix for BC
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisum committed Jan 17, 2016
1 parent 0f3bb85 commit c0c3b7e
Show file tree
Hide file tree
Showing 22 changed files with 80 additions and 10 deletions.
4 changes: 3 additions & 1 deletion dynamicGroups/createAir.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_heli"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
// {[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _group;

};

{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createAlpha.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_alpha"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createBravo.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_bravo"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createCharlie.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_charlie"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
4 changes: 3 additions & 1 deletion dynamicGroups/createCommand.sqf
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
_unit = _this select 0;
_groupThis = group _unit;

if (isServer) then
{
Expand All @@ -9,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_command"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createDelta.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_delta"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createFoxtrot.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_delta"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createGolf.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_delta"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createHotel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_delta"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
3 changes: 2 additions & 1 deletion dynamicGroups/createIndia.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ if (isServer) then

["RegisterGroup", [_group, _leader, _data]] call BIS_fnc_dynamicGroups;
// {[[ _x, "GRAD_delta"], "BIS_fnc_setUnitInsignia", nil, true, true] call BIS_fnc_MP;sleep 0.1;} forEach units _group;
};
};
{[ _x] spawn "dynamicGroups\createInsignias.sqf"; sleep 0.1;} forEach units _groupThis;
58 changes: 58 additions & 0 deletions dynamicGroups/createInsignias.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
_thisUnit = _this select 0;

fnc_setUnitInsignias =
{
_unit = _this select 0;
_patch = _this select 1;
_index = 1;
{
if (_x == "rank") exitwith {_index = _foreachindex;};
} foreach getarray (configfile >> "CfgVehicles" >> gettext ( configfile >> "CfgWeapons" >> uniform _unit >> "ItemInfo" >> "uniformClass") >> "hiddenSelections");
_unit setObjectTextureGlobal [_index, _patch];
};

_group = group _thisUnit;
switch (_group) do
{
case "Command":
{
[_thisUnit, "pic\insignia\command.paa"] call fnc_setUnitInsignias;
};
case "Alpha":
{
[_thisUnit, "pic\insignia\alpha.paa"] call fnc_setUnitInsignias;
};
case "Bravo":
{
[_thisUnit, "pic\insignia\bravo.paa"] call fnc_setUnitInsignias;
};
case "Charlie":
{
[_thisUnit, "pic\insignia\charlie.paa"] call fnc_setUnitInsignias;
};
case "Delta":
{
[_thisUnit, "pic\insignia\delta.paa"] call fnc_setUnitInsignias;
};
case "Foxtrot":
{
[_thisUnit, "pic\insignia\foxtrot.paa"] call fnc_setUnitInsignias;
};
case "Golf":
{
[_thisUnit, "pic\insignia\golf.paa"] call fnc_setUnitInsignias;
};
case "Hotel":
{
[_thisUnit, "pic\insignia\hotel.paa"] call fnc_setUnitInsignias;
};
case "India":
{
[_thisUnit, "pic\insignia\india.paa"] call fnc_setUnitInsignias;
};
case "Air":
{
[_thisUnit, "pic\insignia\air.paa"] call fnc_setUnitInsignias;
};
default {};
};
Binary file added pic/insignia/air.paa
Binary file not shown.
Binary file added pic/insignia/alpha.paa
Binary file not shown.
Binary file added pic/insignia/bravo.paa
Binary file not shown.
Binary file added pic/insignia/charlie.paa
Binary file not shown.
Binary file added pic/insignia/command.paa
Binary file not shown.
Binary file added pic/insignia/delta.paa
Binary file not shown.
Binary file added pic/insignia/foxtrot.paa
Binary file not shown.
Binary file added pic/insignia/golf.paa
Binary file not shown.
Binary file added pic/insignia/hotel.paa
Binary file not shown.
Binary file added pic/insignia/india.paa
Binary file not shown.
Binary file added sounds/signal_distortion.ogg
Binary file not shown.

0 comments on commit c0c3b7e

Please sign in to comment.