mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-19 06:32:57 +03:00
Adding backpack support for zombies (#2033)
* 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
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
private ["_nearPlayers","_object"];
|
||||
private ["_nearPlayers","_object","_pos"];
|
||||
_object = _this select 3;
|
||||
|
||||
_nearPlayers = {(isPlayer _x && _x != player)} count (player nearEntities ["CAManBase",8]);
|
||||
@@ -11,10 +11,12 @@ if (!(_object isKindOf "ATV_Base_EP1") && _nearPlayers < 1) exitWith {
|
||||
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;
|
||||
["Working",0,[20,40,15,0]] call dayz_NutritionSystem;
|
||||
|
||||
Reference in New Issue
Block a user