<include path="screen/hud.xml"/>
<include path="game/ho/hints_string.xml"/>
<res path="game/ho/locations/loc18"/>

<!-- background  -->
<image src="bg_reanimation_doctor.jpg" z="-1"/>
<image.cc id="body-shaked" src="body-shaked.png" x="0.507" y="0.55" z="0" alpha="0"/>

<param hintsCount="6"/>

<hoi id="test-tube_doctor"   x="0.54296875" y="0.07166666666667" z="87" ><stateimage src="test-tube1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="test-tube_doctor"   x="-0.0048828125" y="0.695" z="86" ><stateimage src="test-tube2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="test-tube_doctor"   x="0.744140625" y="0.38833333333333" z="85" ><stateimage src="test-tube3_doctor.png" cols="2" states="2"/></hoi>
<hoi id="test-tube_doctor"   x="0.0068359375" y="0.00333333333333" z="84" ><stateimage src="test-tube4_doctor.png" cols="2" states="2"/></hoi>
<hoi id="test-tube_doctor"   x="0.3984375" y="0.295" z="83" ><stateimage src="test-tube5_doctor.png" cols="2" states="2"/></hoi>
<hoi id="pipette_doctor"   x="0.6064453125" y="0.335" z="82" ><stateimage src="pipette1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="pipette_doctor"   x="0.25" y="0.385" z="81" ><stateimage src="pipette2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="pipette_doctor"   x="0.8720703125" y="0.31" z="80" ><stateimage src="pipette3_doctor.png" cols="2" states="2"/></hoi>
<!--hoi id="plate_doctor"   x="0.205078125" y="0.63333333333333" z="74" ><stateimage src="plate1_doctor.png" cols="2" states="2"/></hoi-->
<hoi id="plaster_doctor"   x="0.3408203125" y="0.81333333333333" z="73" ><stateimage src="plaster1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="plaster_doctor"   x="0.017578125" y="0.19166666666667" z="72" ><stateimage src="plaster2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="plaster_doctor"   x="0.787109375" y="-0.01333333333333" z="71" ><stateimage src="plaster3_doctor.png" cols="2" states="2"/></hoi>
<hoi id="tweezers_doctor"   x="0.3291015625" y="0.02" z="70" ><stateimage src="tweezers1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="tweezers_doctor"   x="0.6337890625" y="0.38333333333333" z="69" ><stateimage src="tweezers2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="tweezers_doctor"   x="0.248046875" y="0.71" z="68" ><stateimage src="tweezers3_doctor.png" cols="2" states="2"/></hoi>
<hoi id="stethoscope_doctor"   x="0.3994140625" y="0.02333333333333" z="67" ><stateimage src="stethoscope1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="stethoscope_doctor"   x="0.7041015625" y="0.60666666666667" z="66" ><stateimage src="stethoscope2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="X-ray_photography_doctor"   x="0.9375" y="0.04333333333333" z="65" ><stateimage src="X-ray_photography1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="X-ray_photography_doctor"   x="0.90234375" y="0.66666666666667" z="64" ><stateimage src="X-ray_photography2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="X-ray_photography_doctor"   x="0.09375" y="0.32833333333333" z="63" ><stateimage src="X-ray_photography4_doctor.png" cols="2" states="2"/></hoi>
<hoi id="X-ray_photography_doctor"   x="0.439453125" y="0.69333333333333" z="62" ><stateimage src="X-ray_photography5_doctor.png" cols="2" states="2"/></hoi>
<hoi id="spiritlamp_doctor"   x="-0.03125" y="0.5" z="61" ><stateimage src="spiritlamp1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="hammer_doctor"   x="0.74609375" y="0.28333333333333" z="60" ><stateimage src="hammer1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="hammer_doctor"   x="0.044921875" y="0.78333333333333" z="59" ><stateimage src="hammer2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="hammer_doctor"   x="0.8984375" y="0.62666666666667" z="58" ><stateimage src="hammer3_doctor.png" cols="2" states="2"/></hoi>
<hoi id="scalpel_doctor"   x="-0.0380859375" y="0.30166666666667" z="57" ><stateimage src="scalpel1_doctor.png" cols="2" states="2"/></hoi>
<hoi id="scalpel_doctor"   x="0.4873046875" y="0.11" z="56" ><stateimage src="scalpel2_doctor.png" cols="2" states="2"/></hoi>
<hoi id="scalpel_doctor"   x="0.8291015625" y="0.765" z="55" ><stateimage src="scalpel3_doctor.png" cols="2" states="2"/></hoi>
<hoi id="scalpel_doctor"   x="0.8603515625" y="0.50666666666667" z="54" ><stateimage src="scalpel4_doctor.png" cols="2" states="2"/></hoi>
<hoi id="scalpel_doctor"   x="0.138671875" y="0.61" z="53" ><stateimage src="scalpel5_doctor.png" cols="2" states="2"/></hoi>
<hoi id="X-ray_photography_doctor"   x="0.5869140625" y="0.49" z="46" ><stateimage src="X-ray_photography3_doctor.png" cols="2" states="2"/></hoi>

