generator fixes

This commit is contained in:
vbawol
2013-04-23 20:51:44 -05:00
parent 64a8634b29
commit 6b6b35e10b
3 changed files with 7 additions and 5 deletions

View File

@@ -52,11 +52,13 @@ if (_finished) then {
// Sound_Generator1
// Looks like this was the entended way of making the sound, lets test
_classname = "Sound_Generator1";
//_classname = "Sound_Generator1";
_location = (getPosATL _vehicle);
//_location = (getPosATL _vehicle);
_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
//_tmpbuilt = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
_soundSource = createSoundSource ["Generator1", position player, [], 0]
// TODO: Add running sounds to generator
cutText ["Generator has been started.", "PLAIN DOWN"];

View File

@@ -347,7 +347,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
};
//Start Generator
if(cursorTarget isKindOf "Generator_DZ" and _canDo and ("ItemJerrycan" in magazines player) and cursorTarget getVariable ["GeneratorRunning", 0] == 0) then {
if(cursorTarget isKindOf "Generator_DZ" and _canDo and ("ItemJerrycan" in magazines player) and (cursorTarget getVariable ["GeneratorRunning", false])) then {
if ((s_player_fillgen < 0) and (player distance cursorTarget < 3)) then {
s_player_fillgen = player addAction ["Fill and Start Generator", "\z\addons\dayz_code\actions\fill_startGenerator.sqf",cursorTarget, 0, false, true, "",""];
};

View File

@@ -20,7 +20,7 @@ class CfgPatches {
units[] = {};
weapons[] = {};
requiredVersion = 0.1;
requiredAddons[] = {"dayz_equip","dayz_weapons","CAMisc3","CABuildingParts","CABuildingParts_Signs","CAStructuresHouse","CAStructuresLand_Ind_Stack_Big","CAStructures_Misc_Powerlines","CAStructures","CABuildings","CABuildings2","Ind_MalyKomin","CAStructures_A_CraneCon","CAStructures_Mil","CAStructures_Nav","CAStructures_Rail","A_Crane_02","A_TVTower","CAStructures_Railway","CAStructuresHouse","CAStructuresHouse_HouseBT"};
requiredAddons[] = {"dayz_equip","dayz_weapons","dayz_sfx","CAMisc3","CABuildingParts","CABuildingParts_Signs","CAStructuresHouse","CAStructuresLand_Ind_Stack_Big","CAStructures_Misc_Powerlines","CAStructures","CABuildings","CABuildings2","Ind_MalyKomin","CAStructures_A_CraneCon","CAStructures_Mil","CAStructures_Nav","CAStructures_Rail","A_Crane_02","A_TVTower","CAStructures_Railway","CAStructuresHouse","CAStructuresHouse_HouseBT"};
};
class DZ_DebriefingRemoved
{