
trigger gepard_jump_T(ventilyaciya:)
{
 center -2064.0, -6736.0, 2608.0
 box_size 672.0, 416.0, 96.0
 command "call top_door_close; g.start id_8_mozg:8; t.lock gepard_jump_T" 
}


procedure top_door_close
{
 command "a.start door_close ventilyaciya:top_door_r"
 command "a.start door_close ventilyaciya:top_door_l"
 command "gr.unlock ventilyaciya:top_door_lock"
}


procedure lestnica_open
{
 command "call door_3; door3_param = 1"
 command "g.start id_9_mozg:9"
 command "g.start id_91_mozg:91"
}


trigger jump_T(lestnica:)
{
 center -2072.0, -7736.0, 3072.0
 box_size 592.0, 432.0, 64.0
 command "g.start id_2_jump:2; t.lock jump_T" 
}


action vint3(ventil_2:vint3)
{
  -started -looped
 {
  time 10
  trans_type 1
  vector 0, 0, 0
  rotate 0, -360,0
  trans_type 0  
 }
}


procedure gep_wave
{
  if (counter = 205)
   {
     command "check_dead_groupid=2; a.stop gepard_borner" 
   }
  counter ++

  command "em.vector ventil_2:gepard_1"
  call AddWaveCharactersVG(ctype_HGepard, 1, 0, chsATTACK, counter, 2)
  command "g.start gepard:counter"
}


procedure gep_wave_2
{
//  if (counter2 = 305)
//  {
//     command "a.stop gepard_borner" 
//   }
  counter2 ++

  command "em.vector ventil_2:gepard_2"
  call AddWaveCharactersVG(ctype_HGepard, 1, 0, chsATTACK, counter2, 2)
  command "g.start gepard2:counter2"
}


gameaction gepard()
{
 {
  move_node ventil_2:120
  ani     ani_Run
 }
 {
  move_player
  move_path "jump_gepard.pth"
  ani        "HumAnimals\HGepard\other\hh_jump_fly.trk"
 }
}


gameaction gepard2()
{
 {
  move_node ventil_2:130
  ani     ani_Run
 }
 {
  move_player
  move_path "jump_gepard_2.pth"
  ani           "HumAnimals\HGepard\other\hh_jump_fly.trk"
 }
}


procedure counter_p
{
  if (counter = 110)
   {
     command "a.stop gepard_borner" 
   }
  command "call gep_wave"
  counter ++
}


action gepard_borner(ventil_2:)
{
-looped 
 {
 time 7
 ontime 0.1
 command "call gep_wave"
 ontime 3.5
 command "call gep_wave_2"
 }
}


action top_luk(ventil_2:top_luk)
{
 {
  time 0.4
  trans_type 1
  accel 1
  vectorr 0, 0, 0
  rotate 0, 0, 97
 }
 {
  time 0.2
  accel -1
  vectorr 0, 0, 0
  rotate 0, 0, -10
 }
 {
  time 0.15
  accel 1
  vectorr 0, 0, 0
  rotate 0, 0, 10
 }
}


trigger top_luk_T(ventil_2:)
{
 auto_lock
 center -3264.0, -4640.0, 832.0
 box_size 256.0, 704.0, 3456.0
 command "call em_lock; a.start top_luk; a.start gepard_borner" 
}


procedure 1hz_damage
{
// if (1Hz)
    call MakePlayerDamage(100)
}


trigger damageT(ventil_2:damage)
{
 command "call 1hz_damage" 
}


procedure em_lock
{
 command "em.lock ventilyaciya:fog_2"
 command "em.lock ventilyaciya:fog_steam_2"
}


action top_door2(ventil_2:top_door2)
{
-noreturn
  {
  time 0.5
  trans_type 1
  vectorr 0, 0, 0
  rotate 0, 92, 0
 }
}


procedure top_door2
{
 command "a.start top_door2"
 command "g.start id_11_mozg:11"
 command "g.start id_12_mozg:12"
}


action Helicop(Helicopter:Helicop)
{
 {
 time 40
 trans_type 1
 path "helicop.pth"
 }
}


action helicop_vint(Helicopter:helicop_vint)
{
 {
 time 40
 trans_type 1
 path "helicop.pth"
 vectorr 0, 0, 0
 rotate 30000,0,0
 }
}


action helicop_rul(Helicopter:helicop_rul)
{
 {
 time 40
 trans_type 1
 path "helicop.pth"
 vectorr 413, -1842, 0
 rotate 0,0,10000
 }
}


procedure helicopter
{
 command "a.start Helicop"
 command "a.start Helicop_vint"
 command "a.start Helicop_rul"
}


trigger char_jump_to_lift_T(Lift_shahta:right_lift)
{
 act_by_char
 center 3.6, 85.2, -0.1
 box_size 664.0, 112.0, 664.0
 auto_lock
 command "jump_to_lift = 0" 
}


trigger start_id_108_T(Lift_shahta:)
{
 center 652.0, -1704.0, 2948.0
 box_size 1304.0, 240.0, 1144.0
 auto_lock
 command "call id_108_mozg_on" 
}


procedure id_108_mozg_on
{
 jump_to_lift = 1
 command "em.vector bunker_in:id_108"
 call AddWaveCharactersV(ctype_HRam, 1, 0, chsSTAND, 108)
 command "g.start id_108_mozg:108; t.lock r_lift_door_T"
 check_dead_id = 108
 command "t.unlock char_jump_to_lift_T"
}


trigger stop_id_108_T(Lift_shahta:)
{
 center 640.0, -6752.0, 2940.0
 box_size 1056.0, 256.0, 1080.0
 auto_lock
 command "p.lock id_108_mozg_on" 
}


action helicop_vint_stop(Helicopter:helicop_vint)
{
-started
 {
 time 12
 trans_type 1
 vectorr 0, 0, 0
 accel -1 
 rotate 3600,0,0
 }
}


action helicop_rul_stop(Helicopter:helicop_rul)
{
-started
 {
 time 12
 trans_type 1
 vectorr 413, -1842, 0
  accel -1
 rotate 0,0,3600
 }
}

