Jump to content

Collision with other AI mods


Goober

Recommended Posts

The method by which player_spawnCheck (from @DayZ_Epoch in dayz.pbo\addons\compile) determines what entity is a zed and what is a player within a certain radius is likely to get things wrong if a server is also running other AI packages.

It needs to discriminate between entities that are not zeds, but are still "CAManBase" 

 

starting at line 28 (the BB code box evidently didn't like it when I entered the starting line number for reference):

The variable "dayz_CurrentZombies" will count anything that is not a player and not local, which could be server controlled AI that is not zombie.

_players = _position nearEntities ["CAManBase",_radius+200];
dayz_maxGlobalZombies = dayz_maxGlobalZombiesInit;
{
	if(isPlayer _x) then {
		dayz_maxGlobalZombies = dayz_maxGlobalZombies + dayz_maxGlobalZombiesIncrease;
	} else {
		if (local _x) then {
			dayz_spawnZombies = dayz_spawnZombies + 1;
		};
		dayz_CurrentZombies = dayz_CurrentZombies + 1;
	};
} foreach _players; 

This is probably not an Epoch-only issue, but community base code on github has gathered more dust than Epoch has, so I am reporting/complaining here.

 

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...