mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-17 21:52:56 +03:00
Merge pull request #978 from vbawol/PVS/PVC
Complete #941 - Need Testing
This commit is contained in:
@@ -15,14 +15,8 @@ _caller setVariable ["friendlies", _friendlies, true];
|
||||
_rfriendlies = _target getVariable ["friendlies", []];
|
||||
|
||||
if !(_callerID in _rfriendlies) then {
|
||||
// caller
|
||||
titleText [(localize "STR_EPOCH_ACTIONS_8"), "PLAIN DOWN"];
|
||||
// target
|
||||
PVDZE_plr_FriendRQ = _target;
|
||||
publicVariable "PVDZE_plr_FriendRQ";
|
||||
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
PVDZE_send = [_target,"tagFriendly",[_target]];
|
||||
titleText [(localize "STR_EPOCH_ACTIONS_8"), "PLAIN DOWN"]; //To Caller
|
||||
/* PVS/PVC - Skaronator */
|
||||
PVDZE_send = [_target,"tagFriendly",[_target]]; //To Target
|
||||
publicVariableServer "PVDZE_send";
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -106,17 +106,13 @@ _availableCans = ["ItemJerrycan","ItemFuelBarrel"];
|
||||
|
||||
if(([player,_canName] call BIS_fnc_invRemove) == 1) then {
|
||||
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
/* PVS/PVC - Skaronator */
|
||||
if (local _vehicle) then {
|
||||
[_vehicle,_newFuel] call local_setFuel;
|
||||
} else {
|
||||
PVDZE_send = [_vehicle,"SetFuel",[_vehicle,_newFuel]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
*/
|
||||
PVDZE_veh_SFuel = [_vehicle,_newFuel];
|
||||
PVDZE_veh_SFuel spawn local_setFuel;
|
||||
publicVariable "PVDZE_veh_SFuel";
|
||||
|
||||
// Play sound
|
||||
[player,"refuel",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -112,7 +112,7 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
|
||||
|
||||
if(([player,_canNameEmpty] call BIS_fnc_invRemove) == 1) then {
|
||||
|
||||
/* WIP - PVS/PVC - Skaronator
|
||||
/* PVS/PVC - Skaronator */
|
||||
if (local _vehicle) then {
|
||||
[_vehicle,_newFuel] call local_setFuel;
|
||||
} else {
|
||||
@@ -120,11 +120,6 @@ _availableCansEmpty = ["ItemJerrycanEmpty","ItemFuelBarrelEmpty"];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
*/
|
||||
PVDZE_veh_SFuel = [_vehicle,_newFuel];
|
||||
if (local _vehicle) then {
|
||||
PVDZE_veh_SFuel spawn local_setFuel;
|
||||
};
|
||||
publicVariable "PVDZE_veh_SFuel";
|
||||
|
||||
// Play sound
|
||||
[player,"refuel",0,false] call dayz_zombieSpeak;
|
||||
|
||||
Reference in New Issue
Block a user