Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 14, 2014, 8:25:08 PM (11 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.

Location:
code/branches/modularships/data/levels
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/modularships/data/levels/ModularShipsTest1.oxw

    r10053 r10055  
    3131
    3232    <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>
    33     <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort />
     33    <!-- <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipescort /> -->
     34    <SpawnPoint team=0 position="-500,0,0" lookat="0,0,0" spawnclass=ModularSpaceShip pawndesign=HeavyCruiser />
    3435   
    3536    <MovableEntity position="0,0,0" collisionType=dynamic scale=1 linearDamping=0.8 angularDamping=0  collisiondamage=0.005 enablecollisiondamage=true>
  • 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.