cleanup plus opt.

This commit is contained in:
[VB]AWOL
2013-11-11 17:52:36 -06:00
parent 5b03d18ce2
commit 9aac967402
5 changed files with 107 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
private ["_hasKnife","_qty","_item","_text","_string","_type","_started","_finished","_animState","_isMedic","_hasHarvested","_hasKnifeBlunt","_humanity"];
private [];
player removeAction s_player_SurrenderedGear;

View File

@@ -41,6 +41,10 @@ if (count _list < dayz_maxAnimals) then {
if (player distance _Pos < dayz_animalDistance and NOT surfaceIsWater _Pos and (count _list <= 1)) then {
if (_type == "DZ_Pastor") then { _agent = createAgent [_type, _Pos, [], 0, "NONE"]; } else { _agent = createAgent [_type, _Pos, [], 0, "FORM"]; };
_agent setpos _Pos;
PVDZE_zed_Spawn = [_agent];
publicVariableServer "PVDZE_zed_Spawn";
_id = [_pos,_agent] execFSM "\z\addons\dayz_code\system\animal_agent.fsm";
};
sleep 1;