
procedure id_1
{
  call SetCharactersState(1,chsATTACK5)
}


gameaction Freeze()
{
-looped
 {
  ani     ani_Sleep
  ani_loop 1
 }
}


gameaction wait_on_knee()
{
-looped
 {
  move_node 1990
  ani "overbrutes\bwolf\bw_knee.trk"
  ani_loop 1
 }
}


gameaction fire_knee()
{
-looped
 {
  attack_player
  ani              ani_FireIdle
  ani_fire      ani_FireKnee
  ani_loop 1
 }
}


gameaction fire()
{
-looped
 { 
   attack_player
   ani                    ani_FireIdle
   ani_fire            ani_Fire
   ani_attack      ani_Attack 
   ani_loop 1
 }
}


procedure id_2
{
  call SetCharactersState(2,chsATTACK3)
}


gameaction id_2_mozg()
{
 { 
   ani              ani_Sleep
   ani_loop 1
 }
 {
  move_node lestnica:1000
  ani              ani_Walk
 }
 {
  move_node lestnica:1010
  ani              ani_Walk
 }
 {
  command "t.unlock jump_T"
  command "g.start fire:2"
 } 
}


gameaction id_2_jump
{
 {
   ani              "humanimals\hhyena\other\hh_jump_start.trk"
   ani_loop     1
 }
 {
   move_path "jump_hram.pth"
   ani              "humanimals\hhyena\other\hh_jump_fly.trk"
 }
 {
   ani              "humanimals\hhyena\other\hh_jump_post_midle.trk"
   ani_loop     1
 }
 {
  command "call id_2"
 }
 {
  ani ani_Sleep
 }
}


gameaction id_4_mozg()
{
 { 
   attack_player
   ani                    ani_FireIdle
   ani_fire            ani_Fire
   ani_loop 1
 }
 {
   move_node 444
   ani                   ani_Run
 }
 {
   command "call alarm_on" 
   move_node room:390
   ani                   ani_Run
  command "call door_4_close"
 }
 {
   move_node room:330
   ani                   ani_Run
 }
 {
   move_node room:340
   ani                   ani_Run
 }
 {
   command "g.start fire:4"
 }
}


trigger id_3_and_4(kor:)
{
 center -1600.0, -7744.0, -480.0
 box_size 128.0, 384.0, 832.0
 auto_lock
 command "check_dead_id = 3;call id_3;g.start id_4_mozg:4" 
}


procedure id_3
{
  call SetCharactersState(3,chsATTACK2)
}


procedure id_5
{
  command "g.start id_51:51"
  call SetCharactersState(5,chsATTACK2)
}


trigger perci_ON(kor:)
{
 center -1856.0, -7712.0, -480.0
 box_size 128.0, 576.0, 832.0
 auto_lock
 command "g.start freeze:666;g.start freeze:777" 
}


gameaction perec_1_stage_1()
{
 {
  move_node zal:1370
  ani         ani_Run
 }
 {
  move_node zal:1380
  ani         ani_Run
 }
 {
  move_node zal:1390
  ani         ani_Run
 }
 {
  move_node kor:140
  ani         ani_Run
 }
 {
  move_node kor:180
  ani         ani_Run
 }
 {
  move_node kor:160
  ani         ani_Sleep
 }
 {
  command "g.start Freeze:777"
 }
}


gameaction perec_2_stage_1()
{
 {
  move_node zal:1210
  ani         ani_Run
 }
 {
  move_node zal:1370
  ani         ani_Run
 }
 {
  move_node zal:1380
  ani         ani_Run
 }
 {
  move_node zal:1390
  ani         ani_Run
 }
 {
  move_node kor:140
  ani         ani_Run
 }
 {
  move_node kor:190
  ani         ani_Run
 }
 {
  move_node kor:160
  ani         ani_Sleep
 }
 {
  command "g.start Freeze:666"
 }
}


gameaction perec_1_stage_2()
{
 {
  move_node kor:170
  ani         ani_Run
 }
 {
  move_node kor:160
  ani         ani_Run
 }
 {
  move_node 0_level:410
  ani         ani_Run
 }
 {
  move_node 0_level:420
  ani         ani_Run
 }
 {
  move_node 0_level:430
  ani         ani_Run
 }
 {
  move_node 0_level:440
  ani         ani_Run
 }
 {
  move_node 0_level:450
  ani         ani_Run
 }
 {
  move_node 0_level:480
  ani         ani_Run
 }
 {
  move_node 0_level:520
  ani         ani_Run   
 }
 {
  move_node 0_level:440
  ani         ani_Sleep
 }
 {
  command "t.unlock go_to_room"
  command "g.start Freeze:777"
 }
}