<stateimage.hidden id="plate" src="plate1_doctor.png" cols="2" states="1" frames="0"         x="0.205078125" y="0.63333333333333" z="74"/>

<ihoi id="syringe_doctor"   x="0.1611328125" y="0.4" z="98"
todo="1"
active.object="syringe_doctor_act"
><stateimage src="syringe1_doctor.png" cols="2" states="2"/>
</ihoi>

<!-- ставим адреналин в капельницу -->
<iactive.hidden id="dropper1int_doctor"   x="0.560546875" y="0.12166666666667" z="47"
    todo="2"
    cursorname="adrenalin_doctor_act"
    object="adrenalin1_doctor_obj"
    active.object="dropper_doctor_act"
    interactive.object="arm1int_doctor"
    hintName="game.hints136"
    sound="sound/game/E3/glass.wav"
><stateimage src="dropper1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- иголку капельницы в руку -->
<iactive.hidden id="arm1int_doctor"   x="0.3759765625" y="0.57166666666667" z="45"
todo="1"
cursorname="dropper_doctor_act"
object="dropper2_doctor_obj"
hintName="game.hints137"
sound="sound/game/E15/drop.wav"
><stateimage src="arm1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- берем кровь из руки -->
<iactive.hidden id="arm2int_doctor"   x="0.3759765625" y="0.57166666666667" z="45"
    todo="1"
    cursorname="syringe_doctor_act"
    active.object="syringe2_doctor_act"
    hintName="game.hints138"
    obj.start="syr-in-anm"
    sound="sound/game/E15/drop.wav"
><stateimage src="arm1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<animator.hidden id="syr-in-anm"  time="1000" loops="1" started="false" autokill="false"            x="0.46" y="0.6" z="45">
    <animation.lb src="syr-in-anm.png" cols="4"/>
</animator.hidden>

<animator.hidden id="syr-out-anm" time="1000" loops="1" started="false" autokill="false"            x="0.26" y="0.71" z="80">
    <animation.lb src="syr-in-anm.png" cols="4" frames="3 2 1 0"/>
    <animation.cc src="blood-out-anm.png" cols="4"/>
</animator.hidden>

<commoneffect id="red-in"   objects="red"   times="900 100" alphas="0 1" started="false" loops="1" autokill="false"/>
<commoneffect id="green-in" objects="green" times="100 100" alphas="0 1" started="false" loops="1" autokill="false"/>
<commoneffect id="brown-in" objects="brown" times="100 100" alphas="0 1" started="false" loops="1" autokill="false"/>
<commoneffect id="blue-in"  objects="blue"  times="100 100" alphas="0 1" started="false" loops="1" autokill="false"/>
<commoneffect id="mid-in"   objects="mid"   times="100 100" alphas="0 1" started="false" loops="1" autokill="false"/>

<!-- в миску шприц -->
<iactive.hidden id="red1int_doctor"   x="0.2041015625" y="0.68333333333333" z="79"
    todo="2"
    cursorname="syringe2_doctor_act"
    object="red"
    hintName="game.hints131"
    obj.start="syr-out-anm red-in"
    sound="sound/game/E15/needle.wav"
>
    <stateimage src="red1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- в миску лист -->
<iactive.hidden id="green1int_doctor"   x="0.2041015625" y="0.63" z="78"
    todo="2"
    cursorname="leaf_doctor_act"
    object="green"
    hintName="game.hints132"
    obj.start="green-in"
    sound="sound/game/E15/slap.wav"
>
    <stateimage src="green1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- в миску воду -->
<iactive.hidden id="blue1int_doctor"   x="0.3037109375" y="0.68333333333333" z="77"
    todo="2"
    cursorname="jug_doctor_act"
    object="blue"
    hintName="game.hints133"
    obj.start="blue-in"
    sound="sound/game/E8/water.wav"
>
    <stateimage src="blue1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- в миску землю -->
<iactive.hidden id="brown1int_doctor"   x="0.3037109375" y="0.63" z="76"
    todo="2"
    cursorname="soil_doctor_act"
    object="brown"
    hintName="game.hints134"
    obj.start="brown-in"
    sound="sound/game/E14/sand.wav"
>
    <stateimage src="brown1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<!-- в миску кристал -->
