mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
* player_onPause fixes Properly displays the right message now for why you can't abort. * Door Management/Plot Management isServer changes Removes isServer, these are run on the client only so no need for this. * dayz_server private tags Fix a few missing private tags and remove a _forEachIndex tag. Remove unused 1.0.5.1 dayz_server.pbo as it's no longer valid/needed
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
private ["_class","_inventory","_hitpoints","_damage","_fuel","_uid","_charID","_object","_worldspace","_key","_allowed"];
|
|
|
|
_charID = _this select 0;
|
|
_object = _this select 1;
|
|
_worldspace = _this select 2;
|
|
_class = _this select 3;
|
|
_inventory = _this select 4;
|
|
_hitpoints = _this select 5;
|
|
_damage = _this select 6;
|
|
_fuel = _this select 7;
|
|
|
|
_allowed = [_object, "Server"] call check_publishobject;
|
|
if (!_allowed) exitWith { deleteVehicle _object; };
|
|
|
|
diag_log ("PUBLISH: Attempt " + str(_object));
|
|
|
|
//get UID
|
|
_uid = _worldspace call dayz_objectUID2;
|
|
|
|
//Send request
|
|
_key = format["CHILD:308:%1:%2:%3:%4:%5:%6:%7:%8:%9:",dayZ_instance, _class, _damage, _charID, _worldspace call AN_fnc_formatWorldspace, _inventory, _hitpoints, _fuel,_uid]; // Precise Base Building 1.0.5
|
|
//diag_log ("HIVE: WRITE: "+ str(_key));
|
|
_key call server_hiveWrite;
|
|
|
|
_object setVariable ["lastUpdate",time];
|
|
_object setVariable ["ObjectUID", _uid,true];
|
|
// _object setVariable ["CharacterID",_charID,true];
|
|
|
|
if (DZE_GodModeBase) then {
|
|
_object addEventHandler ["HandleDamage", {false}];
|
|
}else{
|
|
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
|
|
};
|
|
// Test disabling simulation server side on buildables only.
|
|
_object enableSimulation false;
|
|
|
|
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_object];
|
|
|
|
diag_log ("PUBLISH: Created " + (_class) + " with ID " + _uid);
|