chance between [0..1] , distance in meters
См. определение в файле PlayerBase.c строка 7475
7476 {
7477 if (Math.RandomFloat01() > chance)
7478 return;
7479
7481 float dist_check = distance * distance;
7482 PluginTransmissionAgents plugin = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
7483
7485 {
7486 if (vector.DistanceSq(GetWorldPosition(), target.GetWorldPosition()) < dist_check && target != this)
7487 {
7489 }
7490 }
7491 }
PluginBase GetPlugin(typename plugin_type)
proto native void GetPlayers(out array< Man > players)
static ref array< Man > m_ServerPlayers
proto native CGame GetGame()
const int AGT_AIRBOURNE_BIOLOGICAL
Перекрестные ссылки AGT_AIRBOURNE_BIOLOGICAL, vector::DistanceSq(), GetGame(), CGame::GetPlayers(), GetPlugin(), m_ServerPlayers и Math::RandomFloat01().
Используется в SpreadAgents().