Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10629 for code/trunk/data


Ignore:
Timestamp:
Oct 10, 2015, 4:34:26 PM (9 years ago)
Author:
fvultier
Message:

Merged towerdefenseFabien branch back to trunk. The towerdefense Minigame is now a plugin.

Location:
code/trunk/data/levels
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/data/levels/emptyLevel.oxw

    r9415 r10629  
    1616  include("templates/spaceshipPirate.oxt")
    1717  include("templates/spaceshipEscort.oxt")
     18  include("templates/spaceshipRing.oxt")
     19  include("templates/spaceshipSwallow.oxt")
    1820?>
    1921
  • code/trunk/data/levels/includes/weaponSettingsRing.oxi

    r10622 r10629  
    1414    </links>
    1515    <Weapon>
    16       <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=9.3 material="Flares/point_lensflare" muzzleoffset=" 0.1, 1.4,-3" projectileMesh="LaserBeam2.mesh" />
     16      <IceGun mode=0 munitionpershot=0 delay=0.125 damage=9.3 muzzleoffset=" 0.1, 1.4,-3" freezefactor=0.5 freezetime=2.0 />
    1717    </Weapon>
    1818    <Weapon>
    19       <HsW01 mode=0 munitionpershot=0 delay=0     damage=9.3 material="Flares/point_lensflare" muzzleoffset="0.1, 1.4, -3" projectileMesh="LaserBeam2.mesh" />
     19      <IceGun mode=0 munitionpershot=0 delay=0.125 damage=9.3 muzzleoffset=" 0.1, 1.4,-3" freezefactor=0.5 freezetime=2.0 />
    2020    </Weapon>
    2121  </WeaponPack>
  • code/trunk/data/levels/includes/weaponSettingsSwallow.oxi

    r8891 r10629  
    1414        </links>
    1515        <Weapon>
    16           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" />
    17           <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 0.5,0.6,1.7" />
    18 
    19           <LightningGun mode=1 muzzleoffset="0,0,0" damage=3.14159 shielddamage=20/>
     16          <SplitGun mode=0 munitionpershot=0 damage=6.0 muzzleoffset="0.5,0.6,1.7" splittime=0.2 numberofsplits=2 numberofchilds=3 spread=0.1 damagereduction=2.0 />
    2017        </Weapon>
    2118        <Weapon>
    22           <HsW01 mode=0 munitionpershot=0 delay=0  damage=3.14159 material="Flares/point_lensflare" />
    23           <HsW01 mode=0 munitionpershot=0 delay=0.125 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-0.5,0.6,1.7" />
    24           <LightningGun mode=1 muzzleoffset="0,0,0" damage=3.14159 shielddamage=20/>
     19          <SplitGun mode=0 munitionpershot=0 damage=6.0 muzzleoffset="-0.5,0.6,1.7" splittime=0.2 numberofsplits=2 numberofchilds=3 spread=0.1 damagereduction=2.0 />
    2520        </Weapon>
    2621      </WeaponPack>
  • code/trunk/data/levels/jump.oxw

    r10624 r10629  
    260260    </MovableEntity>
    261261
    262     <EventDispatcher>
    263       <targets>
    264         <EventTarget target=scoreeffect_right />
    265         <EventTarget target=scoreeffect_center />
    266       </targets>
    267       <events>
    268         <spawn>
    269           <EventFilter>
    270             <names>
    271               <EventName name=right />
    272             </names>
    273             <EventListener event=jumpcenter />
    274           </EventFilter>
    275         </spawn>
    276       </events>
    277     </EventDispatcher>
    278     <EventDispatcher>
    279       <targets>
    280         <EventTarget target=scoreeffect_left />
    281         <EventTarget target=scoreeffect_center />
    282       </targets>
    283       <events>
    284         <spawn>
    285           <EventFilter>
    286             <names>
    287               <EventName name=left />
    288             </names>
    289             <EventListener event=jumpcenter />
    290           </EventFilter>
    291         </spawn>
    292       </events>
    293     </EventDispatcher>
    294 
    295262  </Scene>
    296263</Level>
  • code/trunk/data/levels/towerDefense.oxw

    r10624 r10629  
    1515  include("towerdefenseHUD.oxo")
    1616  include("templates/lodInformation.oxt")
    17 ?>
    18 
    19 <?lua
     17  include("includes/weaponSettingsTurret.oxi")
    2018  include("templates/spaceshipAssff.oxt")
    21   include("templates/spaceshipPirate.oxt")
    22   include("templates/towerdefensetower.oxt")
    23   include("templates/enemytowerdefense.oxt")
    2419  include("templates/standardTurret.oxt")
    2520?>
    26 
    2721
    2822<Template name=selectercameras defaults=0>
    2923  <TowerDefenseSelecter>
    3024    <camerapositions>
    31       <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true />
     25      <CameraPosition position="0,0,1300" lookat="0,0,0" absolute=true drag=true mouselook=true/>
    3226    </camerapositions>
    3327  </TowerDefenseSelecter>
     
    3731  <TowerDefenseSelecter team=0 camerapositiontemplate=selectercameras>
    3832    <attached>
    39       <Model pitch=90 position="0,0,-30" mesh="TD_Selection.mesh" scale=30 />
     33      <Model position="0,0,0" pitch=90 mesh="TD_Selection.mesh" scale=25/>
    4034    </attached>
    4135  </TowerDefenseSelecter>
    4236</Template>
    4337
    44 
    45 
    46 
    47 <Level
    48   plugins = "towerdefense"
    49   gametype = "TowerDefense"
    50 >
     38<Template name=tower1template>
     39  <TowerDefenseTower
     40  explosionchunks=6
     41  reloadrate=10
     42  reloadwaittime=5
     43  collisionType="none"
     44  pitch="0"
     45  yaw="0"
     46  roll="0"
     47  maxPitch=360
     48  maxYaw=360
     49  maxAttackRadius=1000
     50  minAttackRadius=0
     51  team=0
     52  >
     53    <controller>
     54       <TurretController team = 0/>
     55    </controller>
     56    <weaponslots>
     57      <WeaponSlot position="0,0,0" />
     58    </weaponslots>
     59    <weaponsets>
     60      <WeaponSet firemode=0 />
     61    </weaponsets>
     62    <weapons>
     63      <WeaponPack>
     64        <links>
     65          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
     66        </links>
     67        <Weapon>
     68          <HsW01 mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=1 material="Flares/point_lensflare" delay=0/>
     69        </Weapon>
     70      </WeaponPack>
     71    </weapons>
     72  </TowerDefenseTower>
     73</Template>
     74
     75<Template name=tower2template>
     76  <TowerDefenseTower
     77  explosionchunks=6
     78  reloadrate=10
     79  reloadwaittime=5
     80  collisionType="none"
     81  pitch="0"
     82  yaw="0"
     83  roll="0"
     84  maxPitch=360
     85  maxYaw=360
     86  maxAttackRadius=1000
     87  minAttackRadius=0
     88  team=0
     89  >
     90    <controller>
     91       <TurretController team = 0/>
     92    </controller>
     93    <weaponslots>
     94      <WeaponSlot position="0,0,0" />
     95    </weaponslots>
     96    <weaponsets>
     97      <WeaponSet firemode=0 />
     98    </weaponsets>
     99    <weapons>
     100      <WeaponPack>
     101        <links>
     102          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
     103        </links>
     104        <Weapon>         
     105          <LightningGun mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 />
     106        </Weapon>
     107      </WeaponPack>
     108    </weapons>
     109    <attached>
     110      <Backlight position="0,0,0" scale=2.0 colour="0.4, 0.0, 1.0" width=10 length=10 lifetime=0.3 elements=20 trailmaterial="Trail/backlighttrail" material="Examples/Flare" loop=1 />
     111    </attached>   
     112  </TowerDefenseTower>
     113</Template>
     114
     115<Template name=tower3template>
     116  <TowerDefenseTower
     117  explosionchunks=6
     118  reloadrate=10
     119  reloadwaittime=5
     120  collisionType="none"
     121  pitch="0"
     122  yaw="0"
     123  roll="0"
     124  maxPitch=360
     125  maxYaw=360
     126  maxAttackRadius=1000
     127  minAttackRadius=0
     128  team=0
     129  >
     130    <controller>
     131       <TurretController team = 0/>
     132    </controller>
     133    <weaponslots>
     134      <WeaponSlot position="0,0,0" />
     135    </weaponslots>
     136    <weaponsets>
     137      <WeaponSet firemode=0 />
     138    </weaponsets>
     139    <weapons>
     140      <WeaponPack>
     141        <links>
     142          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
     143        </links>
     144        <Weapon>
     145          <SplitGun mode=0 munitionpershot=0 damage=9.3 muzzleoffset=" 1.6, 1.3, -2.0" splittime=0.2 numberofsplits=2 numberofchilds=5 spread=0.1 damagereduction=3.0 />
     146        </Weapon>
     147      </WeaponPack>
     148    </weapons>
     149  </TowerDefenseTower>
     150</Template>
     151
     152<Template name=tower4template>
     153  <TowerDefenseTower
     154  explosionchunks=6
     155  reloadrate=10
     156  reloadwaittime=5
     157  collisionType="none"
     158  pitch="0"
     159  yaw="0"
     160  roll="0"
     161  maxPitch=360
     162  maxYaw=360
     163  maxAttackRadius=1000
     164  minAttackRadius=0
     165  team=0
     166  >
     167    <controller>
     168       <TurretController team = 0/>
     169    </controller>
     170    <weaponslots>
     171      <WeaponSlot position="0,0,0" />
     172    </weaponslots>
     173    <weaponsets>
     174      <WeaponSet firemode=0 />
     175    </weaponsets>
     176    <weapons>
     177      <WeaponPack>
     178        <links>
     179          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
     180        </links>
     181        <Weapon>
     182          <RocketFire mode=0 munitionpershot=0 muzzleoffset="0,0,0" damage=2 shielddamage=4 /> 
     183        </Weapon>
     184      </WeaponPack>
     185    </weapons>
     186      <attached>
     187      <ParticleSpawner position="0,0,0" source="Orxonox/sparks" lifetime=3.0 autostart=1 loop=1 />
     188    </attached>
     189  </TowerDefenseTower>
     190</Template>
     191
     192<Template name=tower5template>
     193  <TowerDefenseTower
     194  explosionchunks=6
     195  reloadrate=10
     196  reloadwaittime=5
     197  collisionType="none"
     198  pitch="0"
     199  yaw="0"
     200  roll="0"
     201  maxPitch=360
     202  maxYaw=360
     203  maxAttackRadius=1000
     204  minAttackRadius=0
     205  team=0
     206  >
     207    <controller>
     208       <TurretController team = 0/>
     209    </controller>
     210    <weaponslots>
     211      <WeaponSlot position="0,0,0" />
     212    </weaponslots>
     213    <weaponsets>
     214      <WeaponSet firemode=0 />
     215    </weaponsets>
     216    <weapons>
     217      <WeaponPack>
     218        <links>
     219          <DefaultWeaponmodeLink firemode=0 weaponmode=0 />
     220        </links>
     221        <Weapon>
     222          <IceGun mode=0 munitionpershot=0 delay=0.125 damage=9.3 muzzleoffset=" 0,0,0" freezefactor=0.5 freezetime=2.0 />
     223        </Weapon>
     224      </WeaponPack>
     225    </weapons>
     226  </TowerDefenseTower>
     227</Template>
     228
     229<Template name=enemytowerdefense1>
     230  <TowerDefenseEnemy
     231   hudtemplate            = spaceshiphud
     232   camerapositiontemplate = spaceshipassffcameras
     233   spawnparticlesource    = "Orxonox/fairytwirl"
     234   spawnparticleduration  = 3
     235   explosionchunks        = 6
     236
     237   health            = 15
     238   maxhealth         = 15
     239   initialhealth     = 15
     240
     241   shieldhealth        = 15
     242   initialshieldhealth = 15
     243   maxshieldhealth     = 15
     244   shieldabsorption    = 0.8
     245   reloadrate          = 1
     246   reloadwaittime      = 1
     247
     248   primaryThrust     = 1000
     249   auxilaryThrust    = 30
     250   rotationThrust    = 80
     251
     252   lift = 1;
     253   stallSpeed = 220;
     254
     255   boostPower            = 15
     256   boostPowerRate        = 1
     257   boostRate             = 5
     258   boostCooldownDuration = 10
     259
     260   shakeFrequency = 15
     261   shakeAmplitude = 9
     262
     263   collisionType     = "dynamic"
     264   mass              = 10
     265   linearDamping     = 0.7
     266   angularDamping    = 0.9999999
     267
     268   explosionSound = "sounds/Explosion2.ogg"   
     269  >
     270
     271    <engines>
     272      <MultiStateEngine position=" 7.6, 0, 6" template=spaceshipassffengine />
     273      <MultiStateEngine position="-7.6, 0, 0" template=spaceshipassffengine />
     274    </engines>
     275    <attached>
     276      <Model position="0,0,0" yaw=90 pitch=90 roll=0 scale=4 mesh="assff.mesh" />
     277      <BlinkingBillboard position="17,-1.5,0" material="Examples/Flare" colour="1.0, 0.5, 0.3" amplitude=0.1 frequency=0.5 quadratic=1 />
     278      <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 />
     279    </attached>
     280    <collisionShapes>
     281      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
     282      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
     283      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
     284      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
     285      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
     286      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
     287    </collisionShapes>
     288    <controller>
     289       <WaypointController accuracy = 50/>
     290    </controller>
     291  </TowerDefenseEnemy>
     292</Template>
     293
     294<Template name=enemytowerdefense2>
     295  <TowerDefenseEnemy
     296   hudtemplate            = spaceshiphud
     297   camerapositiontemplate = spaceshipassffcameras
     298   spawnparticlesource    = "Orxonox/fairytwirl"
     299   spawnparticleduration  = 3
     300   explosionchunks        = 6
     301
     302   health            = 30
     303   maxhealth         = 30
     304   initialhealth     = 30
     305
     306   shieldhealth        = 0
     307   initialshieldhealth = 0
     308   maxshieldhealth     = 0
     309   shieldabsorption    = 0.8
     310   reloadrate          = 1
     311   reloadwaittime      = 1
     312
     313   primaryThrust     = 100
     314   auxilaryThrust    = 30
     315   rotationThrust    = 80
     316
     317   lift = 1;
     318   stallSpeed = 220;
     319
     320   boostPower            = 15
     321   boostPowerRate        = 1
     322   boostRate             = 5
     323   boostCooldownDuration = 10
     324
     325   shakeFrequency = 15
     326   shakeAmplitude = 9
     327
     328   collisionType     = "dynamic"
     329   mass              = 100
     330   linearDamping     = 0.7
     331   angularDamping    = 0.9999999
     332
     333   explosionSound = "sounds/Explosion2.ogg"
     334  >
     335
     336    <engines>
     337      <Engine position=" 0, 0, 0"
     338        boostfactor    = 2
     339        speedfront     = 100
     340        speedback      =  50
     341        speedleftright =  50
     342        speedupdown    =  50       
     343        accelerationfront     = 500
     344        accelerationbrake     = 500
     345        accelerationback      =  125
     346        accelerationleftright =  125
     347        accelerationupdown    =  125
     348      />
     349    </engines>
     350    <attached>
     351      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy3.mesh" />
     352    </attached>
     353    <collisionShapes>
     354      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
     355      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
     356      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
     357      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
     358      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
     359      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
     360    </collisionShapes>
     361    <controller>
     362       <WaypointController accuracy = 50/>
     363    </controller>
     364  </TowerDefenseEnemy>
     365</Template>
     366
     367<Template name=enemytowerdefense3>
     368  <TowerDefenseEnemy
     369   hudtemplate            = spaceshiphud
     370   camerapositiontemplate = spaceshipassffcameras
     371   spawnparticlesource    = "Orxonox/fairytwirl"
     372   spawnparticleduration  = 3
     373   explosionchunks        = 6
     374
     375   health            = 15
     376   maxhealth         = 15
     377   initialhealth     = 15
     378   
     379   shieldhealth        = 5
     380   initialshieldhealth = 5
     381   maxshieldhealth     = 5
     382   shieldabsorption    = 0.8
     383   reloadrate          = 1
     384   reloadwaittime      = 1
     385
     386   primaryThrust     = 100
     387   auxilaryThrust    = 30
     388   rotationThrust    = 80
     389
     390   lift = 1;
     391   stallSpeed = 220;
     392
     393   boostPower            = 15
     394   boostPowerRate        = 1
     395   boostRate             = 5
     396   boostCooldownDuration = 10
     397
     398   shakeFrequency = 15
     399   shakeAmplitude = 9
     400
     401   collisionType     = "dynamic"
     402   mass              = 100
     403   linearDamping     = 0.7
     404   angularDamping    = 0.9999999
     405
     406   explosionSound = "sounds/Explosion2.ogg"
     407  >
     408
     409    <engines>
     410      <Engine position=" 0, 0, 0"
     411        boostfactor    = 2
     412        speedfront     = 300
     413        speedback      =  300
     414        speedleftright =  300
     415        speedupdown    =  300         
     416        accelerationfront     = 500
     417        accelerationbrake     = 500
     418        accelerationback      =  500
     419        accelerationleftright =  500
     420        accelerationupdown    =  500
     421      />
     422    </engines>
     423    <attached>
     424      <Model position="0,0,0" yaw=0 pitch=0 roll=0 scale=2.5 mesh="JumpEnemy4.mesh" />
     425    </attached>
     426    <collisionShapes>
     427      <BoxCollisionShape position="0,0,0"      halfExtents="10, 3, 5" />
     428      <BoxCollisionShape position="13,-1.3,0"  halfExtents="3, 1, 2" />
     429      <BoxCollisionShape position="-13,-1.3,0" halfExtents="3, 1, 2" />
     430      <BoxCollisionShape position="0,0,7"      halfExtents="3, 2, 2" />
     431      <BoxCollisionShape position="0,0.1,-11"  halfExtents="2.2, 1.8, 6" />
     432      <BoxCollisionShape position="0,0.1,-19"  halfExtents="1.4, 1, 2" />
     433    </collisionShapes>
     434    <controller>
     435       <WaypointController accuracy = 50/>
     436    </controller>
     437  </TowerDefenseEnemy>
     438</Template>
     439
     440<Level plugins = "towerdefense" gametype = "TowerDefense">
    51441  <templates>
    52442    <Template link=lodtemplate_default />
     
    62452    <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"/>
    63453
    64     <!-- Spawns the camera, attached to a crate -->
    65454    <SpawnPoint team=0 position="0,0,0"/>
     455
     456    <Model position="0,0,10000" lodLevel=1 mesh="TD_S1.mesh" scale=1/>
     457    <Model position="0,0,10000" lodLevel=1 mesh="TD_S2.mesh" scale=1/>
     458    <Model position="0,0,10000" lodLevel=1 mesh="TD_S3.mesh" scale=1/>
     459    <Model position="0,0,10000" lodLevel=1 mesh="TD_S4.mesh" scale=1/>
     460    <Model position="0,0,10000" lodLevel=1 mesh="TD_S5.mesh" scale=1/>
     461    <Model position="0,0,10000" lodLevel=1 mesh="TD_T1.mesh" scale=1/>
     462    <Model position="0,0,10000" lodLevel=1 mesh="TD_T2.mesh" scale=1/>
     463    <Model position="0,0,10000" lodLevel=1 mesh="TD_T3.mesh" scale=1/>
     464    <Model position="0,0,10000" lodLevel=1 mesh="TD_T4.mesh" scale=1/>
     465    <Model position="0,0,10000" lodLevel=1 mesh="TD_T5.mesh" scale=1/>
     466    <Model position="0,0,10000" lodLevel=1 mesh="TD_F1.mesh" scale=1/>
    66467
    67468    <!-- PlayField -->
    68469    <TowerDefenseCenterpoint
    69470    name=towerdefensecenter
    70 
    71471    selecterTemplate=selectertemplate
    72 
     472    tower1Template=tower1template
     473    tower2Template=tower2template
     474    tower3Template=tower3template
     475    tower4Template=tower4template
     476    tower5Template=tower5template
     477    tower1Cost=100
     478    tower2Cost=100
     479    tower3Cost=100
     480    tower4Cost=100
     481    tower5Cost=100
     482    fields="F1F1F1R1I1I1I1I1O1F1F1F1F1F1F1F1
     483            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
     484            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
     485            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
     486            F1F1F1I2F1F1F1F1F1F1F1F1F1F1F1F1
     487            F1F1F1I2F1F1F1F1F1F1F1Y1Y1Y1F1F1
     488            F1F1F1R2I3I3I3I3L3F1F1F1F1F1F1F1
     489            F1F1F1F1F1F1F1F1I2F1F1F1F1F1F1F1
     490            F1F1F1F1F1F1F1F1I2F1F1F1F1F1F1F1
     491            X1I1I1I1R0F1F1F1I2F1F1F1F1F1F1F1
     492            F1F1F1F1I0F1F1F1I2F1F1F1F1F1F1F1
     493            F1F1F1F1I0F1F1F1I2F1F1F1F1F1F1F1
     494            F1F1F1F1L1I1I1I1L2F1F1F1F1F1F1F1
     495            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
     496            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1
     497            F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1F1"
    73498    width=16
    74499    height=16
     
    79504    mass=100000
    80505    >
    81         <attached>
    82             <Model position="-50,-50,0" mesh="Playfield_ME.mesh" scale=80 />
    83             <Model position="500,700,100" mesh="sphere.mesh" scale=80 />
    84         </attached>
    85         <camerapositions>
    86       <CameraPosition position="0,0,1500" lookat="0,0,0" absolute=true/>
    87     </camerapositions>
     506      <camerapositions>
     507        <CameraPosition position="0,0,1400" lookat="0,0,0" absolute=true />
     508      </camerapositions>   
    88509    </TowerDefenseCenterpoint>
    89510
Note: See TracChangeset for help on using the changeset viewer.