mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-25 17:31:36 +03:00
have to disable armed vehicle ammo in config #1
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_isOK","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID"];
|
||||
private ["_isOK","_object","_worldspace","_location","_dir","_class","_uid","_key","_keySelected","_characterID","_donotusekey"];
|
||||
|
||||
_object = _this select 0;
|
||||
_worldspace = _this select 1;
|
||||
@@ -35,8 +35,8 @@ 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","_class","_location","_object_para"];
|
||||
[_object,_uid,_characterID,_class,_dir,_location,_donotusekey] spawn {
|
||||
private ["_object","_uid","_characterID","_done","_retry","_key","_result","_outcome","_oid","_class","_location","_object_para","_donotusekey"];
|
||||
|
||||
_object = _this select 0;
|
||||
_uid = _this select 1;
|
||||
@@ -44,6 +44,7 @@ _key call server_hiveWrite;
|
||||
_class = _this select 3;
|
||||
//_dir = _this select 4;
|
||||
_location = _this select 5;
|
||||
_donotusekey = _this select 6;
|
||||
|
||||
_done = false;
|
||||
_retry = 0;
|
||||
@@ -90,7 +91,7 @@ _key call server_hiveWrite;
|
||||
|
||||
clearWeaponCargoGlobal _object;
|
||||
clearMagazineCargoGlobal _object;
|
||||
_object setVehicleAmmo DZE_vehicleAmmo;
|
||||
// _object setVehicleAmmo DZE_vehicleAmmo;
|
||||
|
||||
_object setVariable ["ObjectID", _oid, true];
|
||||
|
||||
|
||||
@@ -279,7 +279,7 @@ spawn_vehicles = {
|
||||
|
||||
clearWeaponCargoGlobal _veh;
|
||||
clearMagazineCargoGlobal _veh;
|
||||
_veh setVehicleAmmo DZE_vehicleAmmo;
|
||||
// _veh setVehicleAmmo DZE_vehicleAmmo;
|
||||
|
||||
// Add 0-3 loots to vehicle using random cfgloots
|
||||
_num = floor(random 4);
|
||||
|
||||
@@ -167,7 +167,7 @@ if (isServer and isNil "sm_done") then {
|
||||
|
||||
clearWeaponCargoGlobal _object;
|
||||
clearMagazineCargoGlobal _object;
|
||||
_object setVehicleAmmo DZE_vehicleAmmo;
|
||||
// _object setVehicleAmmo DZE_vehicleAmmo;
|
||||
|
||||
if ((typeOf _object) in dayz_allowedObjects) then {
|
||||
_object addMPEventHandler ["MPKilled",{_this call object_handleServerKilled;}];
|
||||
|
||||
Reference in New Issue
Block a user