Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2014, 8:25:08 PM (10 years ago)
Author:
noep
Message:

Cleaned up code. Added console command "ModularSpaceShip killshippart [string]" which allows manual destruction of a ShipPart by name. Added more functionality to PartDestructionEvents.

File:
1 edited

Legend:

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

    r10053 r10055  
    6161            </destructionevents>
    6262        </ShipPart>
    63         <ShipPart name="partL" initialhealth="10" damageabsorption="0.5" />
    64         <ShipPart name="partR" initialhealth="10" damageabsorption="0.5" />
    65         <ShipPart name="sidearmL" initialhealth="20" damageabsorption="0.2" />
     63        <ShipPart name="partL" initialhealth="10" damageabsorption="0.5">
     64            <destructionevents>
     65                <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/>
     66            </destructionevents>
     67        </ShipPart>
     68        <ShipPart name="partR" initialhealth="10" damageabsorption="0.5">
     69            <destructionevents>
     70                <PartDestructionEvent targetType="ship" targetParam="boostpowerrate" operation="-" value="0.5" message="One of your ship's generators was destroyed!"/>
     71            </destructionevents>
     72        </ShipPart>
     73        <ShipPart name="sidearmL" initialhealth="20" damageabsorption="0.2">
     74            <destructionevents>
     75                <!-- <PartDestructionEvent targetType="engine" targetName="HeavyCruiser_sidearmL_engine1" operation="destroy"/> -->
     76            </destructionevents>
     77        </ShipPart>
    6678        <ShipPart name="sidearmLfront" initialhealth="10" damageabsorption="0.5" />
    6779        <ShipPart name="sidearmR" initialhealth="20" damageabsorption="0.2" />
Note: See TracChangeset for help on using the changeset viewer.