[smart_terrain]
squad_id = 4
max_population = 1
respawn_params = respawn@bar_zastava
respawn_only_smart = false
respawn_idle = 43200
respawn_radius = 1000
;arrive_dist = 0
;smart_control = nil
;att_restr = bar_dolg_territory
;def_restr = bar_dolg_territory
;safe_restr = nil
;spawn_point = nil

[respawn@bar_zastava] ;-- Type: checkpoint
;spawn_duty@advanced
;spawn_duty@veteran
;spawn_duty_special
;spawn_freedom_special
spawn_deserted_base


;[spawn_duty@advanced]
;spawn_squads = duty_sim_squad_advanced, duty_sim_squad_advanced, duty_sim_squad_novice
;spawn_num = {+bar_zastava_minigunner_dead +bar_zastava_duty_guard1_dead +bar_zastava_duty_guard2_dead +bar_zastava_duty_guard3_dead +bar_zastava_duty_guard4_dead +bar_zastava_duty_guard5_dead +bar_zastava_duty_guard6_dead +bar_zastava_duty_guard7_dead +bar_zastava_duty_guard8_dead +bar_zastava_duty_guard9_dead -bar_dolg_leader_dead} 1, 0 ;{-bar_dolg_petrenko_dead}

;[spawn_duty@veteran]
;spawn_squads = duty_sim_squad_veteran, duty_sim_squad_veteran, duty_sim_squad_advanced
;spawn_num = {+bar_zastava_minigunner_dead +bar_zastava_duty_guard1_dead +bar_zastava_duty_guard2_dead +bar_zastava_duty_guard3_dead +bar_zastava_duty_guard4_dead +bar_zastava_duty_guard5_dead +bar_zastava_duty_guard6_dead +bar_zastava_duty_guard7_dead +bar_zastava_duty_guard8_dead +bar_zastava_duty_guard9_dead -bar_dolg_leader_dead} 1, 0 ;{-bar_dolg_petrenko_dead}

;[spawn_duty_special]
;spawn_squads = bar_duty_security_squad_leader_squad
;spawn_num = {!squad_exist(bar_duty_security_squad_leader_squad) -bar_dolg_leader_dead} 1, 0 ;{-bar_dolg_petrenko_dead}

;[spawn_freedom_special]
;spawn_squads = bar_freedom_security_squad
;spawn_num = {!squad_exist(bar_freedome_security_squad) =actor_community(actor_freedom) +bar_dolg_leader_dead +bar_dolg_petrenko_dead -bar_stalker_barman_dead} 1, 0


[spawn_deserted_base]	Normal mutants - Rates of groups: ( 1 dog + 3 snork + 1 fracture )
spawn_squads = simulation_mix_dogs, simulation_snork, simulation_snork_2_3, simulation_snork_2_5, simulation_fracture
spawn_num = {+bar_stalker_barman_dead +bar_dolg_leader_dead +bar_dolg_petrenko_dead} 1, 0


;[on_changing_level]

;[smart_control]

[exclusive]
bar_zastava_minigunner_excl = bar\bar_zastava_smart.ltx

faction_base_defense_enemy1 = bar\bar_zastava_smart.ltx
faction_base_defense_enemy2 = bar\bar_zastava_smart.ltx
faction_base_defense_enemy3 = bar\bar_zastava_smart.ltx

duty_guard1 = bar\bar_zastava_smart.ltx
duty_guard2 = bar\bar_zastava_smart.ltx
duty_guard3 = bar\bar_zastava_smart.ltx
duty_guard4 = bar\bar_zastava_smart.ltx
duty_guard5 = bar\bar_zastava_smart.ltx
duty_guard6 = bar\bar_zastava_smart.ltx
duty_guard7 = bar\bar_zastava_smart.ltx
duty_guard8 = bar\bar_zastava_smart.ltx
duty_guard9 = bar\bar_zastava_smart.ltx
