Hotwire rework

Hotwire rework
This commit is contained in:
oiad
2016-11-11 14:45:48 +13:00
parent ef5b5ae38f
commit b0926b2a82

View File

@@ -15,20 +15,18 @@ if (_removed == 1) then {
player playActionNow "Medic"; player playActionNow "Medic";
[player,"repair",0,false] call dayz_zombieSpeak; [player,"repair",0,false] call dayz_zombieSpeak;
[player,50,true,(getPosATL player)] spawn player_alertZombies; [player,50,true,(getPosATL player)] spawn player_alertZombies;
uiSleep 8;
_vehType = getText (configFile >> "CfgVehicles" >> typeOf _vehicle >> "displayName");
if ((random 10) <= 7.5) then { if ((random 10) <= 7.5) then {
PVDZE_veh_Lock = [_vehicle,false]; PVDZE_veh_Lock = [_vehicle,false];
if (player distance _vehicle < 10) then {
if (local _vehicle) then { if (local _vehicle) then {
PVDZE_veh_Lock call local_lockUnlock PVDZE_veh_Lock call local_lockUnlock
} else { } else {
publicVariable "PVDZE_veh_Lock"; publicVariable "PVDZE_veh_Lock";
}; };
format [localize "STR_EPOCH_PLAYER_33_OK",typeOf _vehicle] call dayz_rollingMessages; format [localize "STR_EPOCH_PLAYER_33_OK",_vehType] call dayz_rollingMessages;
};
} else { } else {
format [localize "STR_EPOCH_PLAYER_33",typeOf _vehicle] call dayz_rollingMessages; format [localize "STR_EPOCH_PLAYER_33",_vehType] call dayz_rollingMessages;
}; };
}; };