Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 21, 2014, 10:38:09 PM (11 years ago)
Author:
noep
Message:

Added explosions. (Because who doesn't love explosions.) Added printing health-status of shipparts to chat. Removed more debug-output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/data/levels/templates/HeavyCruiser.oxt

    r10058 r10067  
    5050   
    5151    <parts>
    52         <ShipPart name="frontL" initialhealth="10" damageabsorption="0.5">
     52        <ShipPart name="frontL" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-76,30,-330">
    5353            <destructionevents>
    5454                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
    5555            </destructionevents>
    5656        </ShipPart>
    57         <ShipPart name="frontR" initialhealth="10" damageabsorption="0.5">
     57        <ShipPart name="frontR" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="76,30,-330">
    5858            <destructionevents>
    5959                <PartDestructionEvent targetType="ship" targetParam="shieldhealth" operation="*" value="0.5"/>
    6060            </destructionevents>
    6161        </ShipPart>
    62         <ShipPart name="partL" initialhealth="10" damageabsorption="0.5">
     62        <ShipPart name="partL" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-100,33,-200">
    6363            <destructionevents>
    6464                <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/>
    65                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="speedfront" operation="-" value="50"/>
    66                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="accelerationfront" operation="-" value="3"/>
    67                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="boostfactor" operation="set" value="1"/>
    68             </destructionevents>
    69         </ShipPart>
    70         <ShipPart name="partR" initialhealth="10" damageabsorption="0.5">
     65                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="speedfront" operation="-" value="50"/>
     66                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="accelerationfront" operation="-" value="3"/>
     67                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="boostfactor" operation="set" value="1"/>
     68            </destructionevents>
     69        </ShipPart>
     70        <ShipPart name="partR" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="100,33,-200">
    7171            <destructionevents>
    7272                <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/>
    73                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="speedfront" operation="-" value="50"/>
    74                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="accelerationfront" operation="-" value="3"/>
    75                 <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="boostfactor" operation="set" value="1"/>
    76             </destructionevents>
    77         </ShipPart>
    78         <ShipPart name="sidearmL" initialhealth="20" damageabsorption="0.2">
     73                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="speedfront" operation="-" value="50"/>
     74                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="accelerationfront" operation="-" value="3"/>
     75                <PartDestructionEvent targetType="engine" targetName="bodyengine" targetParam="boostfactor" operation="set" value="1"/>
     76            </destructionevents>
     77        </ShipPart>
     78        <ShipPart name="sidearmL" initialhealth="20" maxhealth="20" damageabsorption="0.2" explosionposition="-140,30,100">
    7979            <destructionevents>
    8080                <PartDestructionEvent targetType="engine" targetName="sidearmLengine" operation="destroy" message="The left auxiliary engine was destroyed!"/>
    81                 <PartDestructionEvent targetType="part" targetName="sidearmLfront" operation="destroy"/>
    82                 <PartDestructionEvent targetType="ship" targetParam="rotationthrust" operation="-" value="0.04" />
    83             </destructionevents>
    84         </ShipPart>
    85         <ShipPart name="sidearmLfront" initialhealth="10" damageabsorption="0.5">
     81                <PartDestructionEvent targetType="part" targetName="sidearmLfront" operation="destroy"/>
     82                <PartDestructionEvent targetType="ship" targetParam="rotationthrust" operation="-" value="0.04" />
     83            </destructionevents>
     84        </ShipPart>
     85        <ShipPart name="sidearmLfront" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="-140,20,-50">
    8686            <destructionevents>
    8787                <PartDestructionEvent targetType="engine" targetName="sidearmLengine" targetParam="boostfactor" operation="set" value="1" message="The left auxiliary engine lost it's booster!"/>
    8888            </destructionevents>
    89         </ShipPart>
    90         <ShipPart name="sidearmR" initialhealth="20" damageabsorption="0.2">
     89        </ShipPart>
     90        <ShipPart name="sidearmR" initialhealth="20" maxhealth="20" damageabsorption="0.2" explosionposition="140,30,100">
    9191            <destructionevents>
    9292                <PartDestructionEvent targetType="engine" targetName="sidearmRengine" operation="destroy" message="The right auxiliary engine was destroyed!"/>
    93                 <PartDestructionEvent targetType="part" targetName="sidearmRfront" operation="destroy"/>
    94                 <PartDestructionEvent targetType="ship" targetParam="rotationthrust" operation="-" value="0.04" />           
    95             </destructionevents>
    96         </ShipPart>
    97         <ShipPart name="sidearmRfront" initialhealth="10" damageabsorption="0.5">
     93                <PartDestructionEvent targetType="part" targetName="sidearmRfront" operation="destroy"/>
     94                <PartDestructionEvent targetType="ship" targetParam="rotationthrust" operation="-" value="0.04" />           
     95            </destructionevents>
     96        </ShipPart>
     97        <ShipPart name="sidearmRfront" initialhealth="10" maxhealth="10" damageabsorption="0.5" explosionposition="140,20,-50">
    9898            <destructionevents>
    9999                <PartDestructionEvent targetType="engine" targetName="sidearmRengine" targetParam="boostfactor" operation="set" value="1" message="The right auxiliary engine lost it's booster!"/>
    100100            </destructionevents>
    101         </ShipPart>
     101        </ShipPart>
    102102    </parts>
    103103   
Note: See TracChangeset for help on using the changeset viewer.