Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 9, 2014, 9:50:45 PM (11 years ago)
Author:
noep
Message:

ShipParts can "die" and detach the corresponding Entity while doing so. Issue: The Entity being detached while a hit on a collisionshape is being handled causes a runtime-error.

File:
1 edited

Legend:

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

    r10019 r10023  
    1111   explosionchunks        = 6
    1212
    13    health            = 100
    14    maxhealth         = 200
    15    initialhealth     = 100
     13   health            = 1000
     14   maxhealth         = 2000
     15   initialhealth     = 1000
    1616
    1717   shieldhealth        = 100
     
    5151   
    5252    <parts>
    53         <ShipPart name="frontL" />
    54         <ShipPart name="frontR" />
     53        <ShipPart name="frontL" health="100" damageabsorption="0.5" />
     54        <ShipPart name="frontR" health="100" damageabsorption="0.5" />
     55        <ShipPart name="partL" health="100" damageabsorption="0.5" />
     56        <ShipPart name="partR" health="100" damageabsorption="0.5" />
     57        <ShipPart name="sidearmL" health="201" damageabsorption="0.2" />
     58        <ShipPart name="sidearmLfront" health="100" damageabsorption="0.5" />
     59        <ShipPart name="sidearmR" health="200" damageabsorption="0.2" />
     60        <ShipPart name="sidearmRfront" health="100" damageabsorption="0.5" />
    5561    </parts>
    5662   
     
    6167            <attached>
    6268                <Model mesh="HeavyCruiser_frontL.mesh" direction="-1,0,0" position="0,0,0" scale="40"/>
     69                <BlinkingBillboard position="-75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 />
     70                <BlinkingBillboard position="-74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 />
     71                <BlinkingBillboard position="-73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 />
    6372            </attached>
    6473            <collisionShapes>
     
    7180            <attached>
    7281                <Model mesh="HeavyCruiser_frontR.mesh" direction="-1,0,0" position="0,0,0" scale="40"/>
     82                <BlinkingBillboard position="75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 />
     83                <BlinkingBillboard position="74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 />
     84                <BlinkingBillboard position="73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 />
    7385            </attached>
    7486            <collisionShapes>
     
    176188        </StaticEntity>   
    177189
    178             <!-- bay1 lights -->
    179         <BlinkingBillboard position="75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 />
    180         <BlinkingBillboard position="-75,30,-416" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.05 frequency=0.3 phase=240 quadratic=1 />
    181         <BlinkingBillboard position="74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 />
    182         <BlinkingBillboard position="-74,30,-402" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.1 frequency=0.3 phase=120 quadratic=1 />
    183         <BlinkingBillboard position="73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 />
    184         <BlinkingBillboard position="-73,30,-388" material="Examples/Flare" colour="0.8, 0.8, 0, 0.1" amplitude=0.15 frequency=0.3 phase=0 quadratic=1 />
    185190            <!-- front position lights -->
    186191        <BlinkingBillboard position="67,-5,-240" material="Examples/Flare" colour="0, 0.7, 0, 0.1" amplitude=0.3 frequency=0.15 phase=0 quadratic=1 />
Note: See TracChangeset for help on using the changeset viewer.