mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
+ [ADDED] Added 4 more new military skins as rare drops on militaryclothes: (FR_OHara_DZ,FR_Rodriguez_DZ,CZ_Soldier_Sniper_EP1_DZ,Graves_Light_DZ) Picture. Left to right. http://i.imgur.com/HlE4o2R.jpg + [CHANGED] You can now only sell vehicles to the trader if they are between 75% and 100% health. + [ADDED] Added generator as build-able and now can be started with one 20 liter Jerrycan and runs until server restart. + [CHANGED] Lowered building preview time from 50 seconds to 15. + [ADDED] First release of PHP tool to help config traders. + [ADDED] Player Zombie vision. + [CHANGED] You must now be the owner of a plot or a friend of an owner to build. + [CHANGED] When removing base building elements and not the owner or friend removal counter is doubled. + [FIXED] Potential fix for shifting position of mg nest. + [ADDED] New sniper rifle SCAR_H_LNG_Sniper_SD (ammo: 20Rnd_762x51_SB_SCAR) added to MassGrave loot tables. + [ADDED] New Machine Gun Pecheneg_DZ to MilitarySpecial loot tables and to traders. (ammo:100Rnd_762x54_PK) + [ADDED] New SMG: Sa61_EP1 (ammo: 20Rnd_B_765x17_Ball), UZI_SD_EP1 (ammo: 30Rnd_9x19_UZI_SD) added to traders and Military loot tables. + [ADDED] New Pistol added to traders and loot tables MassGrave,DynamicDebrisMilitary, and Residential : MakarovSD (ammo: 8Rnd_9x18_MakarovSD) + [ADDED] Bikeys Added for playwith versions of taviana, namalsk, celle, lingor. + [INFO] Attention server owners should change @tavi_DayZ_Epoch folder on the server to @taviana and your players can then connect and install automatically with play.withsix.com with the above mentioned bikeys.
117 lines
3.2 KiB
Plaintext
117 lines
3.2 KiB
Plaintext
private["_object","_worldspace","_location","_dir","_character","_tent","_class","_id","_uid","_dam","_hitpoints","_selection","_array","_damage","_randFuel","_fuel","_key","_result","_outcome","_totaldam","_parts","_retry","_done","_spawnDMG"];
|
|
|
|
_object = _this select 0;
|
|
_worldspace = _this select 1;
|
|
_class = _this select 2;
|
|
_spawnDMG = _this select 3;
|
|
_characterID = _this select 4;
|
|
|
|
diag_log ("PUBLISH: Attempt " + str(_object));
|
|
_dir = _worldspace select 0;
|
|
_location = _worldspace select 1;
|
|
|
|
//Generate UID test using time
|
|
_uid = _worldspace call dayz_objectUID3;
|
|
|
|
// TODO: check if uid already exists and if so increment by 1 and check again as soon as we find nothing continue.
|
|
|
|
// parseNumber to get just numbers no letters
|
|
/*
|
|
_isA2free = parseNumber _characterID;
|
|
if(_isA2free != _characterID) then {
|
|
_characterID = _isA2free;
|
|
};
|
|
*/
|
|
|
|
|
|
//Send request
|
|
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, 0 , _characterID, _worldspace, [], [], 1,_uid];
|
|
diag_log ("HIVE: WRITE: "+ str(_key));
|
|
_key call server_hiveWrite;
|
|
|
|
// Switched to spawn so we can wait a bit for the ID
|
|
[_object,_uid,_characterID,_class,_dir,_location] spawn {
|
|
private["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_selection","_dam","_class"];
|
|
|
|
_object = _this select 0;
|
|
_uid = _this select 1;
|
|
_characterID = _this select 2;
|
|
_class = _this select 3;
|
|
_dir = _this select 4;
|
|
_location = _this select 5;
|
|
|
|
_done = false;
|
|
_retry = 0;
|
|
// TODO: Needs major overhaul for 1.1
|
|
while {_retry < 10} do {
|
|
|
|
sleep 1;
|
|
// GET DB ID
|
|
_key = format["CHILD:388:%1:",_uid];
|
|
diag_log ("HIVE: WRITE: "+ str(_key));
|
|
_result = _key call server_hiveReadWrite;
|
|
_outcome = _result select 0;
|
|
if (_outcome == "PASS") then {
|
|
_oid = _result select 1;
|
|
//_object setVariable ["ObjectID", _oid, true];
|
|
diag_log("CUSTOM: Selected " + str(_oid));
|
|
_done = true;
|
|
_retry = 100;
|
|
|
|
} else {
|
|
diag_log("CUSTOM: trying again to get id for: " + str(_uid));
|
|
_done = false;
|
|
_retry = _retry + 1;
|
|
};
|
|
};
|
|
|
|
// Remove marker
|
|
deleteVehicle _object;
|
|
|
|
if(!_done) exitWith { diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
|
|
|
|
_object_para = "ParachuteMediumWest" createVehicle [0,0,0];
|
|
|
|
_object_para setpos [_location select 0, _location select 1,(_location select 2) + 65];
|
|
|
|
_object = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
|
|
|
|
_object setVariable ["ObjectID", _oid, true];
|
|
|
|
_object setVariable ["lastUpdate",time];
|
|
|
|
_object setVariable ["CharacterID", _characterID, true];
|
|
|
|
_object attachTo [_object_para, [0,0,-1.6]];
|
|
|
|
sleep 1.0;
|
|
|
|
WaitUntil{(getpos _object select 2) < 0.1};
|
|
|
|
detach _object;
|
|
|
|
deleteVehicle _object_para;
|
|
|
|
// _object setDamage _damage;
|
|
// _object setFuel _fuel;
|
|
|
|
clearWeaponCargoGlobal _object;
|
|
clearMagazineCargoGlobal _object;
|
|
|
|
_veh setdir _dir;
|
|
_veh setpos _location;
|
|
|
|
//_object setvelocity [0,0,1];
|
|
|
|
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
|
|
|
|
_object call fnc_vehicleEventHandler;
|
|
|
|
// for non JIP users this should make sure everyone has eventhandlers for vehicles.
|
|
dayzVehicleInit = _object;
|
|
publicVariable "dayzVehicleInit";
|
|
|
|
|
|
|
|
diag_log ("PUBLISH: Created " + (_class) + " with ID " + str(_uid));
|
|
}; |