<iactive.hidden id="circle1int_doctor"   x="0.2744140625" y="0.66333333333333" z="75"
    todo="1"
    cursorname="crystal_doctor_act"
    object="mid"
    hintName="game.hints135"
    obj.start="mid-in"
    sound="sound/game/E8/glass_put.wav"
>
    <stateimage src="circle1int_doctor.png" cols="2" states="2"/>
</iactive.hidden>

<list id="defibrillators" z="51">
    <!-- дефибрилятор -->
    <iactive id="defibrillator1int_doctor"   x="0.177734375" y="0.46833333333333" z="51"
        todo="1"
        active.object="defibrilator_doctor_act"
        object="defibrillator2_doctor_obj"
        sound="sound/game/E7/click.wav"
    >
        <stateimage src="defibrillator1int_doctor.png" cols="2" states="2"/>
    </iactive>
    <image id="defibrillator2_doctor_obj" src="defibrillator2_doctor_obj.png" x="0.181640625" y="0.47333333333333" z="52"/>

    <!-- шнур в розетку -->
    <iactive id="flex1int_doctor"   x="0.2080078125" y="0.685" z="49"
        todo="1"
        object="flex2_doctor_obj"
        interactive.object="body1int_doctor defibrillator1int_doctor"
        obj.start="def-charge"
        sound="sound/game/E1/cord.wav"
    >
        <stateimage src="flex1int_doctor.png" cols="2" states="2"/>
    </iactive>

    <!-- дефибрилятор к телу -->
    <iactive.hidden id="body1int_doctor"   x="0.4228515625" y="0.47166666666667" z="44"
        todo="1"
        cursorname="defibrilator_doctor_act"
        hintName="game.hints139"
        obj.start="body-shaker dropper-shaker"

        hide.oncomplete="def-charge"

        sound="sound/game/E15/discharge.wav"
    >
        <stateimage src="body1int_doctor.png" cols="2" states="2"/>
    </iactive.hidden>
    
    <commoneffect id="body-shaker"      objects="body-shaked"           times="60 500 60" alphas="1 0 -1"       started="false" loops="1" autokill="false"/>
    <commoneffect id="dropper-shaker"   objects="dropper2_doctor_obj"   times="60 500 60" shifts="0:-15 0 0:15" started="false" loops="1" autokill="false"/>

    <animator id="def-charge" time="4000" loops="1" started="false" autokill="false"            x="0.3170" y="0.5410" z="53">
        <animation src="def-charge-anm.png" cols="3" frames="-1 2 2 2" autokill="false"/>
        <animation src="def-charge-anm.png" cols="3" frames="-1 -1 1 0" autokill="false" z="1"/>
    </animator>
</list>

<!-- FINAL PARTICLES: -->
<ref.sfx-w class="image" src="hud/effects/star.png"/>
<ref.sfx-r class="image" src="hud/effects/star-red.png"/>
<ref.sfx-g class="image" src="hud/effects/star-green.png"/>
<ref.sfx-b class="image" src="hud/effects/star-blue.png"/>
<ref.sfx-x class="image" src="hud/effects/star-brown.png"/>

<ref.sfx-ws  class="image" src="hud/effects/star-shifted.png"/>

<ref.prt class="particles"                  x="0.29" y="0.63" z="100"
    capacity="10"
    ttl="2000"
    v.y="-50" v.x="0" v.angle="0.00"
    emmitter.w="5" emmitter.h="10" emmitter.spread="1"
    start="true"
    item.fade="1 0" item.scale="1 2" item.rotate="0 9"
    autokill="false"
/>

<ref.sector class="list" alpha="0"/>
<sector id="red" z="91">
    <image src="red2_obj.png"               x="0.2089" y="0.6766" z="1"/>
    <image src="blood2_doctor_obj.png"      x="0.2402" y="0.6966" z="2"/>
    <prt item="sfx-r"                       x="0.2500" y="0.6900" z="3"/>
</sector>

<sector id="green" z="90">
    <image src="green2_doctor_obj.png"      x="0.2109" y="0.6283" z="1"/>
    <image src="leaf1_doctor_obj.png"       x="0.2402" y="0.6316" z="2"/>
    <prt item="sfx-g"                       x="0.2700" y="0.6400" z="3"/>
</sector>

<sector id="brown" z="91">
    <image src="brown2_doctor_obj.png"      x="0.3105" y="0.6283" z="1"/>
    <image src="soil1_doctor_obj.png"       x="0.3251" y="0.6333" z="2"/>
    <prt item="sfx-x"                       x="0.3400" y="0.6400" z="3"/>
</sector>

