Changeset 4656
- Timestamp:
- Jan 30, 2007, 4:25:59 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4652 r4656 151 151 <Size>100</Size> 152 152 </Rotor> 153 154 <NPC> 155 <name>Pirate01</name> 156 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 157 <!-- <enableAI>1</enableAI> --> 153 <!-- 154 155 <NPC> 156 <name>Pirate02</name> 157 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 158 <enableAI>1</enableAI> 158 159 <team>1</team> 159 160 <swarm>1</swarm> 160 161 <attackDistance>0.5</attackDistance> 161 162 <maxSpeed>500</maxSpeed> 162 <Weapons> 163 <HeavyBlaster> 164 <slot>0,0</slot> 165 </HeavyBlaster> 166 <HeavyBlaster> 167 <slot>0,1</slot> 168 </HeavyBlaster> 169 </Weapons> 170 <abs-coor>3500, 0, -20</abs-coor> 171 <abs-dir>3.14 , 0,1,0</abs-dir> 172 </NPC> 173 174 <NPC> 175 <name>Pirate02</name> 176 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 177 <!-- <enableAI>1</enableAI> --> 163 <Weapons>HeavyBlaster</Weapons> 164 <abs-coor>3500, 0, 0</abs-coor> 165 <abs-dir> 3.14,0,1,0 </abs-dir> 166 </NPC> 167 168 <NPC> 169 <name>Pirate03</name> 170 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 171 <enableAI>1</enableAI> 178 172 <team>1</team> 179 173 <swarm>1</swarm> … … 181 175 <maxSpeed>500</maxSpeed> 182 176 <Weapons>HeavyBlaster</Weapons> 183 <abs-coor>3 500, 0,0</abs-coor>184 <abs-dir> 3.14,0,1,0 </abs-dir> 185 </NPC> 186 187 <NPC> 188 <name>Pirate0 3</name>189 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 190 <!-- <enableAI>1</enableAI> -->177 <abs-coor>3450, 0, -10</abs-coor> 178 <abs-dir> 3.14,0,1,0 </abs-dir> 179 </NPC> 180 181 <NPC> 182 <name>Pirate04</name> 183 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 184 <enableAI>1</enableAI> 191 185 <team>1</team> 192 <swarm>1</swarm> 193 <attackDistance>0.5</attackDistance> 194 <maxSpeed>500</maxSpeed> 195 <Weapons>HeavyBlaster</Weapons> 186 <swarm>2</swarm> 187 <attackDistance>0.5</attackDistance> 188 <maxSpeed>500</maxSpeed> 189 <Weapons>HeavyBlaster</Weapons> 190 <abs-coor>5000, 0, -10</abs-coor> 191 <abs-dir> 3.14,0,1,0 </abs-dir> 192 </NPC> 193 194 <NPC> 195 <name>Pirate05</name> 196 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 197 <enableAI>1</enableAI> 198 <team>1</team> 199 <swarm>2</swarm> 200 <attackDistance>0.5</attackDistance> 201 <maxSpeed>500</maxSpeed> 202 <Weapons>HeavyBlaster</Weapons> 203 <abs-coor>5000, 0, 10</abs-coor> 204 <abs-dir> 3.14,0,1,0 </abs-dir> 205 </NPC> 206 --> 207 208 <NPC> 209 <name>Pirate05</name> 210 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 211 <enableAI>1</enableAI> 212 <team>2</team> 213 <swarm>2</swarm> 214 <attackDistance>0.5</attackDistance> 215 <maxSpeed>500</maxSpeed> 216 <Weapons>HeavyBlaster</Weapons> 217 <abs-coor>5000, 0, 10</abs-coor> 218 <abs-dir> 3.14,0,1,0 </abs-dir> 219 </NPC> 220 221 <NPC> 222 <name>Pirate06</name> 223 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 224 <enableAI>1</enableAI> 225 <team>2</team> 226 <swarm>2</swarm> 227 <attackDistance>0.5</attackDistance> 228 <maxSpeed>500</maxSpeed> 229 <Weapons>HeavyBlaster</Weapons> 230 <abs-coor>5010, 0, 0</abs-coor> 231 <abs-dir> 3.14,0,1,0 </abs-dir> 232 </NPC> 233 234 <NPC> 235 <name>Ragnar01</name> 236 <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model> 196 237 <abs-coor>3450, 0, -10</abs-coor> 197 <abs-dir> 3.14,0,1,0 </abs-dir> 198 </NPC> 238 <Track> 239 <mode>0</mode> 240 <speed>55</speed> 241 <addPoint>3600,-100,200</addPoint> 242 <addPoint>3700,-100,100</addPoint> 243 <addPoint>3800,-100,50</addPoint> 244 <addPoint>3900,-100,0</addPoint> 245 <addPoint>4000,-50,-30</addPoint> 246 <addPoint>4200,-30,-50</addPoint> 247 <addPoint>4500,0,-200</addPoint> 248 </Track> 249 </NPC> 250 199 251 200 252 <SpaceShip> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4652 r4656 2 2 thisscript:addObject("SpaceShip", "Player") 3 3 thisscript:addObject("CameraMan", "cameraManager") 4 thisscript:addObject("NPC", "Ragnar01") 4 5 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 5 6 … … 25 26 triggerCutscene02:setActiveOnCreation(true) 26 27 28 -- Create the cool Ragnar trigger 29 triggerRagnar = ScriptTrigger() 30 triggerRagnar:setScript("vs1.lua") 31 triggerRagnar:setFunction("startRagnar") 32 triggerRagnar:setRadius(50) 33 triggerRagnar:setTarget("Player") 34 triggerRagnar:setAbsCoor(3600 , 0 , 0) 35 triggerRagnar:setDebugDraw(true) 36 triggerRagnar:setActiveOnCreation(false) 37 27 38 -- Global Variables 28 39 counter = 0 … … 34 45 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01") 35 46 cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3) 47 48 Ragnar01:pause(true) 36 49 -- cameraManager:changeTarget("CameraOne", "NPC", "Pirate01") 37 50 -- cameraManager:jumpCam("CameraOne", 3300, 0, 50) … … 69 82 return cutsceneEnd 70 83 end 84 85 86 function startRagnar(timestep) 87 88 Ragnar01:pause(false) 89 return true 90 end
Note: See TracChangeset
for help on using the changeset viewer.