mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
0.6
pz feeding form player restores 12000 health, thurst, hunger. reduced range for rasie horde. reduced loot spawns on debris.
This commit is contained in:
@@ -8,6 +8,6 @@ _item = _this select 3;
|
|||||||
|
|
||||||
[player,"spotted",0,false] call dayz_zombieSpeak;
|
[player,"spotted",0,false] call dayz_zombieSpeak;
|
||||||
|
|
||||||
_id = [player,200,true,(getPosATL player)] spawn player_alertZombies;
|
_id = [player,100,true,(getPosATL player)] spawn player_alertZombies;
|
||||||
|
|
||||||
// cutText ["Calling Zombies...", "PLAIN DOWN"];
|
// cutText ["Calling Zombies...", "PLAIN DOWN"];
|
||||||
@@ -38,7 +38,7 @@ if(_isAnimal) then {
|
|||||||
} else {
|
} else {
|
||||||
|
|
||||||
if(_isMan) then {
|
if(_isMan) then {
|
||||||
_regen == 3200;
|
_regen == 12000;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -52,15 +52,43 @@ player setVariable ["messing",[dayz_hunger,dayz_thirst],true];
|
|||||||
player setVariable["USEC_BloodQty",r_player_blood,true];
|
player setVariable["USEC_BloodQty",r_player_blood,true];
|
||||||
player setVariable["medForceUpdate",true];
|
player setVariable["medForceUpdate",true];
|
||||||
|
|
||||||
|
dayz_lastDrink = time;
|
||||||
|
dayz_thirst = 0;
|
||||||
|
|
||||||
|
dayz_lastMeal = time;
|
||||||
|
dayz_hunger = 0;
|
||||||
|
|
||||||
|
dayzPlayerSave = player;
|
||||||
|
publicVariableServer "dayzPlayerSave";
|
||||||
|
if (isServer) then {
|
||||||
|
dayzPlayerSave call server_updatePlayer;
|
||||||
|
};
|
||||||
|
|
||||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||||
|
|
||||||
// todo: dump loot on ground and then remove
|
// todo: dump loot on ground and then remove
|
||||||
|
|
||||||
|
//Ensure Control is visible
|
||||||
|
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||||
|
_control = _display displayCtrl 1301;
|
||||||
|
_control ctrlShow true;
|
||||||
|
|
||||||
|
_bloodVal = r_player_blood / r_player_bloodTotal;
|
||||||
|
if (_bloodVal >= 0.2) then {
|
||||||
|
_ctrlBlood ctrlShow true;
|
||||||
|
};
|
||||||
|
|
||||||
|
//Ensure Control is visible
|
||||||
|
_display = uiNamespace getVariable 'DAYZ_GUI_display';
|
||||||
|
_control = _display displayCtrl 1302;
|
||||||
|
_control ctrlShow true;
|
||||||
|
|
||||||
// Remove body
|
// Remove body
|
||||||
dayzHideBody = _item;
|
dayzHideBody = _item;
|
||||||
publicVariable "dayzHideBody";
|
publicVariable "dayzHideBody";
|
||||||
hideBody _item;
|
hideBody _item;
|
||||||
|
|
||||||
|
cutText [format[(localize "str_player_consumed"),_item, "PLAIN DOWN"];
|
||||||
|
|
||||||
sleep 10;
|
sleep 10;
|
||||||
deleteVehicle _item;
|
deleteVehicle _item;
|
||||||
|
|
||||||
// cutText ["Feeding...", "PLAIN DOWN"];
|
|
||||||
@@ -208,7 +208,6 @@ class CfgLoot {
|
|||||||
"HandChemGreen",
|
"HandChemGreen",
|
||||||
"HandChemBlue",
|
"HandChemBlue",
|
||||||
"HandChemRed",
|
"HandChemRed",
|
||||||
"DZ_Czech_Vest_Puch","object", // 12-0
|
|
||||||
"ItemHeatPack"
|
"ItemHeatPack"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -247,7 +246,6 @@ class CfgLoot {
|
|||||||
0.02,
|
0.02,
|
||||||
0.02,
|
0.02,
|
||||||
0.02,
|
0.02,
|
||||||
0.02,
|
|
||||||
0.04
|
0.04
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -277,7 +275,6 @@ class CfgLoot {
|
|||||||
"10x_303",
|
"10x_303",
|
||||||
"ItemWaterbottleUnfilled",
|
"ItemWaterbottleUnfilled",
|
||||||
"BoltSteel",
|
"BoltSteel",
|
||||||
"DZ_ALICE_Pack_EP1","object",
|
|
||||||
"ItemHeatPack",
|
"ItemHeatPack",
|
||||||
"TrapBear"
|
"TrapBear"
|
||||||
},
|
},
|
||||||
@@ -288,7 +285,6 @@ class CfgLoot {
|
|||||||
0.5,
|
0.5,
|
||||||
0.2,
|
0.2,
|
||||||
1,
|
1,
|
||||||
0.1,
|
|
||||||
0.2,
|
0.2,
|
||||||
0.01
|
0.01
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ if(_isPZombie) then {
|
|||||||
//_state = animationState player;
|
//_state = animationState player;
|
||||||
//hint str(_state);
|
//hint str(_state);
|
||||||
if (s_player_callzombies < 0) then {
|
if (s_player_callzombies < 0) then {
|
||||||
s_player_callzombies = player addAction ["Call Zombies", "\z\addons\dayz_code\actions\call_zombies.sqf",player, 5, true, false, "",""];
|
s_player_callzombies = player addAction ["Raise Horde", "\z\addons\dayz_code\actions\call_zombies.sqf",player, 5, true, false, "",""];
|
||||||
//s_player_callzombies1 = player addAction ["Zombie Vison", "\z\addons\dayz_code\actions\vison_zombie.sqf",player, 4, true, false, "",""];
|
//s_player_callzombies1 = player addAction ["Zombie Vison", "\z\addons\dayz_code\actions\vison_zombie.sqf",player, 4, true, false, "",""];
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ Camo1_DZ = "Camo1_DZ";
|
|||||||
Soldier1_DZ = "Soldier1_DZ";
|
Soldier1_DZ = "Soldier1_DZ";
|
||||||
Rocket_DZ = "Rocket_DZ";
|
Rocket_DZ = "Rocket_DZ";
|
||||||
|
|
||||||
AllPlayers = ["Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ"];
|
AllPlayers = ["Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker2_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest"];
|
||||||
AllPlayersVehicles = ["Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","AllVehicles"];
|
AllPlayersVehicles = ["Soldier_Crew_PMC","Sniper1_DZ","Camo1_DZ","Soldier1_DZ","Rocket_DZ","Rocker2_DZ","Priest_DZ","Functionary1_EP1_DZ","GUE_Commander_DZ","Ins_Soldier_GL_DZ","Haris_Press_EP1_DZ","Pilot_EP1_DZ","RU_Policeman_DZ","pz_policeman","pz_suit1","pz_suit2","pz_worker1","pz_worker2","pz_worker3","pz_doctor","pz_teacher","pz_hunter","pz_villager1","pz_villager2","pz_villager3","pz_priest","AllVehicles"];
|
||||||
|
|
||||||
|
|
||||||
PZombie_VB = "PZombie_VB";
|
PZombie_VB = "PZombie_VB";
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ spawn_roadblocks = {
|
|||||||
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
|
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_veh];
|
||||||
_veh setVariable ["ObjectID",1,true];
|
_veh setVariable ["ObjectID",1,true];
|
||||||
|
|
||||||
_num = round(random 4) + 3;
|
_num = round(random 3) + 1;
|
||||||
_config = configFile >> "CfgBuildingLoot" >> _spawnloot;
|
_config = configFile >> "CfgBuildingLoot" >> _spawnloot;
|
||||||
_itemType = [] + getArray (_config >> "itemType");
|
_itemType = [] + getArray (_config >> "itemType");
|
||||||
_itemChance = [] + getArray (_config >> "itemChance");
|
_itemChance = [] + getArray (_config >> "itemChance");
|
||||||
|
|||||||
Reference in New Issue
Block a user