This commit is contained in:
A Clark
2013-01-15 09:25:23 -06:00
parent b893b72b72
commit 2735183a45
11 changed files with 997 additions and 81 deletions

View File

@@ -5,7 +5,7 @@ OnLoadIntro = "Welcome to Chernarus";
OnLoadIntroTime = False;
OnLoadMissionTime = False;
disabledAI = true;
disableChannels[]={0,2,6};
disableChannels[]={0,1,2};
enableItemsDropping = 0;
class Header

View File

@@ -23,9 +23,9 @@ enableRadio false;
spawnShoremode = 1; // Default = 1 (on shore)
spawnArea= 1500; // Default = 1500
MaxHeliCrashes= 5; // Default = 5
MaxVehicleLimit = 75; // Default = 50
MaxDynamicDebris = 200; // Default = 100
dayz_MapArea = 12000; // Default = 10000
MaxVehicleLimit = 200; // Default = 50
MaxDynamicDebris = 500; // Default = 100
dayz_MapArea = 15000; // Default = 10000
dayz_maxLocalZombies = 40; // Default = 40
// DayZ Epoch TRADERS
@@ -68,17 +68,22 @@ if (isServer) then {
// TODO: Still Needs major overhaul current method is not ideal
AllowedVehiclesList = [ "Old_moto_TK_Civ_EP1",
"MMT_Civ",
"Old_bike_TK_INS_EP1",
"ATV_US_EP1",
"hilux1_civil_3_open_EP1",
"datsun1_civil_3_open",
"Pickup_PK_TK_GUE_EP1",
"Octavia_ACR",
"VWGolf",
"Lada1",
"Skoda",
"car_sedan",
"Volha_1_TK_CIV_EP1",
"VolhaLimo_TK_CIV_EP1",
"UAZ_Unarmed_TK_EP1",
"Ikarus",
"SUV_TK_CIV_EP1",
"SUV_Green",
"UH1H_DZ",
"Mi17_Civilian",
"LandRover_CZ_EP1",
@@ -86,23 +91,31 @@ if (isServer) then {
"ArmoredSUV_PMC",
"PBX",
"RHIB",
"Fishing_Boat",
"M113Ambul_UN_EP1",
"KamazRefuel",
"UralRefuel_TK_EP1",
"tractor",
"CSJ_GyroP"];
AllowedVehiclesChance = [ 0.25, // "Old_moto_TK_Civ_EP1",
0.55, // "MMT_Civ"
0.55, // Old_bike_TK_INS_EP1
0.45, // "ATV_US_EP1",
0.55, // "hilux1_civil_3_open_EP1",
0.55, // "hilux1_civil_3_open_EP1",
0.25, // "datsun1_civil_3_open",
0.40, // "Pickup_PK_TK_GUE_EP1",
0.20, // "Pickup_PK_TK_GUE_EP1",
0.20, // Octavia_ACR
0.20, // VWGolf
0.25, // "Lada1",
0.25, // "Skoda",
0.2, // "car_sedan",
0.2, // "Volha_1_TK_CIV_EP1",
0.05, // "VolhaLimo_TK_CIV_EP1"
0.15, // "UAZ_Unarmed_TK_EP1"
0.01, // "Ikarus"
0.1, // "SUV_TK_CIV_EP1"
0.1, // "SUV_Green",
0.05, // "UH1H_DZ"
0.09, // "Mi17_Civilian"
0.11, // "LandRover_CZ_EP1"
@@ -110,38 +123,50 @@ if (isServer) then {
0.05, // "ArmoredSUV_PMC"
0.15, // "PBX"
0.01, // "RHIB"
0.1, // "Fishing_Boat",
0.01, // "M113Ambul_UN_EP1"
0.01, // "KamazRefuel"
0.01, // UralRefuel_TK_EP1
0.1, // "tractor"
0.1]; // "CSJ_GyroP"
AllowedVehiclesLimit = [ 2, // "Old_moto_TK_Civ_EP1",
5, // "MMT_Civ"
2, // "ATV_US_EP1",
2, // "hilux1_civil_3_open_EP1",
2, // "datsun1_civil_3_open",
1, // "Pickup_PK_TK_GUE_EP1",
2, // "Lada1",
2, // "Skoda",
2, // "car_sedan",
2, // "Volha_1_TK_CIV_EP1",
2, // "UAZ_Unarmed_TK_EP1"
1, // "Ikarus"
1, // "SUV_TK_CIV_EP1"
1, // "UH1H_DZ"
1, // "Mi17_Civilian"
AllowedVehiclesLimit = [ 5, // "Old_moto_TK_Civ_EP1",
10, // "MMT_Civ"
10, // Old_bike_TK_INS_EP1
5, // "ATV_US_EP1",
5, // "hilux1_civil_3_open_EP1",
5, // "datsun1_civil_3_open",
3, // "Pickup_PK_TK_GUE_EP1",
2, // "Octavia_ACR"
2, // VWGolf
3, // "Lada1",
3, // "Skoda",
3, // "car_sedan",
3, // "Volha_1_TK_CIV_EP1",
1, // "VolhaLimo_TK_CIV_EP1"
3, // "UAZ_Unarmed_TK_EP1"
2, // "Ikarus"
4, // "SUV_TK_CIV_EP1"
2, // "SUV_Green",
2, // "UH1H_DZ"
2, // "Mi17_Civilian"
2, // "LandRover_CZ_EP1"
2, // "HMMWV_Ambulance"
1, // "ArmoredSUV_PMC"
2, // "PBX"
1, // "RHIB"
1, // "M113Ambul_UN_EP1"
1, // "KamazRefuel"
3]; // "CSJ_GyroP"
3, // "HMMWV_Ambulance"
2, // "ArmoredSUV_PMC"
5, // "PBX"
2, // "RHIB"
4, // "Fishing_Boat",
3, // "M113Ambul_UN_EP1"
2, // "KamazRefuel"
2, // UralRefuel_TK_EP1
1, // "tractor"
5]; // "CSJ_GyroP"
hiveInUse = true;
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
// Add trader citys
_nil = [] execVM "mission.sqf";
_serverMonitor = [] execVM "\z\addons\dayz_code\system\server_monitor.sqf";
};
if (!isDedicated) then {

File diff suppressed because it is too large Load Diff

View File

@@ -13,7 +13,8 @@ class Mission
"ca_modules_functions",
"glt_m300t",
"sigisolda",
"suv_col"
"suv_col",
"csj_gyroac"
};
addOnsAuto[]=
{

View File

@@ -14,9 +14,9 @@ _caller setVariable ["friendlies", _friendlies, true];
_rfriendlies = _target getVariable ["friendlies", []];
if (!(_callerID in _rfriendlies)) then {
if ((isNull _rfriendlies) or !(_callerID in _rfriendlies)) then {
// caller
titleText [format["You have tagged %1 as friendly. Waiting for %2 to accept that.",(name _target),(name _target)]];
titleText [format["You have tagged %1 as friendly. Waiting for %1 to accept that.",(name _target)]];
// target
[_caller,_target,"loc",rTITLETEXT,format["%1 wants to tag you as friendly. To accept, tag %2 as friendly.", (name _caller),(name _caller)],"PLAIN DOWN"] call RE;
[_caller,_target,"loc",rTITLETEXT,format["%1 wants to tag you as friendly. To accept, tag %1 as friendly.", (name _caller)],"PLAIN DOWN"] call RE;
};

View File

@@ -15,6 +15,6 @@ _total = _damage;
//diag_log ("DAMAGE VEH: " + typeof(_unit) + " / " + str(_hit) + " / " + str(_damage) + " / " + str(getDammage _unit));
if (local _unit) then {
_total = [_unit,_hit,_damage] call object_setHitServer;
_total = [_unit,_hit,_damage] call object_setHitServer;
};
_total

View File

@@ -313,7 +313,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
// [_trader_id, _category, ];
_buy = player addAction ["Sidearm", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[11,"Sidearm"], 99, true, false, "",""];
_buy1 = player addAction ["Rifle", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[12,"Rifle"], 97, true, false, "",""];
_buy2 = player addAction ["Shotgun", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[13,"Shotgun"], 95, true, false, "",""];
_buy2 = player addAction ["Shotgun and Crossbow", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[13,"Shotgun"], 95, true, false, "",""];
_buy3 = player addAction ["Assault Rifle", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[14,"Assault Rifle"], 93, true, false, "",""];
_buy4 = player addAction ["Machine Gun", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[15,"Machine Gun"], 91, true, false, "",""];
_buy5 = player addAction ["Sniper Rifle", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[16,"Sniper Rifle"], 89, true, false, "",""];
@@ -365,7 +365,7 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
// [_trader_id, _category, ];
_buy1 = player addAction ["Sidearm Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[1,"Sidearm Ammo"], 99, true, false, "",""];
_buy = player addAction ["Rifle Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[2,"Rifle Ammo"], 98, true, false, "",""];
_buy2 = player addAction ["Shotgun Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[3,"Shotgun Ammo"], 97, true, false, "",""];
_buy2 = player addAction ["Shotgun and Crossbow Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[3,"Shotgun Ammo"], 97, true, false, "",""];
_buy3 = player addAction ["Assault Rifle Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[4,"Assault Rifle Ammo"], 96, true, false, "",""];
_buy4 = player addAction ["Machine Gun Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[5,"Machine Gun Ammo"], 95, true, false, "",""];
_buy5 = player addAction ["Sniper Rifle Ammo", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[6,"Sniper Rifle Ammo"], 94, true, false, "",""];
@@ -391,9 +391,11 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
// [_trader_id, _category, ];
_buy = player addAction ["Boats Unarmed", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[49,"Boats Unarmed"], 97, true, false, "",""];
_buy1 = player addAction ["Boats Armed", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[499,"Boats Armed"], 96, true, false, "",""];
_buy2 = player addAction ["Wholesale", "\z\addons\dayz_code\actions\buy_or_sell.sqf",[999,"Wholesale"], 95, true, false, "",""];
s_player_parts set [count s_player_parts,_buy];
s_player_parts set [count s_player_parts,_buy1];
s_player_parts set [count s_player_parts,_buy2];
s_player_parts_crtl = 1;
};

View File

@@ -1087,7 +1087,7 @@ class FSM
"_world = toUpper(worldName); //toUpper(getText (configFile >> ""CfgWorlds"" >> (worldName) >> ""description""));" \n
"_nearestCity = (nearestLocations [getPos player, [""NameCityCapital"",""NameCity"",""NameVillage"",""NameLocal""],1000] select 0);" \n
"_town = ""Wilderness"";" \n
"if (!isNull _nearestCity) then {_town = text _nearestCity};" \n
"if (!isNil _nearestCity) then {_town = text _nearestCity};" \n
"" \n
"_strTime = call curTimeStr;" \n
"_strDate = date;" \n

View File

@@ -73,6 +73,7 @@ _key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _da
diag_log ("HIVE: WRITE: "+ str(_key));
_key call server_hiveWrite;
/*
_done = false;
_retry = 0;
// TODO: Needs major overhaul
@@ -96,18 +97,18 @@ while {_retry < 99} do {
_retry = _retry + 1;
};
};
if(!_done) exitWith { deleteVehicle _object; diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
*/
// disable marker later
//_marker = createMarker [str(_location) , _location];
//_marker setMarkerShape "ICON";
//_marker setMarkerType "DOT";
//_marker setMarkerText (typeOf _object);
//_marker setMarkerColor "ColorBlue";
_marker = createMarker [str(_location) , _location];
_marker setMarkerShape "ICON";
_marker setMarkerType "DOT";
_marker setMarkerText (typeOf _object);
_marker setMarkerColor "ColorBlue";
// not needed yet
// _object setVariable ["ObjectUID", _uid, true];
// try this instead of commented out ID code above
_object setVariable ["ObjectUID", _uid, true];
_object setVariable ["lastUpdate",time];
_object setVariable ["CharacterID", _characterID, true];

View File

@@ -204,14 +204,14 @@ spawn_vehicles = {
_qty = {_x == _vehicle} count serverVehicleCounter;
// If under limit allow to proceed
if(_qty < _velimit) then {
if(_qty <= _velimit) then {
_isOverLimit = false;
};
// TODO add counter to stop after X attempts
// counter to stop after 5 attempts
_counter = _counter + 1;
if(_counter > 5) then {
if(_counter >= 5) then {
_isOverLimit = false;
_isAbort = true;
};

View File

@@ -169,7 +169,7 @@ diag_log "HIVE: Starting";
_totalvehicles = _totalvehicles + 1;
// total each vehicle
serverVehicleCounter set [count _serverVehicleCounter,_type];
serverVehicleCounter set [count serverVehicleCounter,_type];
};