---Army Lockdown

----- Army
---esc_smart_terrain_2_14 

[logic@lockdown_1]
suitable = {=target_squad_name(bh_lockdown_2_14_squad)} true
active = beh@lockdown_1
prior = 500

[logic@lockdown_2]
suitable = {=target_squad_name(bh_lockdown_2_14_squad)} true
active = beh@lockdown_2
prior = 500

[logic@lockdown_3]
suitable = {=target_squad_name(bh_lockdown_2_14_squad)} true
active = beh@lockdown_3
prior = 500

[logic@lockdown_4]
suitable = {=target_squad_name(bh_lockdown_2_14_squad)} true
active = beh@lockdown_4
prior = 500

---esc_smart_terrain_3_7

 
[logic@lockdown_5]
suitable = {=target_squad_name(bh_lockdown_3_7_squad_2)} true
active = beh@lockdown_5
prior = 500

[logic@lockdown_6]
suitable = {=target_squad_name(bh_lockdown_3_7_squad_2)} true
active = beh@lockdown_6
prior = 500

[logic@lockdown_7]
suitable = {=target_squad_name(bh_lockdown_3_7_squad_2)} true
active = beh@lockdown_7
prior = 500

[beh@base]
dont_keep_items						= false
gather_items_enabled				= true
help_wounded_enabled				= false
corpse_detection_enabled			= true
combat_ignore_keep_when_attacked	= false
target								= waypoint
path_end							= loop




[beh@lockdown_1]:beh@base
	pt1 = 88860000,guard | pos:-253.50274658203,-22.243406295776,-286.48861694336 look:-252.68155324459,-22.243406295776,-286.97953498363
	
[beh@lockdown_2]:beh@base
	pt1 = 88860000,guard | pos:-257.00210571289,-22.425817489624,-290.72033691406 look:-256.19569432735,-22.425817489624,-291.25655472279

[beh@lockdown_3]:beh@base
	pt1 = 88860000,guard | pos:-272.68029785156,-21.686435699463,-277.73001098633 look:-271.87927597761,-21.686435699463,-277.1834077239

[beh@lockdown_4]:beh@base
	pt1 = 88860000,guard | pos:-272.31967163086,-21.689016342163,-272.48538208008 look:-273.20427548885,-21.689016342163,-272.92851692438

[beh@lockdown_5]:beh@base
	pt1 = 88860000,guard | pos:-157.84831237793,-2.3343555927277,313.54577636719 look:-157.37061774731,-2.3343555927277,312.67782557011

[beh@lockdown_6]:beh@base
	pt1 = 88860000,guard | pos:-151.16990661621,-3.0027039051056,314.77722167969 look:-150.75950548053,-3.0027039051056,313.8678458333

[beh@lockdown_7]:beh@base
	pt1 = 88860000,guard | pos:-149.83219909668,-2.9718582630157,325.28405761719 look:-150.22746643424,-2.9718582630157,326.19464844465

---- Stalker village

[logic@stalker_lockdown_1]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_1
prior = 980

[logic@stalker_lockdown_2]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_2
prior = 980

[logic@stalker_lockdown_3]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_3
prior = 980

[logic@stalker_lockdown_4]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_4
prior = 980

[logic@stalker_lockdown_5]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_5
prior = 980

[logic@stalker_lockdown_6]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_6
prior = 980

[logic@stalker_lockdown_7]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_7
prior = 980

[logic@stalker_lockdown_8]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_8
prior = 980

[logic@stalker_lockdown_9]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_9
prior = 980

[logic@stalker_lockdown_10]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_12
prior = 980

[logic@stalker_lockdown_11]
suitable = {=check_npc_name(esc_2_12_stalker_fanat) +army_lockdown_active} true
active = beh@stalker_lockdown_10
prior = 990

[logic@stalker_lockdown_12]
suitable = {=check_npc_name(esc_2_12_stalker_wolf) +army_lockdown_active} true
active = beh@stalker_lockdown_11
prior = 990

[logic@stalker_lockdown_13]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_13
prior = 950

[logic@stalker_lockdown_14]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_14
prior = 950

[logic@stalker_lockdown_15]
suitable = {+army_lockdown_active} true
active = beh@stalker_lockdown_15
prior = 950


[beh@stalker_base1]
	behaviour_state = beh_move
	target = waypoint
	path_end = loop
	
[beh@stalker_base]:beh@stalker_base1
	meet = no_meet	
	
[beh@stalker_lockdown_1]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-207.95452880859,-22.549293518066,-128.8483581543 look:-208.00271685794,-22.549293518066,-128.13234585524

[beh@stalker_lockdown_2]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-205.44612121582,-22.545961380005,-128.9239654541 look:-205.42265072837,-22.545961380005,-128.10926455259
	
[beh@stalker_lockdown_3]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-205.8454284668,-22.597984313965,-127.76307678223 look:-205.87773677707,-22.597984313965,-128.66031646729
	
[beh@stalker_lockdown_4]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-201.59928894043,-22.293748855591,-127.64914703369 look:-201.86054000258,-22.293748855591,-128.5975586772
	
[beh@stalker_lockdown_5]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-213.37600708008,-23.194629669189,-124.92739105225 look:-212.42892032862,-23.194629669189,-124.82814551145
	
