mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
finished upgrade code
This commit is contained in:
@@ -142,8 +142,6 @@ if (_qty >= _qty_in) then {
|
||||
PVDZE_veh_Publish2 = [_veh,[_dir,_location],_part_out,false,_keySelected,_activatingPlayer];
|
||||
publicVariableServer "PVDZE_veh_Publish2";
|
||||
|
||||
player reveal _veh;
|
||||
|
||||
cutText [format[("Bought %3 for %1 %2, key added to toolbelt."),_qty_in,_textPartIn,_textPartOut], "PLAIN DOWN"];
|
||||
} else {
|
||||
player removeMagazine _keySelected;
|
||||
|
||||
@@ -33,7 +33,7 @@ _key call server_hiveWrite;
|
||||
_uid = _this select 1;
|
||||
_characterID = _this select 2;
|
||||
_class = _this select 3;
|
||||
//_dir = _this select 4;
|
||||
_dir = _this select 4;
|
||||
_location = _this select 5;
|
||||
_donotusekey = _this select 6;
|
||||
_activatingPlayer = _this select 7;
|
||||
@@ -65,7 +65,7 @@ _key call server_hiveWrite;
|
||||
|
||||
if(!_done) exitWith { diag_log("CUSTOM: failed to get id for : " + str(_uid)); };
|
||||
|
||||
_newobject = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
|
||||
_newobject = createVehicle [_class, [0,0,0], [], 0, "CAN_COLLIDE"];
|
||||
|
||||
// add items from previous vehicle here
|
||||
_weapons = getWeaponCargo _object;
|
||||
@@ -79,15 +79,17 @@ _key call server_hiveWrite;
|
||||
// Remove marker
|
||||
deleteVehicle _object;
|
||||
|
||||
_holder setDir _dir;
|
||||
_holder setPosATL _location;
|
||||
|
||||
// remove old vehicle from DB
|
||||
[_objectID,_objectUID,_activatingPlayer] call server_deleteObj;
|
||||
|
||||
// switch to new vehicle.
|
||||
|
||||
|
||||
// switch var to new vehicle at this point.
|
||||
_object = _newobject;
|
||||
|
||||
_object setDir _dir;
|
||||
_object setPosATL _location;
|
||||
|
||||
//Add weapons
|
||||
_objWpnTypes = _weapons select 0;
|
||||
_objWpnQty = _weapons select 1;
|
||||
|
||||
Reference in New Issue
Block a user