Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5285


Ignore:
Timestamp:
Nov 24, 2008, 1:53:04 AM (16 years ago)
Author:
landauf
Message:

added MultiStateEngine to the default SpaceShip

Location:
data/media
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • data/media/levels/sample3.oxw

    r5273 r5285  
    3535                <Model position="0,35,0" scale=2 mesh="ast1.mesh">
    3636                  <attached>
    37                     <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" />
     37                    <Backlight position="0, 0, 0" colour="0.0, 1.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
    3838                  </attached>
    3939                </Model>
    4040                <Model position="0,-35,0" scale=2 mesh="ast1.mesh">
    4141                  <attached>
    42                     <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" />
     42                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
    4343                  </attached>
    4444                </Model>
     
    4646                  <attached>
    4747                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
    48                     <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" />
     48                    <Backlight position="0, 0, 0" colour="0.0, 0.0, 1.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
    4949                  </attached>
    5050                </Model>
     
    5252                  <attached>
    5353                    <ParticleEmitter position="0,0,0" source="Orxonox/fire3" />
    54                     <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" />
     54                    <Backlight position="0, 0, 0" colour="1.0, 0.0, 0.0, 1.0" width=1 length=100 lifetime=0.5 elements=50 trailmaterial="Trail/backlighttrail" material="Examples/Flare" />
    5555                  </attached>
    5656                </Model>
     
    130130    </EventDispatcher>
    131131
    132 
     132<!--
    133133    <EventDispatcher>
    134134      <targets>
     
    141141      </events>
    142142    </EventDispatcher>
    143 
     143-->
    144144
    145145    <Model position="0,50,0" scale=3 mesh="assff.mesh">
  • data/media/levels/spaceshiptemplates3.oxw

    r5273 r5285  
    22  <SpaceShip
    33   camerapositiontemplate = spaceshipassffcameras
     4   engine                 = spaceshipassffengine
    45
    56   health            = 100
     
    78   initialhealth     = 100
    89
    9    maxspeed          = 150
    10    maxsecondaryspeed = 50
    1110   maxrotation       = 100
    12    transacc          = 100
    1311   rotacc            = 140
    14    transdamp         = 75
     12   transdamp         = 50
    1513  >
    1614    <attached>
     
    2018      <BlinkingBillboard position="-17,-1.5,0" material="Examples/Flare" colour="0.5, 1.0, 0.3" amplitude=0.1 frequency=0.5 phase=180 quadratic=1 />
    2119      <!--ParticleEmitter position="0,0,-100" source="Orxonox/smoke5" /-->
    22       <Backlight scale=0.4 name=bltest position="7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1000 lifetime=3 elements=30 trailmaterial="Trail/backlighttrail" turnofftime=2 material="Flares/ThrusterFlare1" />
    23       <Backlight scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1000 lifetime=3 elements=30 trailmaterial="Trail/backlighttrail" turnofftime=2 material="Flares/ThrusterFlare1" />
    2420    </attached>
    2521  </SpaceShip>
     
    3733    </camerapositions>
    3834  </SpaceShip>
     35</Template>
     36
     37<Template name=spaceshipassffengine baseclass=MultiStateEngine>
     38  <MultiStateEngine
     39   boostfactor    = 2
     40
     41   speedfront     = 150
     42   speedback      =  50
     43   speedleftright =  50
     44   speedupdown    =  50
     45
     46   accelerationfront     = 100
     47   accelerationbrake     = 100
     48   accelerationback      =  25
     49   accelerationleftright =  25
     50   accelerationupdown    =  25
     51  >
     52    <active>
     53      <FadingBillboard mainstate=activity active=false scale=0.1 position="0, 0, 9" colour="0.2, 0.65, 1.0, 1.0" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
     54    </active>
     55    <forward>
     56      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     57      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.2, 0.65, 1.0, 1.0" width=15 length=1500 lifetime=2 elements=50 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Flares/ThrusterFlare1" />
     58    </forward>
     59    <boost>
     60      <Backlight mainstate=activity active=false scale=0.4 name=bltest position=" 7.6, 0, 6" colour="0.8, 0.95, 1.0, 1.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
     61      <Backlight mainstate=activity active=false scale=0.4 name=bltest position="-7.6, 0, 6" colour="0.8, 0.95, 1.0, 1.0" width=40 length=1000 lifetime=1 elements=30 trailmaterial="Trail/backlighttrail" turnontime=1 turnofftime=1 material="Examples/Flare" />
     62    </boost>
     63    <brake>
     64      <FadingBillboard mainstate=activity active=false scale=0.3 position=" 8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
     65      <FadingBillboard mainstate=activity active=false scale=0.3 position="-8, 0, 6" colour="0.5, 0.0, 0.0, 0.3" material="Examples/Flare" turnontime=0.5 turnofftime=0.5 />
     66      <FadingBillboard mainstate=activity active=false scale=0.15 position=" 8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
     67      <FadingBillboard mainstate=activity active=false scale=0.15 position="-8, 0, 6" colour="1.0, 0.0, 0.0, 1.0" material="Flares/backlightflare" turnontime=0.5 turnofftime=0.5 />
     68    </brake>
     69  </MultiStateEngine>
    3970</Template>
    4071
Note: See TracChangeset for help on using the changeset viewer.