Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 11302


Ignore:
Timestamp:
Nov 21, 2016, 4:04:27 PM (8 years ago)
Author:
pschefer
Message:

added destruction parts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/BigShip_HS16/data/levels/templates/endurancetest_template.oxt

    r11297 r11302  
    1717
    1818        <parts>
    19         <ShipPart name="Endurance_Small_Ship" initialhealth="1000" maxhealth="1000" damageabsorption="0" explosionposition="-100,0,0">
     19                <ShipPart name = "EnduranceSmallShip" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
    2020            <destructionevents>
    21 
    22                 <PartDestructionEvent targetType="part"  targetName = "Endurance_Small_Ship" operation="-" />
    23                
     21                <PartDestructionEvent targetType="ship"  operation="destroy" />
    2422            </destructionevents>
    2523        </ShipPart>
    2624
    27     </parts>
    28 
    29         <!-- Test endurance -->
    30 <!--
    31        
    32         <parts>
    33         <ShipPart name="Endurance_Small_Ship" initialhealth="1000" maxhealth="1000" damageabsorption="0" explosionposition="-100,0,0">
     25        <ShipPart name = "part2" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
    3426            <destructionevents>
    35 
    36                 <PartDestructionEvent targetType="part"  targetName = "Endurance_Small_Ship" operation="destroy" />
    37                
     27                <PartDestructionEvent targetType="ship"  operation="destroy" />
     28                <PartDestructionEvent targetType="part" targetName ="ct10"  operation="destroy" />
     29                <PartDestructionEvent targetType="part" targetName ="ct11"   operation="destroy" />
    3830            </destructionevents>
    3931        </ShipPart>
    4032
    41         <ShipPart name="part1" initialhealth="10" maxhealth="10" damageabsorption="0" explosionposition="-100,0,100">
     33        <ShipPart name = "ct12" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
    4234            <destructionevents>
    43                 <PartDestructionEvent targetType="part"  targetName = "part0" operation="destroy" value="0.5"/>
     35                <PartDestructionEvent targetType="ship"  operation="destroy" />
    4436            </destructionevents>
    4537        </ShipPart>
    4638
    47         <ShipPart name="part2" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,50,86">
     39         <ShipPart name = "ct11" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
    4840            <destructionevents>
    49                 <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
     41                <PartDestructionEvent targetType="ship"  operation="destroy" />
    5042            </destructionevents>
    5143        </ShipPart>
    5244
    53         <ShipPart name="part3" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,86,50">
     45        <ShipPart name = "ct10" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
    5446            <destructionevents>
    55                 <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
     47                <PartDestructionEvent targetType="ship"  operation="destroy" />
    5648            </destructionevents>
    5749        </ShipPart>
    5850
    59    
     51        <ShipPart name = "part1" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="0,0,0">
     52            <destructionevents>
     53                <PartDestructionEvent targetType="ship"  operation="destroy" />
     54                <PartDestructionEvent targetType="part" targetName ="ct12"   operation="destroy" />
     55                <PartDestructionEvent targetType="part" targetName ="ct11"   operation="destroy" />
     56            </destructionevents>
     57        </ShipPart>
    6058
    6159    </parts>
    62         -->
     60
     61        <!-- Test endurance -->
     62
    6363   
    6464    <explosion >
     
    7575                <!-- Small-Ship 1/2 -->
    7676
    77                 <StaticEntity  name = "Endurance_Small_Ship" collisionType=static position ="21,14.4,-9.6"  pitch="60" yaw="0" roll="90" >
     77                <StaticEntity  name = "EnduranceSmallShip" collisionType=static position ="21,14.4,-9.6"  pitch="60" yaw="0" roll="90" >
    7878                        <attached>
    7979                                <Model  mesh="Endurance_Small_Ship.mesh" scale="36" />
     
    131131                <!-- ct12 -->
    132132
    133                 <StaticEntity collisionType=static position ="0,-30,105"  yaw="0" roll="90" pitch="-60" >
     133                <StaticEntity name ="ct12" collisionType=static position ="0,-30,105"  yaw="0" roll="90" pitch="-60" >
    134134                        <attached>
    135135                               
     
    220220                <!-- ct11 -->
    221221
    222                 <StaticEntity collisionType=static position ="0,30,105"  yaw="0" roll="90" pitch="270" >
     222                <StaticEntity name = "ct11" collisionType=static position ="0,30,105"  yaw="0" roll="90" pitch="270" >
    223223                        <attached>
    224224                               
     
    256256                <!-- ct10 -->
    257257
    258                 <StaticEntity collisionType=static position ="0,78,78"  yaw="0" roll="90" pitch="240" >
     258                <StaticEntity name ="ct10" collisionType=static position ="0,78,78"  yaw="0" roll="90" pitch="240" >
    259259                        <attached>
    260260                               
Note: See TracChangeset for help on using the changeset viewer.