gameaction perec_2_stage_2()
{
 {
  move_node kor:140
  ani         ani_Run
 }
 {
  move_node kor:170
  ani         ani_Run
 }
 {
  move_node kor:160
  ani         ani_Run
 }
 {
  move_node 0_level:410
  ani         ani_Run
 }
 {
  move_node 0_level:420
  ani         ani_Run
 }
 {
  move_node 0_level:430
  ani         ani_Run
 }
 {
  move_node 0_level:440
  ani         ani_Run
 }
 {
  move_node 0_level:450
  ani         ani_Run
 }
// {
//  move_node 0_level:490
//  ani         ani_Run
// }
 {
  move_node 0_level:510
  ani         ani_Run   
 }
 {
  move_node 0_level:440
  ani         ani_Sleep
 }
 {
  command "g.start Freeze:666"
 }
}


gameaction perec_1_stage_3()
{
// {
//  move_node 0_level:500
//  ani         ani_Run
// }
// {
//  move_node 0_level:510
//  ani         ani_Run
// }
// {
//  move_node 0_level:520
//  ani         ani_Run
// }
 {
  move_node 0_level:500
  ani         ani_Sleep
 }
 {
  command "g.start Freeze:777"
 }
}


gameaction perec_2_stage_3()
{
// {
//   ani       ani_Sleep
//   ani_loop 1
// }
// {
//  move_node 0_level:500
//  ani         ani_Run
// }
// {
//  move_node 0_level:510
//  ani         ani_Run
// }
 {
  move_node 0_level:500
  ani         ani_Sleep
 }
 {
  command "g.start Freeze:666; a.start lift_door_close2"
 }
}


procedure perci_1
{
command "g.start perec_1_stage_1:777"
command "g.start perec_2_stage_1:666"
}


procedure perci_2
{
 command "g.start perec_1_stage_2:777"
 command "g.start perec_2_stage_2:666"
 command "call left_lift_down"
}


procedure perci_3
{
 command "g.start perec_1_stage_3:777"
 command "g.start perec_2_stage_3:666"
}


procedure id_6
{
call SetCharactersState(6,chsATTACK2)
}


gameaction id_7_mozg()
{
 { 
   attack_player
   ani                    ani_FireIdle
   ani_fire            ani_Fire
   ani_loop 1
 }
 {
  command "call id_7"
 }
}


procedure id_7
{
call SetCharactersState(7,chsATTACK2)
}


procedure id_8
{
call SetCharactersState(8,chsATTACK)
}


gameaction id_8_mozg()
{
 {
  ani        "HumAnimals\HGepard\other\hh_jump_fly.trk"
  ani_loop 1
 }
{
  command "call id_8"
 }
}


gameaction id_9_mozg()
{
 {
  ani            ani_Sleep
  ani_loop 1
 }
 {
  move_node lestnica:1170
  ani            ani_Run
 }
 {
  move_node 0_level:455
  ani            ani_Run
 }
 {
   attack_player
   command "call id_9"
 }
}


gameaction id_91_mozg()
{
 {
  ani            ani_Sleep
  ani_loop 1
 }
 {
  move_node lestnica:1170
  ani            ani_Run
 }
 {
  move_node 0_level:590
  ani            ani_Run
 }
 {
   command "call id_91"
   attack_player
 }
}


procedure id_9
{
call SetCharactersState(9,chsATTACK3)
}


procedure id_91
{
call SetCharactersState(91,chsATTACK3)
}


gameaction id_11_mozg()
{
 {
   ani      ani_Fire
   ani_loop 1
 }
 {
   move_node 250
   ani      ani_Run
 }
 {
   command "call id_11"
 }
}


procedure id_11
{
call SetCharactersState(11,chsATTACK2)
}


gameaction id_12_mozg()
{
 {
   move_node Bunker_terr:2345
   ani      ani_Run
 }
 {
   ani      ani_FireIdle
   ani_loop 1
 }
 {
   move_node ventil_2:260
   ani      ani_Run
 }
 {
   command "call id_12"
 }
}


