Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/archive/tutorial5/data/levels/templates/tower.oxt @ 12412

Last change on this file since 12412 was 10258, checked in by landauf, 10 years ago

merged presentationHS14merge back to trunk

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1<Template name=tower>
2  <TowerDefenseTower
3
4
5   explosionchunks        = 6
6
7   reloadrate          = 3
8   reloadwaittime      = 1
9
10   collisionType     = "dynamic"
11   team = 2
12
13
14  >
15    <controller>
16        <WaypointPatrolController alertnessradius=1000 team=5>
17            <waypoints>
18                <Model mesh="cube.mesh" scale=0 position=" 700, 200, 100" />
19            </waypoints>
20        </WaypointPatrolController>
21    </controller>
22   
23
24
25    <attached>
26        <Model position="0,0,0" scale=45 mesh="Tower.mesh" />
27       
28       
29    </attached>
30
31    <!--collisionShapes>
32
33    </collisionShapes-->
34
35<?lua
36  include("../includes/towerWeaponSettings.oxi")
37?>
38  </TowerDefenseTower>
39</Template>
40
41
42
43<Template name=towerturret>
44  <TowerDefenseTower
45
46
47   explosionchunks        = 6
48
49   reloadrate          = 10
50   reloadwaittime      = 5
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
61    <Turret reloadrate=10 reloadwaittime=5 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>
62
63      <controller>
64        <TurretController/>
65      </controller>
66      <?lua
67        include("../includes/weaponSettingsTurret.oxi")
68      ?>
69    </Turret>
70   
71  </attached>
72   
73
74
75
76    <!--collisionShapes>
77
78    </collisionShapes-->
79
80<?lua
81  include("../includes/towerWeaponSettings.oxi")
82?>
83  </TowerDefenseTower>
84</Template>
85
86
87
88<Template name=towerturret1>
89  <TowerDefenseTower
90
91
92   explosionchunks        = 6
93
94   reloadrate          = 10
95   reloadwaittime      = 5
96
97   collisionType     = "dynamic"
98   team = 1
99
100
101  >
102  <attached>
103
104
105    <Turret reloadrate=10 reloadwaittime=5 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>
106
107      <controller>
108        <TurretController/>
109      </controller>
110      <?lua
111        include("../includes/weaponSettingsTurret1.oxi")
112      ?>
113    </Turret>
114   
115  </attached>
116   
117
118
119
120    <!--collisionShapes>
121
122    </collisionShapes-->
123
124<?lua
125  include("../includes/towerWeaponSettings.oxi")
126?>
127  </TowerDefenseTower>
128</Template>
Note: See TracBrowser for help on using the repository browser.