Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2014, 12:49:15 PM (10 years ago)
Author:
maxima
Message:

Geaenderte Turret Klassen hinzugefuegt. Neues Template towerturret. Dort wurde an den TDTower ein Turret attached. So schiesst der Tower nun auf die Enemies.

Location:
code/branches/towerdefenseHS14/data/levels
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • code/branches/towerdefenseHS14/data/levels/includes/weaponSettingsTurret.oxi

    r9664 r10144  
    1111        </links>
    1212        <Weapon>
    13           <attached>
    14             <Model mesh="sphere.mesh" position="3,3,-2.2" scale=0.6 />
    15           </attached>
    16           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 3, 3,-2.2" />
    17           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset=" 3,-3,-2.2" />
    18           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-3, 3,-2.2" />
    19           <HsW01 mode=0 munitionpershot=0 delay=0 damage=3.14159 material="Flares/point_lensflare" muzzleoffset="-3,-3,-2.2" />
     13          <!-- <attached>
     14            <Model mesh="sphere.mesh" position="1.7,1.7,-24.5" scale=0.6 />
     15          </attached> -->
     16          <HsW01 mode=0 munitionpershot=0 delay=0 damage=1 material="Flares/point_lensflare" muzzleoffset="1.7, 1.7,-30" />
     17          <HsW01 mode=0 munitionpershot=0 delay=0 damage=1 material="Flares/point_lensflare" muzzleoffset="1.7, -1.7,-30" />
     18          <HsW01 mode=0 munitionpershot=0 delay=0 damage=1 material="Flares/point_lensflare" muzzleoffset="-1.7, 1.7,-30" />
     19          <HsW01 mode=0 munitionpershot=0 delay=0 damage=1 material="Flares/point_lensflare" muzzleoffset="-1.7, -1.7,-30" />
    2020        </Weapon>
    2121      </WeaponPack>
  • code/branches/towerdefenseHS14/data/levels/templates/enemytowerdefense.oxt

    r10134 r10144  
    77   explosionchunks        = 6
    88
    9    health            = 100
    10    maxhealth         = 200
    11    initialhealth     = 100
     9   health            = 1
     10   maxhealth         = 2
     11   initialhealth     = 1
    1212
    1313   shieldhealth        = 30
  • code/branches/towerdefenseHS14/data/levels/templates/tower.oxt

    r10142 r10144  
    2626        <Model position="0,0,0" scale=45 mesh="Tower.mesh" />
    2727       
    28         <Turret position="0,0,-100" collisionType="dynamic" angularDamping=0.999999 mass=100 maxPitch=90 maxYaw=90 maxAttackRadius=2000 minAttackRadius=30>
    2928       
    30                 <collisionShapes>
    31                         <SphereCollisionShape radius="10"   position = "0,0,0"/>
    32                 </collisionShapes>
    33                 <controller>
    34                         <TurretController/>
    35                 </controller>
    36                 <?lua
    37                         include("../includes/weaponSettingsTurret.oxi")
    38                 ?>
    39         </Turret>
    4029    </attached>
    4130
     
    5039</Template>
    5140
     41
     42
     43<Template name=towerturret>
     44  <TowerDefenseTower
     45
     46
     47   explosionchunks        = 6
     48
     49   reloadrate          = 3
     50   reloadwaittime      = 1
     51
     52   collisionType     = "dynamic"
     53   team = 1
     54
     55
     56  >
     57  <attached>
     58
     59    <Model position="0,0,0" scale=45 mesh="Tower.mesh" />
     60    <Turret collisionType="dynamic" position="0,0,10" direction="0,0,1" pitch="0" yaw="0" roll="0" angularDamping=0.999999 mass=100 maxPitch=90 maxYaw=90 maxAttackRadius=1000 minAttackRadius=30>
     61
     62      <controller>
     63        <TurretController/>
     64      </controller>
     65      <?lua
     66        include("../includes/weaponSettingsTurret.oxi")
     67      ?>
     68    </Turret>
     69  </attached>
     70   
     71
     72
     73
     74    <!--collisionShapes>
     75
     76    </collisionShapes-->
     77
     78<?lua
     79  include("../includes/towerWeaponSettings.oxi")
     80?>
     81  </TowerDefenseTower>
     82</Template>
  • code/branches/towerdefenseHS14/data/levels/towerDefense.oxw

    r10141 r10144  
    2222  include("templates/tower.oxt")
    2323  include("templates/enemytowerdefense.oxt")
     24  include("templates/standardTurret.oxt")
    2425?>
    2526
    2627<!-- Specify the position of the camera -->
    2728<Template name=centerpointmarkcamera defaults=0>
    28   <Pawn>
     29  <Pawn team=1>
    2930    <camerapositions>
    3031      <CameraPosition position="0,0,1500"/>
     
    3536<!-- Loads a mesh to mark the center-->
    3637<Template name=centerpointmark>
    37   <Pawn camerapositiontemplate=centerpointmarkcamera>
     38  <Pawn team=1 camerapositiontemplate=centerpointmarkcamera>
    3839    <attached>
    3940      <Model position="0,0,0" mesh="cylinder.mesh" scale3D="1,1,1" /> <!-- the camera is attached to this -->
     
    7172
    7273    <!-- Spawns the camera, attached to a crate -->
    73     <SpawnPoint team=0 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark />
     74    <SpawnPoint team=1 position="0,0,0" spawnclass=Pawn pawndesign=centerpointmark />
    7475    <!--TeamSpawnPoint team=1 position="-7,7,4" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /-->
    7576
     
    8182
    8283    <!--invisible entity to attach towers to, since playfield is static and towers are dynamic-->
    83     <StaticEntity position=0,0,0>
     84    <StaticEntity team =1 position=0,0,0>
    8485
    8586        <attached>
     
    118119    collisionType=dynamic
    119120    mass=100000
     121    team=1
    120122    />
    121123
  • code/branches/towerdefenseHS14/data/levels/turretTest.oxw

    r9939 r10144  
    33<LevelInfo
    44 name = "turret Test"
    5  description = "A level with a turret in it."
     5 description = "A level to test turrets with."
    66 tags = "test"
    77 screenshot = "emptylevel.png"
     
    1616<?lua
    1717  include("templates/spaceshipAssff.oxt")
    18   include("templates/spaceshipPirate.oxt")
    19   include("templates/spaceshipTurret.oxt")
     18  include("templates/standardTurret.oxt")
    2019?>
    2120
     
    3332    <SpawnPoint team=0 position="-200,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />
    3433
     34<SpaceShip position = "0,0,800" collisionType="dynamic" team=10>
     35  <controller>
     36    <TeamTargetProxy team=10/>
     37  </controller>
     38  <attached>
     39    <Model position="0,0,0" mesh="plane.mesh" scale3D="20,20,20" pitch=-90/>
    3540
    36 <StaticEntity position="0,0,0" yaw=0 pitch=0>
    37     <attached>
    38         <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" />
    39         <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" />
    40         <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" />
    41         <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" />
    42         <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" />
    43     </attached>
    44 </StaticEntity>
     41    <?lua for i = 1, 10, 1 do ?>
     42      <Turret position="<?lua print(150-i*30) ?>,<?lua print(150-i*30) ?>,0" pitch="0" yaw="0" roll="0">
     43        <templates>
     44          <Template link=standardturret />
     45        </templates>
     46      </Turret>
     47    <?lua end ?>
    4548
    46 
    47 
    48 <Turret position="0,10,0" pitch="90" yaw="0" roll="0">
    49     <templates>
    50         <Template link=spaceshipturret />
    51     </templates>
    52     <controller>
    53         <WaypointPatrolController alertnessradius=100 team=10>
    54         </WaypointPatrolController>
    55      </controller>
    56 </Turret>
    57 
    58 
    59 
     49  </attached>
     50  <collisionShapes>
     51    <BoxCollisionShape radius="10"   position="0,0,0" halfExtents="200, 200, 0"/>
     52  </collisionShapes>
     53</SpaceShip>
    6054   
    6155  </Scene>
Note: See TracChangeset for help on using the changeset viewer.