Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 15, 2014, 3:53:11 PM (11 years ago)
Author:
noep
Message:

Expanded functionality of PartDestructionEvents, fixed cursor not showing when flying a ModularSpaceShip

File:
1 edited

Legend:

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

    r10055 r10058  
    4343  >
    4444    <engines>
    45       <MultiStateEngine position="85,0,0" template=HeavyCruiser_body_engine1 />
    46       <MultiStateEngine position="-85,0,0" template=HeavyCruiser_body_engine1 />
     45      <MultiStateEngine position="0,0,0" template=HeavyCruiser_body_engine1 />
    4746
    4847      <MultiStateEngine position="-140,0,308" template=HeavyCruiser_sidearmL_engine1 />
     
    6463            <destructionevents>
    6564                <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/>
    66             </destructionevents>
     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>
    6769        </ShipPart>
    6870        <ShipPart name="partR" initialhealth="10" damageabsorption="0.5">
    6971            <destructionevents>
    7072                <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"/>
    7176            </destructionevents>
    7277        </ShipPart>
    7378        <ShipPart name="sidearmL" initialhealth="20" damageabsorption="0.2">
    7479            <destructionevents>
    75                 <!-- <PartDestructionEvent targetType="engine" targetName="HeavyCruiser_sidearmL_engine1" operation="destroy"/> -->
     80                <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" />
    7683            </destructionevents>
    7784        </ShipPart>
    78         <ShipPart name="sidearmLfront" initialhealth="10" damageabsorption="0.5" />
    79         <ShipPart name="sidearmR" initialhealth="20" damageabsorption="0.2" />
    80         <ShipPart name="sidearmRfront" initialhealth="10" damageabsorption="0.5" />
     85        <ShipPart name="sidearmLfront" initialhealth="10" damageabsorption="0.5">
     86            <destructionevents>
     87                <PartDestructionEvent targetType="engine" targetName="sidearmLengine" targetParam="boostfactor" operation="set" value="1" message="The left auxiliary engine lost it's booster!"/>
     88            </destructionevents>
     89        </ShipPart>
     90        <ShipPart name="sidearmR" initialhealth="20" damageabsorption="0.2">
     91            <destructionevents>
     92                <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">
     98            <destructionevents>
     99                <PartDestructionEvent targetType="engine" targetName="sidearmRengine" targetParam="boostfactor" operation="set" value="1" message="The right auxiliary engine lost it's booster!"/>
     100            </destructionevents>
     101        </ShipPart>
    81102    </parts>
    82103   
     
    390411<Template name=HeavyCruiser_body_engine1 baseclass=MultiStateEngine>
    391412  <MultiStateEngine
     413   name           = bodyengine
    392414   boostfactor    = 2
    393415
     
    484506<Template name=HeavyCruiser_sidearmL_engine1 baseclass=MultiStateEngine>
    485507  <MultiStateEngine
     508   name           = sidearmLengine
    486509   boostfactor    = 2
    487510
     
    533556<Template name=HeavyCruiser_sidearmR_engine1 baseclass=MultiStateEngine>
    534557  <MultiStateEngine
     558   name           = sidearmRengine
    535559   boostfactor    = 2
    536560
Note: See TracChangeset for help on using the changeset viewer.