mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 17:39:18 +03:00
* Adding backpack support for zombies * Adding backpack support for zombies * Update CHANGE LOG 1.0.6.3.txt * Fix jumping vehicles after fliping * Update CHANGE LOG 1.0.6.3.txt
23 lines
720 B
Plaintext
23 lines
720 B
Plaintext
private ["_nearPlayers","_object","_pos"];
|
|
_object = _this select 3;
|
|
|
|
_nearPlayers = {(isPlayer _x && _x != player)} count (player nearEntities ["CAManBase",8]);
|
|
|
|
if (!(_object isKindOf "ATV_Base_EP1") && _nearPlayers < 1) exitWith {
|
|
localize "STR_EPOCH_NEED_HELP" call dayz_rollingMessages;
|
|
};
|
|
|
|
//Kneel Down
|
|
player playMove "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon";
|
|
waitUntil { animationState player != "amovpknlmstpslowwrfldnon_amovpercmstpsraswrfldnon"};
|
|
|
|
_pos = getposATL _object;
|
|
_object setVectorUp [0,0,1];
|
|
_object setposATL _pos;
|
|
|
|
// Alert Zombies
|
|
[player,20,true,(getPosATL player)] call player_alertZombies;
|
|
|
|
// Added Nutrition-Factor for work
|
|
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|