[beh@stalker_lockdown_6]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-213.83331298828,-23.195550918579,-122.38076019287 look:-213.25867366791,-23.195550918579,-123.08557617664

[beh@stalker_lockdown_7]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-210.64294433594,-22.877895355225,-121.59774780273 look:-211.53942781687,-22.877895355225,-121.62897085957

[beh@stalker_lockdown_8]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-210.89395141602,-22.890514373779,-123.01245880127 look:-211.76965814829,-22.890514373779,-122.98198455572
	
[beh@stalker_lockdown_9]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-210.89686584473,-22.871044158936,-125.27816772461 look:-211.80926203728,-22.871044158936,-125.18921911716
	
[beh@stalker_lockdown_10]:beh@stalker_base1
	pt1 = 88860000,guard | pos:-210.65496826172,-23.193996429443,-129.35891723633 look:-210.78284063935,-23.193996429443,-130.34018409252
	
[beh@stalker_lockdown_11]:beh@stalker_base1
	pt1 = 88860000,guard | pos:-255.93208312988,-21.009017944336,-127.30093383789 look:-254.9332652092,-21.009017944336,-127.28773701284
	
[beh@stalker_lockdown_12]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-223.49008178711,-19.854181289673,-164.21601867676 look:-222.51131898165,-19.854181289673,-164.17487579584
	
[beh@stalker_lockdown_13]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-223.14724731445,-19.940927505493,-162.63453674316 look:-222.15914958715,-19.940927505493,-162.55491317064
	
[beh@stalker_lockdown_14]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-219.69844055176,-19.94252204895,-164.51547241211 look:-220.69499152899,-19.94252204895,-164.53103899769
	
[beh@stalker_lockdown_15]:beh@stalker_base
	pt1 = 88860000,sit_ass | pos:-216.97019958496,-19.941274642944,-162.98168945313 look:-217.02342930436,-19.941274642944,-162.01859247684
	
	
---Castor and Pollox
[logic@castor_lockdown_1]
suitable = {=check_npc_name(assault_csky_leader_esc_5_7)} true
active = beh@castor_lockdown_1
prior = 600

[logic@pollox_lockdown_1]
suitable = {=check_npc_name(assault_stalker_leader_esc_5_9)} true
active = beh@pollox_lockdown_1
prior = 600

[beh@castor_lockdown_1]:beh@stalker_base1
	pt1 = 88860000,idle | pos:5.9352240562439,0.86977106332779,295.33111572266 look:5.1028490662575,0.86977106332779,295.8562169075
	
[beh@pollox_lockdown_1]:beh@stalker_base1
	pt1 = 88860000,idle | pos:3.3982691764832,0.87022680044174,295.80453491211 look:4.3374879360199,0.87022680044174,295.50534999371
	
	
--- execution

[remark@general]
gather_items_enabled = false
help_wounded_enabled = false
corpse_detection_enabled = false
combat_ignore_cond = true
meet = no_meet
wounded = wounded@no_wound
use_camp = false
turn_on_campfire = false
invulnerable = true
combat_ignore_cond =  true
combat_ignore_keep_when_attacked =  true

[beh@general]
behavior_state = beh_move
target = waypoint

[logic@bh_execution_lockdown_1]
suitable = {=target_squad_name(bh_lockdown_execution_squad)} true
active = remark@bh_execution_lockdown_1
prior = 600

[logic@bh_execution_lockdown_2]
suitable = {=target_squad_name(bh_lockdown_execution_squad_2)} true
active = remark@bh_execution_lockdown_3
prior = 600

[logic@bh_execution_lockdown_3]
suitable = {=target_squad_name(bh_lockdown_execution_squad3)} true
active = beh@bh_execution_lockdown_3
prior = 1

[beh@bh_execution_base]
	behaviour_state = beh_move
	meet = no_meet
	
	
	target = waypoint
	path_end = loop

[beh@bh_execution_lockdown_1]:beh@bh_execution_base
	pt1 = 88860000,threat | pos:-134.43222045898,-30.139472961426,-393.75299072266 look:-134.47776456922,-30.139472961426,-394.75123798847
	
[beh@bh_execution_lockdown_2]:beh@bh_execution_base
	pt1 = 88860000,threat | pos:-137.74774169922,-30.139163970947,-393.99801635742 look:-137.35763055086,-30.139163970947,-394.91864162683
	
[beh@bh_execution_lockdown_3]:beh@bh_execution_base
	pt1 = 88860000,guard_fire | pos:-140.60908508301,-40.138750076294,-345.00961303711 look:-137.08314865828,-30.138750076294,-395.85903972387	

[remark@bh_execution_lockdown_1]:remark@general
anim = threat_na
target = story | actor
on_timer = 5 | remark@bh_execution_lockdown_2


[remark@bh_execution_lockdown_2]:remark@general
anim = assault_fire
target = story | actor

[remark@bh_execution_lockdown_3]:remark@general
anim = threat_na
target = story | actor
on_timer = 5 | remark@bh_execution_lockdown_4


[remark@bh_execution_lockdown_4]:remark@general
anim = threat_fire
target = story | actor