+ increased crack vault chance and added zombie alert to failure and
delay with animation.
+ recent changes to food infection from CE
+ changed to ligher wooden crate icon
This commit is contained in:
vbawol
2013-02-02 15:12:24 -06:00
parent 5512c2ce11
commit d929311a3d
5 changed files with 18 additions and 10 deletions

View File

@@ -1,7 +1,9 @@
private["_onLadder","_item","_hasfoodmag","_config","_text","_regen","_update","_id","_display","_control","_bloodVal","_ctrlBlood"]; private ["_onLadder","_item","_config","_text","_regen","_display","_control","_bloodVal","_ctrlBlood","_rndInfection","_cookedfood","_hasfooditem","_EatInfection","_id"];
disableserialization; disableserialization;
call gear_ui_init; call gear_ui_init;
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1; _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_cookedfood = _item in ["FoodSteakCooked","FoodmuttonCooked","FoodchickenCooked","FoodRabbitCooked","FoodBaconCooked","FoodBioMeat"];
if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]}; if (_onLadder) exitWith {cutText [(localize "str_player_21") , "PLAIN DOWN"]};
if (vehicle player != player) exitWith {cutText ["You may not eat while in a vehicle", "PLAIN DOWN"]}; if (vehicle player != player) exitWith {cutText ["You may not eat while in a vehicle", "PLAIN DOWN"]};
@@ -25,11 +27,9 @@ _regen = getNumber (_config >> "bloodRegen");
if (!_hasfooditem) exitWith {cutText [format[(localize "str_player_31"),_text,"consume"] , "PLAIN DOWN"]}; if (!_hasfooditem) exitWith {cutText [format[(localize "str_player_31"),_text,"consume"] , "PLAIN DOWN"]};
if (_EatInfection) then { if (_EatInfection and _cookedfood) then {
if (_item == "FoodSteakCooked" ) then {
r_player_infected = true; r_player_infected = true;
player setVariable["USEC_infected",true]; player setVariable["USEC_infected",true];
};
}; };
//Rawtime = getVarable _item //Rawtime = getVarable _item

View File

@@ -9,7 +9,6 @@ _objectUID = _obj getVariable["ObjectUID","0"];
player playActionNow "Medic"; player playActionNow "Medic";
player removeAction s_player_unlockvault; player removeAction s_player_unlockvault;
s_player_unlockvault = -1;
_allowunlock = false; _allowunlock = false;
if (_ownerID == dayz_playerUID) then { if (_ownerID == dayz_playerUID) then {
@@ -18,7 +17,7 @@ if (_ownerID == dayz_playerUID) then {
// do random roll to try to unlock vault // do random roll to try to unlock vault
// start low to test figure out what works later // start low to test figure out what works later
if(round (random 100) == 1) then { if(round (random 100000) == 1337) then {
_allowunlock = true; _allowunlock = true;
}; };
@@ -34,8 +33,10 @@ if(_allowunlock) then {
_dir = direction _obj; _dir = direction _obj;
// _pos = getposATL _obj; // _pos = getposATL _obj;
_pos = _obj getVariable["OEMPos",(getposATL _obj)]; _pos = _obj getVariable["OEMPos",(getposATL _obj)];
player playActionNow "Medic";
sleep 1;
[player,"tentpack",0,false] call dayz_zombieSpeak; [player,"tentpack",0,false] call dayz_zombieSpeak;
sleep 3; sleep 5;
//place tent (local) //place tent (local)
_holder = createVehicle ["VaultStorage",_pos,[], 0, "CAN_COLLIDE"]; _holder = createVehicle ["VaultStorage",_pos,[], 0, "CAN_COLLIDE"];
@@ -90,5 +91,12 @@ if(_allowunlock) then {
cutText ["This vault has been unlocked", "PLAIN DOWN"]; cutText ["This vault has been unlocked", "PLAIN DOWN"];
} else { } else {
player playActionNow "Medic";
sleep 1;
[player,"repair",0,false] call dayz_zombieSpeak;
null = [player,50,true,(getPosATL player)] spawn player_alertZombies;
sleep 5;
cutText ["Combination incorrect, vault is still locked.", "PLAIN DOWN"]; cutText ["Combination incorrect, vault is still locked.", "PLAIN DOWN"];
}; };
s_player_unlockvault = -1;

View File

@@ -33,7 +33,7 @@ class CfgMods
hidePicture = 0; hidePicture = 0;
hideName = 0; hideName = 0;
action = "http://www.dayepoch.com"; action = "http://www.dayepoch.com";
version = "0.88"; version = "0.89";
hiveVersion = 0.96; //0.93 hiveVersion = 0.96; //0.93
}; };
}; };

View File

@@ -87,7 +87,7 @@ class RscDisplayMain : RscStandardDisplay
class DAYZ_Version : CA_Version class DAYZ_Version : CA_Version
{ {
idc = -1; idc = -1;
text = "DayZ Epoch 0.88 (1.7.5.M2D1)"; text = "DayZ Epoch 0.881 (1.7.5.M2D1)";
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)"; y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
}; };
class CA_TitleMainMenu; class CA_TitleMainMenu;