Jump to content

shurix

Member
  • Content Count

    19
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About shurix

  • Rank
    Private First Class
  1. shurix

    Zombies & Demons 5.0

    I know for a fact that BIS_fnc_MP is blocked in Epoch. I can report the same issue. Zombie stands close and I get hit with no animation.
  2. shurix

    Zombies & Demons 5.0

    It's sort of hit-and-miss. Sometimes I hear zombie sounds, sometimes I hear absolutely nothing and ninja zombies attack me from behind :ph34r: I'll try to record my experience and send you an example.
  3. shurix

    Zombies & Demons 5.0

    I noticed the difference when I moved zombies from spawning on the client side to server-side. There is definitely an increase in server performance but I lost most of the zombie chatter. When zombies spawned on the client side, you could hear them from a mile away and you could hear all 30 of them whining at the same time. Now I hardly ever hear a zombie sound. Can you guys review the logic so that when zombie acquires the target you would do something like: [_zombie,_target] say3D ("zombiespotted") Thanks!
  4. shurix

    Zombies & Demons 5.0

    I was able to get zombies to attack me and bots using 2.6 by adding the following code civilian setFriend [resistance , 0]; civilian setFriend [east , 0]; resistance setFriend [civilian , 0]; resistance setFriend [east , 0]; and addRating value to each spawned zombie group {_x addRating -10000} forEach units _grp if (_x < _numToSpawn) then {goto "loop"} deletegroup _grp ~ryanzombiesfrequency
  5. shurix

    Zombies & Demons 5.0

    MrSanches, I said I think zombie.sqf is getting executed because in 2.5 they run after me and attack. My spawn scripts remain the same between 2.5 and 2.6. In 2.6 they spawn and stand still or move around if I get close but do not attack. In both cases they were spawned from a trigger local to the client and this behavior must be caused by the locality change on zombie init in 2.6 as you mentioned earlier. Not to worry though. I'm sure this is caused by the difference between server/client locality. We went through that in the initial versions of EpochMod when bots were spawned but did not attack the players.
  6. shurix

    Zombies & Demons 5.0

    BTW, on Taviana I have military outposts all over the map with MGs standing 7 meters off the ground on concrete bunkers. Zombies see the static gunners first and pile around the bunker unable to reach them. I understand that zombies are stupid, but I would add a height difference check when looking for the next target to exclude unreachable targets.
  7. shurix

    Zombies & Demons 5.0

    I think it is getting executed. As I said zombies attack me, my vehicle and throw cars at me. Anyway, I think it has to do with the locality of the zombies. I will redo my trigger-setting script to run on the server-side and spawn zombies on the server-side as well. Setting proper trigger locality is going to be fun.
  8. shurix

    Zombies & Demons 5.0

    MrSanches, Thanks for your reply. I will review the latest zombie.sqf code in 2.6 and see how that may help me in my modding. Probably it will even help me get the bots to actually fight back and not simply get slaughtered :)
  9. shurix

    Zombies & Demons 5.0

    I create triggers on the server, then pass them as an array to the clients. The clients are triggering their own spawner scripts. In the past I tried creating the triggers and spawning zombies on server-side only but found that server triggers don't work for clients for some reason. Maybe I missed a trigger setting that defined it as global..? InfAllLocations = [ //["Baltic Sea",[4699.25,3524.91,0.01]], ["Mitrovice",[3795.29,7222.12,0.01]], ["Branibor",[7682.46,4312.29,0.01]], ...... ["Castle Georgiev",[24405.9,1367.89,0.01]] ]; if (isServer) then { civilian setFriend [resistance , 0]; civilian setFriend [east , 0]; resistance setFriend [civilian , 0]; _ztriggers = []; { private ["_markName","_markPos","_mPosX","_mPosY","_mkrY","_mkrX","_detectorName","_x"]; _location=_x; _locationName = _location select 0; _locationPos= _location select 1; //_locationPos = [(_locationPos select 0),(_locationPos select 1),0.01]; _trigger=createTrigger["EmptyDetector",_locationPos]; _size = 100; if (_locationName in ["Krasnoznamen'sk","Sevastopol'","Airport Dubovo","Lyepestok","Ekaterinburg","Sabina","Branibor"]) then { _size = 500; } else { _size = 300; }; _trigger setTriggerActivation ["EAST", "PRESENT", true]; //_trigger setTriggerStatements ["this","[thisTrigger,[0,0]] exec ""custom\zombies\spawn.sqf"";",""]; //diag_log format["Infected: Setting a Trigger in %1 at %2",_location,_locationPos]; _ztriggers pushBack [_trigger,_size]; sleep 0.1; } forEach InfAllLocations; diag_log format["ZOMBIES: All locations are marked with triggers. Sending _ztriggers=%1",_ztriggers]; missionNamespace setVariable ["ztriggers", _ztriggers]; publicVariable "ztriggers"; }; if (!isServer) then { civilian setFriend [resistance , 0]; civilian setFriend [east , 0]; resistance setFriend [civilian , 0]; diag_log format["ZOMBIES: waiting for ztriggers"]; waitUntil {!isNil "ztriggers"}; _ztriggers = missionNamespace getVariable ["ztriggers", []]; diag_log format["ZOMBIES: _ztriggers %1",_ztriggers]; { _trigger = _x select 0; _size = _x select 1; _trigger setTriggerArea[_size,_size,0,false]; _trigger triggerAttachVehicle [player]; _trigger setTriggerActivation ["EAST", "PRESENT", true]; //_trigger setTriggerStatements ["this","thisTrigger spawn INF_fnc_autopop","thisTrigger spawn INF_fnc_playerLeavingZone;"]; //_trigger setTriggerStatements ["this","[thisTrigger,[0,0]] exec ""custom\zombies\spawn.sqf"";",""]; call compile format ["_trigger setTriggerStatements ['this','[thisTrigger,[%1,true,false]] exec ""custom\zombies\spawn.sqf"";',''];", str _size]; } forEach _ztriggers; };
  10. shurix

    Zombies & Demons 5.0

    Ryan and MrSanches, 2.5 works OK on my Epoch server. I created a bunch of triggers in the cities of Taviana and they trigger spawner script. Zombies run after me (east) and they also attack bots (resistance). After replacing the mod with 2.6 though using exactly the same logic, the zombies are getting spawned but they just stand there or loiter without attacking anyone. ~0.5 #first _logic = _this select 0 _paramsArray = _this select 1 _spawnRadius = _paramsArray select 0 _spawnRegular = _paramsArray select 1 _spawnDemons = _paramsArray select 2 diag_log format["Z Spawner: _paramsArray=%1",_paramsArray] if (isnil "ryanzombiesstart") then {ryanzombiesstart = 5} if (isnil "ryanzombiesdelay") then {ryanzombiesdelay = 0.5} if (isnil "ryanzombiescurrentamount") then {ryanzombiescurrentamount = 0} ryanzombiesamount = 8 ryanzombiestotalamount = 1000 if (isnil "ryanzombiesfrequency") then {ryanzombiesfrequency = 180} if (isnil "ryanzombiesactivation") then {ryanzombiesactivation = 0.9} if (isnil "ryanzombieshordesize") then {ryanzombieshordesize = 8} if (isnil "ryanzombiesdeletion") then {ryanzombiesdeletion = 1} if (isnil "Ryanzombieslogicroam") then {Ryanzombieslogicroam = 1} Ryanzombiesjump = 1 Ryanzombiescanthrow = 1 Ryanzombiescanthrowtank = 0 Ryanzombiescanthrowdistance = 30 ryanzombiescanthrowtankdistance = 0 Ryanzombiesdamagecar = 0.005 Ryanzombiesdamageair = 0.005 Ryanzombiesdamagetank = 0 Ryanzombiesdamagetankstrenth = 0 _slowZs = ["RyanZombieC_man_1slow", "RyanZombieC_man_polo_1_Fslow", "RyanZombieC_man_polo_2_Fslow", "RyanZombieC_man_polo_4_Fslow", "RyanZombieC_man_polo_5_Fslow", "RyanZombieC_man_polo_6_Fslow", "RyanZombieC_man_p_fugitive_Fslow", "RyanZombieC_man_w_worker_Fslow", "RyanZombieC_scientist_Fslow", "RyanZombieC_man_hunter_1_Fslow", "RyanZombieC_man_pilot_Fslow", "RyanZombieC_journalist_Fslow", "RyanZombieC_Orestesslow", "RyanZombieC_Nikosslow", "RyanZombieB_Soldier_02_fslow", "RyanZombieB_Soldier_02_f_1slow", "RyanZombieB_Soldier_02_f_1_1slow", "RyanZombieB_Soldier_03_fslow", "RyanZombieB_Soldier_03_f_1slow", "RyanZombieB_Soldier_03_f_1_1slow", "RyanZombieB_Soldier_04_fslow", "RyanZombieB_Soldier_04_f_1slow", "RyanZombieB_Soldier_04_f_1_1slow", "RyanZombieB_Soldier_lite_Fslow", "RyanZombieB_Soldier_lite_F_1slow"] _mediumZs = ["RyanZombieC_man_1medium", "RyanZombieC_man_polo_1_Fmedium", "RyanZombieC_man_polo_2_Fmedium", "RyanZombieC_man_polo_4_Fmedium", "RyanZombieC_man_polo_5_Fmedium", "RyanZombieC_man_polo_6_Fmedium", "RyanZombieC_man_p_fugitive_Fmedium", "RyanZombieC_man_w_worker_Fmedium", "RyanZombieC_scientist_Fmedium", "RyanZombieC_man_hunter_1_Fmedium", "RyanZombieC_man_pilot_Fmedium", "RyanZombieC_journalist_Fmedium", "RyanZombieC_Orestesmedium", "RyanZombieC_Nikosmedium", "RyanZombieB_Soldier_02_fmedium", "RyanZombieB_Soldier_02_f_1medium", "RyanZombieB_Soldier_02_f_1_1medium", "RyanZombieB_Soldier_03_fmedium", "RyanZombieB_Soldier_03_f_1medium", "RyanZombieB_Soldier_03_f_1_1medium", "RyanZombieB_Soldier_04_fmedium", "RyanZombieB_Soldier_04_f_1medium", "RyanZombieB_Soldier_04_f_1_1medium", "RyanZombieB_Soldier_lite_Fmedium", "RyanZombieB_Soldier_lite_F_1medium"] _fastZs = ["RyanZombieC_man_1", "RyanZombieC_man_polo_1_F", "RyanZombieC_man_polo_2_F", "RyanZombieC_man_polo_4_F", "RyanZombieC_man_polo_5_F", "RyanZombieC_man_polo_6_F", "RyanZombieC_man_p_fugitive_F", "RyanZombieC_man_w_worker_F", "RyanZombieC_scientist_F", "RyanZombieC_man_hunter_1_F", "RyanZombieC_man_pilot_F", "RyanZombieC_journalist_F", "RyanZombieC_Orestes", "RyanZombieC_Nikos", "RyanZombieB_Soldier_02_f", "RyanZombieB_Soldier_02_f_1", "RyanZombieB_Soldier_02_f_1_1", "RyanZombieB_Soldier_03_f", "RyanZombieB_Soldier_03_f_1","RyanZombieB_Soldier_03_f_1_1","RyanZombieB_Soldier_04_f","RyanZombieB_Soldier_04_f_1","RyanZombieB_Soldier_04_f_1_1","RyanZombieB_Soldier_lite_F","RyanZombieB_Soldier_lite_F_1"] _spiderZs = ["RyanZombieSpider1", "RyanZombieSpider2", "RyanZombieSpider3", "RyanZombieSpider4", "RyanZombieSpider5", "RyanZombieSpider6", "RyanZombieSpider7", "RyanZombieSpider8", "RyanZombieSpider9", "RyanZombieSpider10", "RyanZombieSpider11", "RyanZombieSpider12", "RyanZombieSpider13", "RyanZombieSpider14"] _demonZs = ["RyanZombieboss1","RyanZombieboss2","RyanZombieboss3","RyanZombieboss4","RyanZombieboss5","RyanZombieboss6","RyanZombieboss7","RyanZombieboss8","RyanZombieboss9","RyanZombieboss10","RyanZombieboss11","RyanZombieboss12","RyanZombieboss13","RyanZombieboss14"] ryanzombiescurrentamount = missionNamespace getVariable [format ["%1_ZsInThisZone", _logic], 0] if (ryanzombiescurrentamount < 0) then {ryanzombiescurrentamount=0} diag_log format["Z Spawner: _ZsInThisZone=%1",ryanzombiescurrentamount] if (ryanzombiescurrentamount > ryanzombiesamount) then {goto "end"} _grp = createGroup civilian _x = ryanzombiescurrentamount _randChance = floor(random(100)) _numToSpawn = floor(random(ryanzombieshordesize)) #loop _zombieTypes = [] if (_spawnRegular) then {_zombieTypes = [[_slowZs,100],[_mediumZs,50],[_fastZs,15],[_spiderZs,30]]} if (_spawnDemons) then {_zombieTypes pushback [_demonZs,3]} _arraySelect = _zombieTypes call BIS_fnc_selectRandom if ((_arraySelect select 1) > _randChance) then { _x = _x + 1 _array = _arraySelect select 0 _random = _array select floor random count _array if (ryanzombiescurrentamount > ryanzombiestotalamount) then {goto "end"} if (ryanzombiescurrentamount < ryanzombiesamount) then {format ["%1",_random] createunit [position _logic, _grp, format ["this switchmove 'AmovPercMstpSnonWnonDnon_SaluteOut';this setpos [(getpos this select 0) + random %1 - random %2, (getpos this select 1) + random %3 - random %4]; [this] exec '\ryanzombies\count.sqf'",_spawnRadius,_spawnRadius,_spawnRadius,_spawnRadius]] } if (ryanzombiescurrentamount < ryanzombiesamount) then {ryanzombiescurrentamount = ryanzombiescurrentamount + 1} if (ryanzombiescurrentamount < ryanzombiesamount) then {missionNamespace setVariable [format ["%1_ZsInThisZone", _logic], ryanzombiescurrentamount] } if (ryanzombiescurrentamount < ryanzombiesamount) then {diag_log format["Z Spawner: Adding a Z : ryanzombiescurrentamount=%1",ryanzombiescurrentamount] } ~ryanzombiesdelay } if (_x < _numToSpawn) then {goto "loop"} deletegroup _grp ~ryanzombiesfrequency goto "loop" #end
  11. shurix

    Zombies & Demons 5.0

    They did not stop attacking the vehicle even after 30 seconds while I was standing in plain sight next to them.
  12. shurix

    Zombies & Demons 5.0

    Awesome mod! Thanks Ryan! I'm running an Epoch server on Taviana and I noticed that when I'm exiting a vehicle to fight zombies, they would attack my vehicle without even noticing me! I think it makes sense to check if _target should change every few seconds. Also, it would be nice to create a mission variable like ryanzombiesinventory = ['bullets','hand guns','food','drink'] so that you are not wasting your bullets killing zombies but can also search their pockets for loot. This is how it was in DayZ and it worked. I understand that it's not something you can add into scenario selection screen. But it may be something you could hardcode and allow us to overwrite..? Can you add more mission variables to say slow, medium, fast and spider zombies cannot attack vehicles but demons can?
  13. I was able to put zombie faces to work by adding to fn_spawner.sqf: please note I updated my createUnit command from the original version Next, on the client side you will need to add to init.sqf and custom\remote.sqf
  14. @Hotzenplotz - is it possible to replace Arma 2 buildings with Arma 3 buildings or add bigger towns at some point? I'd love to use your map for my Epoch mod server where looting is essential. Please advise. ---------- Post added at 20:12 ---------- Previous post was at 19:37 ---------- Thanks Monk! @Hotzenplotz - Love this map!!! Have a couple of questions though. Is there a good reason for 0 coordinate to be in the middle of map? There is a line in the middle between the islands and above it I get 001,002,003 map reference and below it 099,098,097. Is this by design or this is a result of gluing 4 islands together into the same map? Maybe, my map settings need to be adjusted?
  15. I'm trying to make this map work with my Epoch server. What's the map size? 20000?
×