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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.