mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 19:52:57 +03:00
More PVS/PVC Stuff
This commit is contained in:
@@ -100,9 +100,14 @@ if(_IsNearVehicle >= 1) then {
|
||||
// calculate new fuel
|
||||
_newFuelSrc = (_newFuelSrc / _capacitySrc);
|
||||
if (_newFuelSrc > 0) then {
|
||||
PVDZE_veh_SFuel = [_vehicleSrc,_newFuelSrc];
|
||||
PVDZE_veh_SFuel spawn local_setFuel;
|
||||
publicVariable "PVDZE_veh_SFuel";
|
||||
/* PVS/PVC - Skaronator */
|
||||
if (local _vehicle) then {
|
||||
[_vehicleSrc,_newFuelSrc] call local_setFuel;
|
||||
} else {
|
||||
/* PVS/PVC - Skaronator */
|
||||
PVDZE_send = [_vehicle,"SFuel",[_vehicleSrc,_newFuelSrc]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
} else {
|
||||
_isFillok = false;
|
||||
_abort = true;
|
||||
@@ -118,10 +123,15 @@ if(_IsNearVehicle >= 1) then {
|
||||
|
||||
// calculate minimum needed fuel
|
||||
_newFuel = (_newFuel / _capacity);
|
||||
|
||||
PVDZE_veh_SFuel = [_vehicle,_newFuel];
|
||||
PVDZE_veh_SFuel spawn local_setFuel;
|
||||
publicVariable "PVDZE_veh_SFuel";
|
||||
|
||||
/* PVS/PVC - Skaronator */
|
||||
if (local _vehicle) then {
|
||||
[_vehicle,_newFuel] call local_setFuel;
|
||||
} else {
|
||||
/* PVS/PVC - Skaronator */
|
||||
PVDZE_send = [_vehicle,"SFuel",[_vehicle,_newFuel]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
|
||||
// Play sound
|
||||
[player,"refuel",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -76,7 +76,8 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
|
||||
if (local _item) then {
|
||||
[_item,_qty] spawn local_gutObject;
|
||||
} else {
|
||||
} else {
|
||||
//Leave this as PV instead of PVS/PVC - Skaronator
|
||||
PVDZE_plr_GutBody =[_item,_qty];
|
||||
publicVariable "PVDZE_plr_GutBody";
|
||||
};
|
||||
|
||||
@@ -69,10 +69,14 @@ if ((_hasKnife or _hasKnifeBlunt) and !_hasHarvested) then {
|
||||
[player,"gut",0,false,10] call dayz_zombieSpeak;
|
||||
|
||||
_qty = 1;
|
||||
|
||||
PVDZE_plr_GutBody = [_item,_qty];
|
||||
PVDZE_plr_GutBody spawn local_gutObjectZ;
|
||||
publicVariable "PVDZE_plr_GutBodyZ";
|
||||
if (local _item) then {
|
||||
[_item,_qty] spawn local_gutObjectZ;
|
||||
} else {
|
||||
//Leave this as PV instead of PVS/PVC - Skaronator
|
||||
//Also not sure if we need this
|
||||
PVDZE_plr_GutBodyZ = [_item,_qty];
|
||||
publicVariable "PVDZE_plr_GutBodyZ";
|
||||
};
|
||||
|
||||
// Reduce humanity for gutting zeds
|
||||
_humanity = player getVariable["humanity",0];
|
||||
|
||||
@@ -13,9 +13,9 @@ if (!isNull cursorTarget) then {
|
||||
if (_ent isKindOf "Animal" or _isZombie) then {
|
||||
_ent setDamage 1;
|
||||
} else {
|
||||
//["usecBreakLegs",[_target,player]] call broadcastRpcCallAll;
|
||||
usecBreakLegs = [_ent,player];
|
||||
publicVariable "usecBreakLegs";
|
||||
/* PVS/PVC - Skaronator */
|
||||
PVDZE_send = [_ent,"PZ_BreakLegs",[_ent,player]];
|
||||
publicVariableServer "PVDZE_send";
|
||||
};
|
||||
|
||||
[player,"hit",0,false] call dayz_zombieSpeak;
|
||||
|
||||
Reference in New Issue
Block a user