<sector id="blue" z="93">
    <image src="blue2_doctor_obj.png"       x="0.3056" y="0.6816" z="1"/>
    <image src="water1_doctor_obj.png"      x="0.3164" y="0.6933" z="2" alpha="0.7"/>
    <prt item="sfx-b"                       x="0.3600" y="0.6900" z="3"/>
</sector>

<sector id="mid" z="92">
    <image src="shine1_doctor_obj.png"      x="0.2070" y="0.6283" z="1"/>
    <image src="crystal1_doctor_obj.png"    x="0.2851" y="0.6216" z="2"/>
    <prt item="sfx-ws"                       x="0.3051" y="0.6416" z="3"
        capacity="50"
        ttl="4000"
        v.y="-70" v.x="0" v.angle="0.00"
        emmitter.w="5" emmitter.h="10" emmitter.spread="1"
        item.rotate="0 9" item.scale="1.5 2"
    />
    <prt item="sfx-ws"                       x="0.3051" y="0.6416" z="3"
        capacity="50"
        ttl="4000"
        v.y="-70" v.x="0" v.angle="0.00"
        emmitter.w="5" emmitter.h="10" emmitter.spread="1"
        item.rotate="9 0" item.scale="1.5 2"
    />
    <prt item="sfx-r"                       x="0.3051" y="0.6416" z="3"
        capacity="50"
        ttl="4000"
        v.y="-70"
        item.rotate="0 8" item.rotate.x="1.0"
    />
    <prt item="sfx-b"                       x="0.3051" y="0.6416" z="3"
        capacity="50"
        ttl="4000"
        v.y="-70"
        item.rotate="0 -8" item.rotate.x="-1.0"
    />
</sector>

<image id="dropper2_doctor_obj" src="dropper2_doctor_obj.png" x="0.4501953125" y="0.48333333333333" z="100"/>
<image id="adrenalin1_doctor_obj" src="adrenalin1_doctor_obj.png" x="0.5673828125" y="0.24666666666667" z="99"/>
<image id="flex2_doctor_obj" src="flex2_doctor_obj.png" x="0.0634765625" y="0.345" z="50"/>
<!-- fetish -->
<image        src="monitors-bg.png"                                 x="0.1600" y="0.0000" z="1"/>
<animation.cc src="red-point.png" frames="-1 0" time="1000"         x="0.2754" y="0.3133" z="2"/>

<list id="mon-normal">
    <!-- MONITOR A -->
    <animation    src="mon-anm-1.png" cols="2"                  time="500"          x="0.1800" y="0.0150" z="2"/>
    <animation    src="mon-anm-2.png" cols="2"                  time="900"          x="0.1800" y="0.0600" z="2"/>
    <animation    src="mon-a-cyf-1.png" cols="4" frames="2 3"   time="10000"        x="0.2560" y="0.0250" z="2"/>
    <animation    src="mon-a-cyf-2.png" cols="4" frames="2 3"   time="10000"        x="0.2560" y="0.0750" z="2"/>

    <!-- MONITOR B -->
    <animation    src="mon-anm-6.png" cols="2"                  time="1200"         x="0.1850" y="0.2220" z="2"/>
    <animation    src="mon-b-cyf-1.png" cols="7" frames="6"     time="30000"        x="0.2600" y="0.2220" z="2"/>

    <animation    src="mon-anm-4.png" cols="2"                  time="800"          x="0.1870" y="0.2820" z="2"/>
    <animation    src="mon-b-cyf-2.png" cols="7" frames="6"     time="30000"        x="0.2630" y="0.2700" z="2"/>
</list>
<list id="mon-critical">
    <!-- MONITOR A -->
    <animation    src="mon-anm-1.png" cols="2"                  time="400"          x="0.1800" y="0.0150" z="2"/>
    <animation    src="mon-anm-2.png" cols="2"                  time="700"          x="0.1800" y="0.0600" z="2"/>
    <animation    src="mon-a-cyf-1.png" cols="4" frames="0 1"   time="1000"         x="0.2560" y="0.0250" z="2"/>
    <animation    src="mon-a-cyf-2.png" cols="4" frames="0 1"   time="2000"         x="0.2560" y="0.0750" z="2"/>

    <!-- MONITOR B -->
    <animation    src="mon-anm-5.png" cols="2"                          time="600"          x="0.1850" y="0.2220" z="2"/>
    <animation    src="mon-b-cyf-1.png" cols="7" frames="0 1 2 3 4 5"   time="10000"        x="0.2600" y="0.2220" z="2"/>

    <animation    src="mon-anm-3.png" cols="2"                          time="400"          x="0.1870" y="0.2900" z="2"/>
    <animation    src="mon-b-cyf-2.png" cols="7" frames="0 1 2 3 4 5"   time="10000"        x="0.2630" y="0.2700" z="2"/>
</list>
