mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
commit
2fc86f007b
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -10,7 +10,6 @@ timeDifference = 0; // Server uses real time this will allow you to offset just
|
|||||||
timeMultiplier = 4; // Sets a time multiplier for in-game time. The command range is now capped at 0.1 - 120 to avoid performance problems.
|
timeMultiplier = 4; // Sets a time multiplier for in-game time. The command range is now capped at 0.1 - 120 to avoid performance problems.
|
||||||
lootMultiplier = 0.5; // 1 = max loot bias. This controls how much loot can payout per Epoch loot container.
|
lootMultiplier = 0.5; // 1 = max loot bias. This controls how much loot can payout per Epoch loot container.
|
||||||
// Events
|
// Events
|
||||||
WeatherChangeTime = 1200; // This controls how fast the weather changes as well as how fast shipping containers and earthquakes happen.
|
|
||||||
WeatherStaticForecast[] = {}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}
|
WeatherStaticForecast[] = {}; // Default: {75.5,0,{0,0,0},0,{1,1}}; // Clear day; {19,1,{1,1,40},1,{5,5}}; // Cold Foggy Rainy Overcast Windy; Format: {temp <scalar>,rain <scalar>,fog <array>,overcast <scalar>,wind <array>}
|
||||||
events[] = {
|
events[] = {
|
||||||
{ 3600, "CarnivalSpawner" }, // SECOND <scalar>, EVENT <string>
|
{ 3600, "CarnivalSpawner" }, // SECOND <scalar>, EVENT <string>
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -115,6 +115,9 @@ switch _interactOption do {
|
|||||||
case 2: _unifiedInteract; //Drink 2
|
case 2: _unifiedInteract; //Drink 2
|
||||||
case 3: { // Build 3
|
case 3: { // Build 3
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
|
_buildingJammerRange = ["CfgEpochClient", "buildingJammerRange", 75] call EPOCH_fnc_returnConfigEntryV2;
|
||||||
|
_buildingCountLimit = ["CfgEpochClient", "buildingCountLimit", 200] call EPOCH_fnc_returnConfigEntryV2;
|
||||||
|
|
||||||
_buildClass = getText(configfile >> "CfgMagazines" >> _item >> "buildClass");
|
_buildClass = getText(configfile >> "CfgMagazines" >> _item >> "buildClass");
|
||||||
if (_buildClass != "") then {
|
if (_buildClass != "") then {
|
||||||
_isStorage = getNumber(configfile >> "CfgMagazines" >> _item >> "isStorage");
|
_isStorage = getNumber(configfile >> "CfgMagazines" >> _item >> "isStorage");
|
||||||
@ -135,24 +138,27 @@ switch _interactOption do {
|
|||||||
// base building
|
// base building
|
||||||
_pos = player modelToWorldVisual[0, 5, 0];
|
_pos = player modelToWorldVisual[0, 5, 0];
|
||||||
_pos set[2, getPosATL player select 2];
|
_pos set[2, getPosATL player select 2];
|
||||||
|
|
||||||
|
if (_buildClass isKindOf "ThingX") then {
|
||||||
|
// prevent spawning if another simulated object exists still
|
||||||
|
_otherObjects = nearestObjects[player, [_buildClass], _buildingJammerRange];
|
||||||
|
if (_otherObjects isEqualTo []) then {
|
||||||
_object=createVehicle[_buildClass,_pos,[],0,"CAN_COLLIDE"];
|
_object=createVehicle[_buildClass,_pos,[],0,"CAN_COLLIDE"];
|
||||||
_object setDir ((getDir player) - 180);
|
_object setDir ((getDir player) - 180);
|
||||||
|
|
||||||
if (_buildClass != "PlotPole_EPOCH") then {
|
|
||||||
if (_object isKindOf "ThingX") then {
|
|
||||||
if (([player, _item] call BIS_fnc_invRemove) == 1) then {
|
if (([player, _item] call BIS_fnc_invRemove) == 1) then {
|
||||||
[_object] spawn EPOCH_simulSwap;
|
[_object] spawn EPOCH_simulSwap;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
[_object,_item] spawn EPOCH_staticMove;
|
["<t size = '1.6' color = '#99ffffff'>Building Disallowed: Frequency Unstable</t>", 5] call Epoch_dynamicText;
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
_object spawn EPOCH_countdown;
|
_object=createVehicle[_buildClass,_pos,[],0,"CAN_COLLIDE"];
|
||||||
|
_object setDir ((getDir player) - 180);
|
||||||
|
[_object,_item] spawn EPOCH_staticMove;
|
||||||
};
|
};
|
||||||
|
// _object spawn EPOCH_countdown;
|
||||||
[format["<t size='1.6' color='#99ffffff'>Press '%1' to drop object.</t>", "1"], 5] call Epoch_dynamicText;
|
[format["<t size='1.6' color='#99ffffff'>Press '%1' to drop object.</t>", "1"], 5] call Epoch_dynamicText;
|
||||||
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
["<t size = '1.6' color = '#99ffffff'>Need Energy< / t>", 5] call Epoch_dynamicText;
|
["<t size = '1.6' color = '#99ffffff'>Need Energy< / t>", 5] call Epoch_dynamicText;
|
||||||
};
|
};
|
||||||
@ -165,7 +171,7 @@ switch _interactOption do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
case 4: { // Refuel 4
|
case 4: { // Refuel 4
|
||||||
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 6];
|
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
||||||
if (cursorTarget in _vehicles) then {
|
if (cursorTarget in _vehicles) then {
|
||||||
_vehicle = cursorTarget;
|
_vehicle = cursorTarget;
|
||||||
_currentFuel = fuel _vehicle;
|
_currentFuel = fuel _vehicle;
|
||||||
@ -185,9 +191,8 @@ switch _interactOption do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
case 5: {
|
case 5: {
|
||||||
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 6];
|
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
||||||
_canCapacity = _interactAttributes param [0,10];
|
_canCapacity = _interactAttributes param [0,10];
|
||||||
|
|
||||||
if (cursorTarget in _vehicles) then {
|
if (cursorTarget in _vehicles) then {
|
||||||
_vehicle = cursorTarget;
|
_vehicle = cursorTarget;
|
||||||
_fuelCapacity = getNumber (configfile >> "CfgVehicles" >> (typeOf _vehicle) >> "fuelCapacity");
|
_fuelCapacity = getNumber (configfile >> "CfgVehicles" >> (typeOf _vehicle) >> "fuelCapacity");
|
||||||
@ -224,7 +229,7 @@ switch _interactOption do {
|
|||||||
case 8: _unifiedInteract; //Cold -1
|
case 8: _unifiedInteract; //Cold -1
|
||||||
case 9: _unifiedInteract; //Energy 100
|
case 9: _unifiedInteract; //Energy 100
|
||||||
case 10: { // Repair 10 - Lite
|
case 10: { // Repair 10 - Lite
|
||||||
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 6];
|
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
||||||
_vehicle = cursorTarget;
|
_vehicle = cursorTarget;
|
||||||
if (_vehicle in _vehicles) then {
|
if (_vehicle in _vehicles) then {
|
||||||
|
|
||||||
@ -261,7 +266,7 @@ switch _interactOption do {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
case 11: { // Repair 11 - Heavy
|
case 11: { // Repair 11 - Heavy
|
||||||
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 6];
|
_vehicles = player nearEntities [["LandVehicle","Ship","Air","Tank"], 30];
|
||||||
_vehicle = cursorTarget;
|
_vehicle = cursorTarget;
|
||||||
if (_vehicle in _vehicles) then {
|
if (_vehicle in _vehicles) then {
|
||||||
if (_item call _removeItem) then {
|
if (_item call _removeItem) then {
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
closeDialog 0;
|
closeDialog 0;
|
||||||
if (!isNull cursorTarget) then {
|
if (!isNull cursorTarget) then {
|
||||||
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 6];
|
_vehicles = player nearEntities[["LandVehicle", "Ship", "Air", "Tank"], 30];
|
||||||
if (cursorTarget in _vehicles) then {
|
if (cursorTarget in _vehicles) then {
|
||||||
player action["Gear", cursorTarget];
|
player action["Gear", cursorTarget];
|
||||||
};
|
};
|
||||||
|
@ -359,7 +359,7 @@ class CfgCrafting
|
|||||||
};
|
};
|
||||||
class ItemCorrugated : Item
|
class ItemCorrugated : Item
|
||||||
{
|
{
|
||||||
usedIn[] = {"KitShelf","ItemCorrugatedLg"};
|
usedIn[] = {"KitShelf","ItemCorrugatedLg","VehicleRepairLg"};
|
||||||
nearby[] = {{"Fire", "", "fire", {1,{"ALL"}}, 3, 1, 1, 0}};
|
nearby[] = {{"Fire", "", "fire", {1,{"ALL"}}, 3, 1, 1, 0}};
|
||||||
recipe[] = { { "ItemScraps", 2 } };
|
recipe[] = { { "ItemScraps", 2 } };
|
||||||
previewPosition[] = {0.791088,1,0.300004};
|
previewPosition[] = {0.791088,1,0.300004};
|
||||||
@ -717,7 +717,7 @@ class CfgCrafting
|
|||||||
};
|
};
|
||||||
class ItemCorrugatedLg : Item
|
class ItemCorrugatedLg : Item
|
||||||
{
|
{
|
||||||
usedIn[] = { "VehicleRepairLg", "KitPlotPole", "KitTankTrap", "KitHesco3" };
|
usedIn[] = { "KitPlotPole", "KitTankTrap", "KitHesco3" };
|
||||||
recipe[] = { { "ItemCorrugated", 3 } };
|
recipe[] = { { "ItemCorrugated", 3 } };
|
||||||
nearby[] = {{"Workbench", "", "workbench", {1,{"WorkBench_EPOCH"}}, 3, 1, 0, 1}};
|
nearby[] = {{"Workbench", "", "workbench", {1,{"WorkBench_EPOCH"}}, 3, 1, 0, 1}};
|
||||||
previewPosition[] = {0.797491,1,0.32899};
|
previewPosition[] = {0.797491,1,0.32899};
|
||||||
|
@ -1 +1 @@
|
|||||||
build=424;
|
build=427;
|
||||||
|
@ -1 +1 @@
|
|||||||
build=424;
|
build=427;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
Contributors:
|
Contributors:
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
Server side spawing of shipwreck loots
|
Server side spawing of mission loots
|
||||||
|
|
||||||
Licence:
|
Licence:
|
||||||
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
|
||||||
@ -13,7 +13,8 @@
|
|||||||
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf
|
https://github.com/EpochModTeam/Epoch/tree/master/Sources/epoch_server/compile/epoch_missions/EPOCH_Server_fillContainer.sqf
|
||||||
*/
|
*/
|
||||||
private["_player","_container","_clearFirst","_pos","_chance","_weps","_mags","_items"];
|
private["_player","_container","_clearFirst","_pos","_chance","_weps","_mags","_items"];
|
||||||
params ["_player",["_token","",[""]],["_container",objNull,[objNull]],["_clearFirst",false],["_chance",25],["_pos",getPosATL _player]];
|
params ["_player",["_token","",[""]],["_container",objNull,[objNull]],["_clearFirst",false],["_chance",25]];
|
||||||
|
_pos = getPosATL _player;
|
||||||
|
|
||||||
if !([_player,_token]call EPOCH_server_getPToken)exitWith{};
|
if !([_player,_token]call EPOCH_server_getPToken)exitWith{};
|
||||||
|
|
||||||
|
@ -32,7 +32,6 @@ _configArray = [
|
|||||||
["StaticDateTime", []],
|
["StaticDateTime", []],
|
||||||
["timeDifference", 0],
|
["timeDifference", 0],
|
||||||
["lootMultiplier", 0.5],
|
["lootMultiplier", 0.5],
|
||||||
["WeatherChangeTime", 1200],
|
|
||||||
["WeatherStaticForecast", []],
|
["WeatherStaticForecast", []],
|
||||||
["showEarthQuakes", true],
|
["showEarthQuakes", true],
|
||||||
["showShippingContainers", true],
|
["showShippingContainers", true],
|
||||||
|
@ -1 +1 @@
|
|||||||
build=424;
|
build=427;
|
||||||
|
@ -1 +1 @@
|
|||||||
build=424;
|
build=427;
|
||||||
|
@ -1273,7 +1273,7 @@ class CfgLootTable
|
|||||||
{ { "H_90_EPOCH", "item" }, 1 },
|
{ { "H_90_EPOCH", "item" }, 1 },
|
||||||
{ { "H_91_EPOCH", "item" }, 1 },
|
{ { "H_91_EPOCH", "item" }, 1 },
|
||||||
{ { "H_92_EPOCH", "item" }, 1 },
|
{ { "H_92_EPOCH", "item" }, 1 },
|
||||||
{ { "H_104_EPOCH", "item" }, 1 },
|
{ { "H_104_EPOCH", "item" }, 1 }
|
||||||
//{ { "wolf_mask_epoch", "item" }, 1 },
|
//{ { "wolf_mask_epoch", "item" }, 1 },
|
||||||
//{ { "pkin_mask_epoch", "item" }, 1 },
|
//{ { "pkin_mask_epoch", "item" }, 1 },
|
||||||
//{ { "clown_mask_epoch", "item" }, 1 }
|
//{ { "clown_mask_epoch", "item" }, 1 }
|
||||||
|
@ -1835,7 +1835,7 @@ class CfgLootTable_CUP
|
|||||||
{ { "H_90_EPOCH", "item" }, 1 },
|
{ { "H_90_EPOCH", "item" }, 1 },
|
||||||
{ { "H_91_EPOCH", "item" }, 1 },
|
{ { "H_91_EPOCH", "item" }, 1 },
|
||||||
{ { "H_92_EPOCH", "item" }, 1 },
|
{ { "H_92_EPOCH", "item" }, 1 },
|
||||||
{ { "H_104_EPOCH", "item" }, 1 },
|
{ { "H_104_EPOCH", "item" }, 1 }
|
||||||
//{ { "wolf_mask_epoch", "item" }, 1 },
|
//{ { "wolf_mask_epoch", "item" }, 1 },
|
||||||
//{ { "pkin_mask_epoch", "item" }, 1 },
|
//{ { "pkin_mask_epoch", "item" }, 1 },
|
||||||
//{ { "clown_mask_epoch", "item" }, 1 }
|
//{ { "clown_mask_epoch", "item" }, 1 }
|
||||||
|
@ -38,7 +38,7 @@ class Napf : Default
|
|||||||
// W [-14.4316,0.112793,-10.3098]
|
// W [-14.4316,0.112793,-10.3098]
|
||||||
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
||||||
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
||||||
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" },
|
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
|
||||||
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
||||||
};
|
};
|
||||||
propsPos[] = {
|
propsPos[] = {
|
||||||
|
@ -38,7 +38,7 @@ class Sara : Default
|
|||||||
// W [-14.4316,0.112793,-10.3098]
|
// W [-14.4316,0.112793,-10.3098]
|
||||||
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
||||||
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
||||||
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" },
|
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
|
||||||
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
||||||
};
|
};
|
||||||
propsPos[] = {
|
propsPos[] = {
|
||||||
|
@ -38,7 +38,7 @@ class SaraLite : Default
|
|||||||
// W [-14.4316,0.112793,-10.3098]
|
// W [-14.4316,0.112793,-10.3098]
|
||||||
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
||||||
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
||||||
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" },
|
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
|
||||||
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
||||||
};
|
};
|
||||||
propsPos[] = {
|
propsPos[] = {
|
||||||
|
@ -38,7 +38,7 @@ class Sara_dbe1 : Default
|
|||||||
// W [-14.4316,0.112793,-10.3098]
|
// W [-14.4316,0.112793,-10.3098]
|
||||||
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
||||||
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
||||||
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" },
|
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
|
||||||
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
||||||
};
|
};
|
||||||
propsPos[] = {
|
propsPos[] = {
|
||||||
|
@ -38,7 +38,7 @@ class Woodland_ACR : Default
|
|||||||
// W [-14.4316,0.112793,-10.3098]
|
// W [-14.4316,0.112793,-10.3098]
|
||||||
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
{ "Transport_N_EPOCH", { -0.286865, 8.17383, -10.3098 }, "", "north" },
|
||||||
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
{ "Transport_W_EPOCH", { -14.4316, 0.112793, -10.3098 }, "", "west" },
|
||||||
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" },
|
{ "Transport_E_EPOCH", { 13.5127,0.410156,-10.3098 }, "", "east" }
|
||||||
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
//{ "Transport_C_EPOCH", { 13.5127, 0.410156, -10.3098 }, "", "south" }
|
||||||
};
|
};
|
||||||
propsPos[] = {
|
propsPos[] = {
|
||||||
|
@ -428,6 +428,6 @@ class Takistan : Default
|
|||||||
{ "C_man_w_worker_F", { 4719.34,9204.96,0.00131226 }, 202.364 },
|
{ "C_man_w_worker_F", { 4719.34,9204.96,0.00131226 }, 202.364 },
|
||||||
//Central Traders//
|
//Central Traders//
|
||||||
{ "C_man_hunter_1_F", { 6822.1,4978.7,0.00137329 }, 88.9175 },
|
{ "C_man_hunter_1_F", { 6822.1,4978.7,0.00137329 }, 88.9175 },
|
||||||
{ "C_man_hunter_1_F", { 6829.11,5004.53,0.00158691 }, 179.875 },
|
{ "C_man_hunter_1_F", { 6829.11,5004.53,0.00158691 }, 179.875 }
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user