Собственно что бы работало по примеру волков (собачки хоть и сами по себе AnimalsBase), но ai им прекручен от Волков
Вобщем так
db\events.xml
<event name="AnimalGermanDogs">
<nominal>0</nominal>
<min>2</min>
<max>4</max>
<lifetime>180</lifetime>
<restock>0</restock>
<saferadius>200</saferadius>
<distanceradius>0</distanceradius>
<cleanupradius>0</cleanupradius>
<flags deletable="0" init_random="0" remove_damaged="1"/>
<position>fixed</position>
<limit>custom</limit>
<active>1</active>
<children>
<child lootmax="0" lootmin="0" max="2" min="1" type="FS_GermanDog_tan_fears"/>
<child lootmax="0" lootmin="0" max="2" min="1" type="FS_GermanDog_black"/>
<child lootmax="0" lootmin="0" max="2" min="1" type="FS_GermanDog_tan"/>
</children>
</event>
Тут почти все ясно кроме тега limit
далее
Надо или нет но я по привычке вставляю эвент в
cfgeventspawns.xml
в самом низу
<event name="AnimalGermanDogs" />
далее нужно увязать эвент и с территорией
делаем мы это тут
cfgenvironment.xml
Включу его целиком что бы было понятней
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<env>
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<!-- PATCH 1.06 at 03.12.2019 : ALL ADDS MARKED by MOD -->
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<!-- VERSION 10.12.2019.1108 -->
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<!-- GENERAL Territories Section -->
<territories>
<file path="env/cattle_territories.xml" />
<file path="env/sheep_goat_territories.xml" />
<file path="env/red_deer_territories.xml" />
<file path="env/roe_deer_territories.xml" />
<file path="env/wild_boar_territories.xml" />
<file path="env/pig_territories.xml" />
<file path="env/hen_territories.xml" />
<file path="env/wolf_territories.xml" />
<file path="env/hare_territories.xml" />
<file path="env/zombie_territories.xml" />
<file path="env/bear_territories.xml" />
<!-- FIDOV FS DOGS -->
<file path="env/germandogs_territories.xml" />
<!-- FIDOV FS DOGS -->
<territory type="Herd" name="Deer" behavior="DZDeerGroupBeh">
<file usable="red_deer_territories" />
</territory>
<territory type="Herd" name="Cow" behavior="DZdomesticGroupBeh">
<file usable="cattle_territories" />
</territory>
<territory type="Herd" name="Goat" behavior="DZSheepGroupBeh">
<file usable="sheep_goat_territories" />
</territory>
<territory type="Herd" name="Sheep" behavior="DZSheepGroupBeh">
<file usable="sheep_goat_territories" />
</territory>
<territory type="Herd" name="RoeDeer" behavior="DZDeerGroupBeh">
<file usable="roe_deer_territories" />
</territory>
<territory type="Herd" name="Wolf" behavior="DZWolfGroupBeh">
<file usable="wolf_territories" />
</territory>
<territory type="Herd" name="WildBoar" behavior="DZDeerGroupBeh">
<file usable="wild_boar_territories" />
</territory>
<territory type="Herd" name="Pig" behavior="DZSheepGroupBeh">
<file usable="pig_territories" />
</territory>
<territory type="Herd" name="Bear" behavior="BlissBearGroupBeh">
<file usable="bear_territories"/>
</territory>
<!-- FIDOV FS DOGS -->
<territory type="Herd" name="GermanDogs" behavior="DZWolfGroupBeh">
<file usable="germandogs_territories"/>
</territory>
<!-- FIDOV FS DOGS END-->
<!-- HEN -->
<territory type="Ambient" name="AmbientHen" behavior="DZAmbientLifeGroupBeh">
<file usable="hen_territories" />
<!-- different agent types - class has to begin with AgentType:w -->
<agent type="Male" chance="1">
<spawn configName="Animal_GallusGallusDomesticus" chance="1" />
</agent>
<agent type="Female" chance="3">
<spawn configName="Animal_GallusGallusDomesticusF_Brown" chance="1" />
<spawn configName="Animal_GallusGallusDomesticusF_Spotted" chance="10" />
<spawn configName="Animal_GallusGallusDomesticusF_White" chance="20" />
</agent>
<item name="globalCountMax" val="50" />
<item name="zoneCountMin" val="1" />
<item name="zoneCountMax" val="1" />
<item name="playerSpawnRadiusNear" val="25" />
<item name="playerSpawnRadiusFar" val="75" />
</territory>
<!-- HARE -->
<territory type="Ambient" name="AmbientHare" behavior="DZAmbientLifeGroupBeh">
<file usable="hare_territories" />
<!-- different agent types - class has to begin with AgentType:w -->
<agent type="Male" chance="1">
<spawn configName="Animal_LepusEuropaeus" chance="1" />
</agent>
<agent type="Female" chance="3">
<spawn configName="Animal_LepusEuropaeus" chance="1" />
</agent>
<item name="globalCountMax" val="0" />
<item name="zoneCountMin" val="3" />
<item name="zoneCountMax" val="5" />
<item name="playerSpawnRadiusNear" val="15" />
<item name="playerSpawnRadiusFar" val="200" />
</territory>
<!-- INFECTED -->
<territory type="Herd" name="ZombieTest" behavior="DZdomesticGroupBeh">
<file usable="zombie_territories" />
<!-- different agent types - class has to begin with AgentType:w -->
<agent type="Male">
<spawn configName="ZombieMale3_NewAI" />
<item name="countMin" val="0" />
<item name="countMax" val="0" />
</agent>
<agent type="Female">
<spawn configName="ZombieFemale3_NewAI" />
<item name="countMin" val="0" />
<item name="countMax" val="0" />
</agent>
<!-- count of herds of this type in the map -->
<item name="herdsCount" val="0" />
</territory>
</territories>
</env>
Важно указать behavior="DZWolfGroupBeh" тк он ов конфиге AI волков, в принципе можно указать любой другой - это скажется на поведении...
Ну и собственно территории
env\germandogs_territories.xml
<?xml version="1.0" encoding="UTF-8"?>
<territory-type>
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<!-- PATCH 1.06 at 03.12.2019 : CHANGES marked by MODDED : ALL ADDS AT BOTTOM OF FILE -->
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<!-- VERSION 10.12.2019.1121 -->
<!--ШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШШ-->
<territory color="4291611650">
<zone name="Rest" smin="0" smax="0" dmin="0" dmax="0" x="1944" z="1918" r="100" d="2"/>
</territory>
<territory color="4291611650">
<zone name="Rest" smin="0" smax="0" dmin="0" dmax="0" x="2569" z="2617" r="100" d="2"/>
</territory>
<territory color="4291611650">
<zone name="Rest" smin="0" smax="0" dmin="0" dmax="0" x="54034" z="13285" r="100" d="2"/>
</territory>
<territory color="4291611650">
<zone name="Rest" smin="0" smax="0" dmin="0" dmax="0" x="3019" z="12648" r="100" d="2"/>
</territory>
</territory-type>
что бтакое d="2" я еще не выяснил