Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/towerdefenseHS14/data/levels/templates/standardTurret.oxt @ 10144

Last change on this file since 10144 was 10144, checked in by maxima, 10 years ago

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

File size: 1.5 KB
Line 
1<Template name=standardturret>
2  <Turret collisionType="dynamic">
3    <attached>
4      <Model position="0,0,0" mesh="turretSocketFront.mesh" scale3D="10,10,10" pitch=-90/>
5      <Model position="0,0,0" mesh="turretSocketIn.mesh" scale3D="10,10,10" pitch=-90/>
6      <Model position="0,0,0" mesh="turretSocketTop.mesh" scale3D="10,10,10" pitch=-90/>
7      <Model position="0,0,0" mesh="turretSocketLeft.mesh" scale3D="10,10,10" pitch=-90/>
8      <Model position="0,0,0" mesh="turretSocketRight.mesh" scale3D="10,10,10" pitch=-90/>
9
10      <Turret position="0,0,-10" collisionType="dynamic" angularDamping=0.999999 mass=100 maxPitch=90 maxYaw=90 maxAttackRadius=2000 minAttackRadius=30>
11        <attached>
12          <Model position="0,0,0" pitch="-90" roll="0" mesh="turretHead.mesh" scale3D="10,10,10"/>
13        </attached>
14        <collisionShapes>
15          <SphereCollisionShape radius="10"   position = "0,0,0"/>
16        </collisionShapes>
17        <controller>
18          <TurretController/>
19        </controller>
20        <?lua
21          include("../includes/weaponSettingsTurret.oxi")
22        ?>
23      </Turret>
24    </attached>
25   
26    <controller>
27      <TeamTargetProxy/>
28    </controller>
29  </Turret>
30</Template>
31
32<Template name=spaceshipturretcameras defaults=0>
33  <SpaceShip>
34    <camerapositions>
35      <CameraPosition position="0,10, 40" drag=true mouselook=true />
36      <CameraPosition position="0,20, 80" drag=true mouselook=true />
37      <CameraPosition position="0,30,120" drag=true mouselook=true />
38    </camerapositions>
39  </SpaceShip>
40</Template>
Note: See TracBrowser for help on using the repository browser.