Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

Commit

Permalink
Merge pull request #40 from TheMysteriousVincent/factions_interface_r…
Browse files Browse the repository at this point in the history
…eloaded

Factions interface reloaded
  • Loading branch information
pixlcrashr authored Apr 18, 2018
2 parents d38605b + 61dd4c3 commit 1453645
Show file tree
Hide file tree
Showing 109 changed files with 2,129 additions and 2,648 deletions.
Binary file not shown.
32 changes: 16 additions & 16 deletions @LiveInLifeClient/addons/factions/functions/fn_add.sqf
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@

private _factionID = (player getVariable ["lilc_factionID", -1]);
if (_factionID < 0) exitWith { false; };
if (!alive player) exitWith { false; };
if (_factionID < 0) exitWith { false; };
if (!alive player) exitWith { false; };

private _factionInfo = ([_factionID] call lilc_factions_fnc_getFactionConfig);
private _factionVar = (group player) getVariable ["lilc_factionID", -1];
if (_factionVar == _factionID && _factionVar != -1) exitWith { true; };
private _faction = grpNull;
private _factionVar = (group player) getVariable ["lilc_factionID", -1];
if (_factionVar == _factionID && _factionVar != -1) exitWith { true; };

private _faction = grpNull;

if (getNumber(_factionInfo >> "globalGroup") == 1) then
{
{
private ["_currentID"];
private _currentID = _x getVariable ["lilc_factionID", -1];
if ((_factionID == _currentID) && (!isNull _x)) then
{
_faction = _x;
};
} forEach allGroups;
{
_faction = _x;
};
} forEach allGroups;

if (isNull _faction) then
{
_faction = createGroup civilian;
{
_faction = createGroup civilian;
_faction setVariable ["lilc_factionID", _factionID, true];
_faction setVariable ["lilc_factionMainGroup", true, true];
};
Expand All @@ -33,6 +33,6 @@ else
_faction setVariable ["lilc_factionID", _factionID, true];
_faction setVariable ["lilc_factionMainGroup", false, true];
};

[player] joinSilent _faction;
true;
true;

This file was deleted.

19 changes: 0 additions & 19 deletions @LiveInLifeClient/addons/factionsInterface/CfgFunctions.cpp

This file was deleted.

9 changes: 0 additions & 9 deletions @LiveInLifeClient/addons/factionsInterface/CfgPatches.cpp

This file was deleted.

This file was deleted.

32 changes: 0 additions & 32 deletions @LiveInLifeClient/addons/factionsInterface/config.cpp

This file was deleted.

Loading

0 comments on commit 1453645

Please sign in to comment.