Skip to content

Commit

Permalink
Merge pull request #1010 from EpochModTeam/experimental
Browse files Browse the repository at this point in the history
release
  • Loading branch information
vbawol committed Nov 26, 2019
2 parents 38f8539 + 7e07beb commit cc7d97d
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -34,7 +34,7 @@ Starting a FAQ here. Can get expanded later
- GroundSpawnChance
- MinGroundContainers
- MaxGroundContainers
- @epochhove\addons\epoch_server_settings\configs\CfgMainTable.h -> Change the Loot for each Container / Buildingtype
- @epochhive\addons\epoch_server_settings\configs\CfgMainTable.h -> Change the Loot for each Container / Buildingtype
- lootMin
- lootMax
- I have added an item to the loot, but it will not spawn (rpt log say "have no price")
Expand Down
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server.pbo
Binary file not shown.
Binary file modified Server_Install_Pack/@epochhive/addons/epoch_server_settings.pbo
Binary file not shown.
Expand Up @@ -22,7 +22,7 @@ if !(isNull _this) then {
_cfgBaseBuilding = 'CfgBaseBuilding' call EPOCH_returnConfig;
_this setDamage 0;
_class = typeOf _this;
_worldspace = [getposworld _this, vectordir _this, vectorup _this, true];
_worldspace = [getposworld _this call EPOCH_precisionPos, vectordir _this, vectorup _this, true];
_objHiveKey = format["%1:%2", (call EPOCH_fn_InstanceID), _objSlot];
_animPhases = [];
{
Expand Down
Expand Up @@ -80,10 +80,22 @@ params [["_vehicle",objnull],["_items",[]]];
case 4: {
_type = _x select 0;
_subContainers = (everycontainer _vehicle) select {(_x select 0) isequalto _type && magazinesAmmoCargo (_x select 1) isequalto [] && weaponsItemsCargo (_x select 1) isequalto []};
if !(_subContainers isequalto [])
then {
if !(_subContainers isequalto []) then {
_subContainer = _subContainers select 0 select 1;
[_subContainer,_x select 1] call EPOCH_server_CargoFill;
}
else {
if (_type isKindOf "Bag_Base") then {
_vehicle addBackpackCargoGlobal [_type, 1];
}
else {
_vehicle addItemCargoGlobal [_type, 1];
};
_subContainers = (everycontainer _vehicle) select {(_x select 0) isequalto _type && magazinesAmmoCargo (_x select 1) isequalto [] && weaponsItemsCargo (_x select 1) isequalto []};
if !(_subContainers isequalto []) then {
_subContainer = _subContainers select 0 select 1;
[_subContainer,_x select 1] call EPOCH_server_CargoFill;
};
};
};
};
Expand Down
Expand Up @@ -32,7 +32,7 @@ if (!isNull _vehicle) then {
_colorSlot = _vehicle getVariable ["STORAGE_TEXTURE",0];
_storageOwners = _vehicle getVariable["STORAGE_OWNERS",[]];
_locked = if (_vehicle getVariable["EPOCH_Locked", true]) then {1} else {-1};
_worldspace = [getposworld _vehicle, vectordir _vehicle, vectorup _vehicle, true];
_worldspace = [getposworld _vehicle call EPOCH_precisionPos, vectordir _vehicle, vectorup _vehicle, true];

_VAL = [_class, _worldspace, _damage, _inventory, _colorSlot, _storageOwners, _locked];
["Storage", _vehHiveKey, EPOCH_expiresBuilding, _VAL] call EPOCH_fnc_server_hiveSETEX;
Expand Down
Expand Up @@ -37,7 +37,7 @@ if (!isNull _vehicle) then {
_Textures = getObjectTextures _vehicle;
};

_VAL = [typeOf _vehicle,[getposworld _vehicle,vectordir _vehicle,vectorup _vehicle,true],damage _vehicle,_hitpoints,fuel _vehicle,_inventory,[true,magazinesAllTurrets _vehicle],_colorSlot,_baseType, getPlateNumber _vehicle, _Textures];
_VAL = [typeOf _vehicle,[getposworld _vehicle call EPOCH_precisionPos,vectordir _vehicle,vectorup _vehicle,true],damage _vehicle,_hitpoints,fuel _vehicle,_inventory,[true,magazinesAllTurrets _vehicle],_colorSlot,_baseType, getPlateNumber _vehicle, _Textures];
["Vehicle", _vehHiveKey, EPOCH_expiresVehicle, _VAL] call EPOCH_fnc_server_hiveSETEX;
};
};
5 changes: 1 addition & 4 deletions Sources/epoch_server_settings/configs/CfgLootTable.h
Expand Up @@ -1773,10 +1773,7 @@ class CfgLootTable
items[] = {
{ { "V_TacChestrig_grn_F", "item" }, 1 },
{ { "V_TacChestrig_oli_F", "item" }, 1 },
{ { "V_TacChestrig_cbr_F", "item" }, 1 },
{ { "V_TacChestrig_grn_F", "item" }, 1 },
{ { "V_TacChestrig_grn_F", "item" }, 1 },
{ { "V_TacChestrig_grn_F", "item" }, 1 }
{ { "V_TacChestrig_cbr_F", "item" }, 1 }
};
};
class Backpacks_Low_Base
Expand Down

0 comments on commit cc7d97d

Please sign in to comment.