mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 11:42:38 +03:00
Fix pv send too often when players got attacked by bloodsuckers
This commit is contained in:
@@ -56,6 +56,7 @@ local _cantSee = false;
|
||||
local _skin = _x getVariable ["mutantSkin", "act_krovosos_new1"]; // Set textures locally on each client to prevent issues with RESec
|
||||
local _texture = format["\dayz_epoch_c\skins\bloodsucker\%1.paa",_skin];
|
||||
[nil,nil,rSETOBJECTTEXTURE,_x,0,_texture] call RE;
|
||||
_x setVariable ["BLInvisible",false,!(local _x)];
|
||||
};
|
||||
};
|
||||
_x setVariable ["lastAttack", diag_tickTime];
|
||||
|
||||
@@ -9,7 +9,7 @@ item4[] = {"",7,210,-29.000042,396.000000,-20.999958,404.000000,0.000000,""};
|
||||
item5[] = {"",7,210,-29.000040,470.999939,-20.999960,479.000061,0.000000,""};
|
||||
item6[] = {"",7,210,-354.000031,121.000000,-346.000000,129.000000,0.000000,""};
|
||||
item7[] = {"UnitReady",4,218,-275.000000,275.000000,-175.000000,325.000000,5.000000,"UnitReady"};
|
||||
item8[] = {"Chase",2,250,-150.000000,375.000000,-50.000000,425.000000,0.000000,"Chase"};
|
||||
item8[] = {"Chase",2,4346,-150.000000,375.000000,-50.000000,425.000000,0.000000,"Chase"};
|
||||
item9[] = {"",7,210,-29.000006,121.000000,-20.999994,129.000000,0.000000,""};
|
||||
item10[] = {"",7,210,-29.000008,221.000000,-20.999992,229.000015,0.000000,""};
|
||||
item11[] = {"No_Target",4,218,-400.000000,450.000000,-300.000000,500.000000,3.000000,"No" \n "Target"};
|
||||
@@ -48,7 +48,7 @@ item43[] = {"TimeCheck",4,218,-150.000000,275.000000,-50.000000,325.000000,2.000
|
||||
item44[] = {"No_Agent",4,218,25.000000,450.000000,125.000000,500.000000,5.000000,"No Agent"};
|
||||
item45[] = {"",7,210,221.000015,546.000061,229.000000,553.999939,0.000000,""};
|
||||
item46[] = {"",7,210,-29.000042,545.999939,-20.999958,554.000061,0.000000,""};
|
||||
item47[] = {"Ready",4,4314,-400.000000,-125.000000,-300.000000,-75.000000,0.000000,"Ready"};
|
||||
item47[] = {"Ready",4,218,-400.000000,-125.000000,-300.000000,-75.000000,0.000000,"Ready"};
|
||||
item48[] = {"Loiter",2,250,-400.000000,25.000000,-300.000000,75.000000,0.000000,"Loiter"};
|
||||
item49[] = {"Time_Check",4,218,-275.000000,50.000000,-175.000000,100.000000,0.000000,"Time" \n "Check"};
|
||||
item50[] = {"MoveCompleted_",4,218,-525.000000,50.000000,-425.000000,100.000000,3.000000,"MoveCompleted "};
|
||||
@@ -151,8 +151,8 @@ link81[] = {61,62};
|
||||
link82[] = {62,7};
|
||||
link83[] = {63,55};
|
||||
link84[] = {64,1};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,193,6316128,1,-1193.257202,482.412689,820.253479,-249.823410,1425,910,1};
|
||||
window[] = {2,-1,-1,-1,-1,909,208,1416,208,3,1443};
|
||||
globals[] = {25.000000,1,0,0,0,640,480,1,193,6316128,1,-1236.139526,525.293335,896.545105,-228.299759,1425,910,1};
|
||||
window[] = {2,-1,-1,-32000,-32000,805,104,1312,104,3,1443};
|
||||
*//*%FSM</HEAD>*/
|
||||
class FSM
|
||||
{
|
||||
@@ -210,6 +210,7 @@ class FSM
|
||||
"_skin = [""act_krovosos_new1"",""act_krovosos_8"",""act_krovosos_7"",""act_krovosos_6"",""act_krovosos_5"",""act_krovosos_4"",""act_krovosos_3"",""act_krovosos_2""] call BIS_fnc_selectRandom;" \n
|
||||
"_agent setVariable [""mutantSkin"",_skin,true];" \n
|
||||
"[nil,nil,rSETOBJECTTEXTURE,_agent,0,""""] call RE;" \n
|
||||
"_agent setVariable [""BLInvisible"",true];" \n
|
||||
"" \n
|
||||
"// Announce presence" \n
|
||||
"[_agent,""bloodgrowl1"",0,false] call dayz_zombieSpeak;"/*%FSM</ACTION""">*/;
|
||||
@@ -257,8 +258,11 @@ class FSM
|
||||
"" \n
|
||||
"_sound = [""bloodgrowl0"",""bloodgrowl2"",""bloodgrowl3"",""bloodgrowl4"",""bloodforest1"",""bloodforest2"",""bloodforest3"",""bloodforest4""] call BIS_fnc_selectRandom;" \n
|
||||
"[_agent,_sound,5,false] call dayz_zombieSpeak;" \n
|
||||
"if (alive _agent) then {" \n
|
||||
"_isInvisible = _agent getVariable [""BLInvisible"",false];" \n
|
||||
"" \n
|
||||
"if (alive _agent && !_isInvisible) then {" \n
|
||||
" [nil,nil,rSETOBJECTTEXTURE,_agent,0,""""] call RE;" \n
|
||||
" _agent setVariable [""BLInvisible"",true];" \n
|
||||
"};"/*%FSM</STATEINIT""">*/;
|
||||
precondition = /*%FSM<STATEPRECONDITION""">*/""/*%FSM</STATEPRECONDITION""">*/;
|
||||
class Links
|
||||
|
||||
Reference in New Issue
Block a user