mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-13 19:52:57 +03:00
v0.1
This commit is contained in:
13
dayz_code/actions/call_zombies.sqf
Normal file
13
dayz_code/actions/call_zombies.sqf
Normal file
@@ -0,0 +1,13 @@
|
||||
private["_hasKnife","_qty","_item","_text","_string","_type","_loop","_meat","_timer"];
|
||||
_item = _this select 3;
|
||||
|
||||
//player removeAction s_player_callzombies;
|
||||
//s_player_callzombies = -1;
|
||||
|
||||
player playActionNow "Surrender";
|
||||
|
||||
[player,"spotted",0,false] call dayz_zombieSpeak;
|
||||
|
||||
_id = [player,200,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
// cutText ["Calling Zombies...", "PLAIN DOWN"];
|
||||
57
dayz_code/actions/pzombie/pz_feed.sqf
Normal file
57
dayz_code/actions/pzombie/pz_feed.sqf
Normal file
@@ -0,0 +1,57 @@
|
||||
private["_item","_id","_regen","_isAnimal","_animalType","_isMan","_config","_isListed","_qty"];
|
||||
_item = _this select 3;
|
||||
|
||||
player playActionNow "PutDown";
|
||||
_id = [player,50,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
[player,"gut",0,false] call dayz_zombieSpeak;
|
||||
|
||||
_item setVariable["meatHarvested",true,true];
|
||||
|
||||
sleep 1;
|
||||
|
||||
_regen = 200;
|
||||
|
||||
_isAnimal = _item isKindOf "Animal";
|
||||
_animalType = typeOf _item;
|
||||
_isMan = _item isKindOf "Man";
|
||||
|
||||
if(_isAnimal) then {
|
||||
_config = configFile >> "CfgSurvival" >> "Meat" >> _animalType;
|
||||
_isListed = isClass (_config);
|
||||
|
||||
_qty = 1;
|
||||
if (_isListed) then {
|
||||
_qty = getNumber (_config >> "yield");
|
||||
_regen = _qty * 200;
|
||||
};
|
||||
|
||||
} else {
|
||||
|
||||
if(_isMan) then {
|
||||
_regen == 3200;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
r_player_blood = r_player_blood + _regen;
|
||||
if (r_player_blood > r_player_bloodTotal) then {
|
||||
r_player_blood = r_player_bloodTotal;
|
||||
};
|
||||
|
||||
player setVariable ["messing",[dayz_hunger,dayz_thirst],true];
|
||||
player setVariable["USEC_BloodQty",r_player_blood,true];
|
||||
player setVariable["medForceUpdate",true];
|
||||
|
||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||
|
||||
// todo: dump loot on ground and then remove
|
||||
|
||||
// Remove body
|
||||
dayzHideBody = _item;
|
||||
publicVariable "dayzHideBody";
|
||||
hideBody _item;
|
||||
sleep 10;
|
||||
deleteVehicle _item;
|
||||
|
||||
// cutText ["Feeding...", "PLAIN DOWN"];
|
||||
4
dayz_code/actions/vison_zombie.sqf
Normal file
4
dayz_code/actions/vison_zombie.sqf
Normal file
@@ -0,0 +1,4 @@
|
||||
private["_hasKnife","_qty","_item","_text","_string","_type","_loop","_meat","_timer"];
|
||||
_item = _this select 3;
|
||||
|
||||
player playMove "GestureSwing"
|
||||
Reference in New Issue
Block a user