Skip to content

Commit

Permalink
Changed: More strict check and removal of disabled Virtual Arsenal un…
Browse files Browse the repository at this point in the history
…iforms/vests/backpacks and headgear
  • Loading branch information
xhabit committed Jan 18, 2020
1 parent 0ff92ed commit 1108872
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
3 changes: 2 additions & 1 deletion CurrentChangelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
- Changed: Moved player killed check to server entitykilled instead of sending a remoteExec from the killed client to the server everytime
- Changed: Enabled AMRAAM type missiles for pylon loadout again
- Changed: Squad leader gets one point when another group member spawns at his/her position (only available in ranked mode or a database is running)
- Changed: Removed some more uniforms/vests and backpacks from arsenal
- Changed: Removed some more uniforms/vests and backpacks from Virtual Arsenal
- Changed: More strict check and removal of disabled Virtual Arsenal uniforms/vests/backpacks and headgear
- Fixed: Saving the player gear layout when closing arsenal to the server was missing side parameter which broke it
- Fixed: Sometimes dropped box markers did not get deleted
- Fixed: Removed binoculars from enemy AI group leaders so that they don't run around with a bino in their hands constantly
Expand Down
3 changes: 2 additions & 1 deletion co30_Domination.Altis/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
- Changed: Moved player killed check to server entitykilled instead of sending a remoteExec from the killed client to the server everytime
- Changed: Enabled AMRAAM type missiles for pylon loadout again
- Changed: Squad leader gets one point when another group member spawns at his/her position (only available in ranked mode or a database is running)
- Changed: Removed some more uniforms/vests and backpacks from arsenal
- Changed: Removed some more uniforms/vests and backpacks from Virtual Arsenal
- Changed: More strict check and removal of disabled Virtual Arsenal uniforms/vests/backpacks and headgear
- Fixed: Saving the player gear layout when closing arsenal to the server was missing side parameter which broke it
- Fixed: Sometimes dropped box markers did not get deleted
- Fixed: Removed binoculars from enemy AI group leaders so that they don't run around with a bino in their hands constantly
Expand Down
42 changes: 20 additions & 22 deletions co30_Domination.Altis/clientui/fn_pcheck.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if !((d_remove_from_arsenal # 3) isEqualTo []) then {
if (_resg != -1) then {
removeUniform player;
private _ounip = player getVariable "d_uniformp";
if (!isNil "_ounip") then {
if (!isNil "_ounip" && {_unip != _ounip}) then {
player addUniform _ounip;
};
};
Expand All @@ -44,34 +44,32 @@ if !((d_remove_from_arsenal # 4) isEqualTo []) then {
if (_resg != -1) then {
removeVest player;
private _ovestp = player getVariable "d_vestp";
if (!isNil "_ovestp") then {
if (!isNil "_ovestp" && {_vestp != _ovestp}) then {
player addVest _ovestp;
};
};
};
};

if (d_no_mortar_ar == 1) then {
if !((d_remove_from_arsenal # 5) isEqualTo []) then {
private _bp = backpack player;
if (_bp != "") then {
private _resg = (d_remove_from_arsenal # 5) findIf {
private _res = false;
if (_x isEqualType {}) then {
_res = _bp call _x;
} else {
if (_bp == _x) then {
_res = true;
};
if !((d_remove_from_arsenal # 5) isEqualTo []) then {
private _bp = backpack player;
if (_bp != "") then {
private _resg = (d_remove_from_arsenal # 5) findIf {
private _res = false;
if (_x isEqualType {}) then {
_res = _bp call _x;
} else {
if (_bp == _x) then {
_res = true;
};
_res
};
if (_resg != -1) then {
removeBackpack player;
private _obackpp = player getVariable "d_backpackp";
if (!isNil "_obackpp") then {
player addBackpack _obackpp;
};
_res
};
if (_resg != -1) then {
removeBackpack player;
private _obackpp = player getVariable "d_backpackp";
if (!isNil "_obackpp" && {_bp != _obackpp}) then {
player addBackpack _obackpp;
};
};
};
Expand All @@ -94,7 +92,7 @@ if !((d_remove_from_arsenal # 6) isEqualTo []) then {
if (_resg != -1) then {
removeHeadgear player;
private _ohgp = player getVariable "d_headgearp";
if (!isNil "_ohgp") then {
if (!isNil "_ohgp" && {_hgp != _ohgp}) then {
player addHeadgear _ohgp;
};
};
Expand Down

0 comments on commit 1108872

Please sign in to comment.