procedure id_12
{
call SetCharactersState(12,chsATTACK3)
}


trigger id_1(bunker:)
{
 auto_lock
 center -8188.6, 0.4, 8190.3
 box_size 2176.0, 2304.0, 2560.0
 command "param1=1;call ga_attackplayer" 
}


gameaction climb_up1()
{
 {
  ani "humanimals\hhyena\other\hh_climb_up.trk"
  ani_loop 1
 }
 {
   move_node bunker_in:1460
   attack_player
   ani_fire ani_Fire2
   ani ani_Gal
 }
 {
   move_node bunker_in:1440
   attack_player
   ani_fire ani_Fire2
   ani ani_Gal
 }
 {
   do_while lift_guards_on
   ani          ani_FireIdle
   ani_fire  ani_Fire
   ani_loop 1
 }
}


gameaction climb_up2()
{
 {
  ani "humanimals\hhyena\other\hh_climb_up.trk"
  ani_loop 1
 }
 {
   move_node bunker:1890
   attack_player
   ani_fire ani_Fire2
   ani ani_Gal
 }
 {
   do_while lift_guards_on
   ani          ani_FireIdle
   ani_fire  ani_Fire
   ani_loop 1
 }
}


gameaction climb_up3()
{
 {
  ani "humanimals\hhyena\other\hh_climb_up.trk"
  ani_loop 1
 }
 {
   move_node bunker:1900
   attack_player
   ani_fire ani_Fire2
   ani ani_Gal
 }
 {
   do_while lift_guards_on
   ani          ani_FireIdle
   ani_fire  ani_Fire
   ani_loop 1
 }
}


gameaction climb_up4()
{
 {
  ani "humanimals\hhyena\other\hh_climb_up.trk"
  ani_loop 1
 }
 {
   move_node bunker:1940
   attack_player
   ani_fire ani_Fire2
   ani ani_Gal
 }
 {
   do_while lift_guards_on
   ani          ani_FireIdle
   ani_fire  ani_Fire
   ani_loop 1
 }
}


trigger lift_guards(Lift_shahta:)
{
 center 752.0, 176.0, 2176.0
 box_size 224.0, 352.0, 576.0
 auto_lock
 command "lift_guards_on = 0" 
}


procedure lift_guards
{
  command "g.start climb_up1:102"
  command "g.start climb_up2:103"
  command "g.start climb_up3:104"
  command "g.start climb_up4:105"
  command "t.unlock lift_guards"
}


gameaction id_106_mozg()
{
-looped
 {
  attack_player
  ani              ani_FireIdle
  ani_fire      ani_FireKnee
  ani_loop 1
 }
}


gameaction id_107_mozg()
{
 {
   attack_player
   ani ani_Fire
   ani_loop 1
 }
 {
   move_node bunker_in:1450 
   ani_fire            ani_Fire2
   ani             ani_Run
 }
}


gameaction id_108_mozg()
{
 {
  move_vector 662, 94, 2952
  ani ani_Sleep
 }
 {
   ani              "humanimals\hhyena\other\hh_jump_start.trk"
   ani_loop     1
 }
 {
   move_path "jump_to_tros.pth"
   ani              "humanimals\hhyena\other\hh_jump_fly.trk"
 }
 {
   do_while jump_to_lift
   keep_angle
   ani              "humanimals\hhyena\other\hh_descent.trk"
   ani_loop     1
 }
 {
   command "param1=stop_sound;sound Sound_Character_MoveOnRope"
   ani              "humanimals\hhyena\other\Hh_jump_post_long.trk"
   ani_loop     1
 }
 {
   command "g.start fire:108"
 }
}


trigger End_level(Bunker_terr:)
{
 center -6580.0, -4672.0, -503.0
 box_size 1424.0, 380.0, 3250.0
 auto_lock
 command "param1=1;call endlevel" 
}


gameaction id_51()
{
 {
   seek_node 0_level:455
   attack_player
   ani ani_Run
   ani_fire ani_Fire2
 }
}


trigger clearammoT(Helicopter:)
{
 center -1143.0, 342.0, -554.0
 box_size 86.0, 280.0, 564.0
 auto_lock
 command "clearammo" 
}

