Changeset 4682
- Timestamp:
- Jan 30, 2007, 11:29:42 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4666 r4682 153 153 154 154 <NPC> 155 <name>blubb</name> 156 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 157 <team>1</team> 155 <name>Pirate01</name> 156 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 157 <team>1</team> 158 <list>OM_GROUP_01</list> 158 159 <swarm>1</swarm> 159 160 <attackDistance>60</attackDistance> … … 169 170 <team>1</team> 170 171 <swarm>1</swarm> 172 <list>OM_GROUP_01</list> 171 173 <attackDistance>60</attackDistance> 172 174 <maxSpeed>500</maxSpeed> … … 181 183 <team>1</team> 182 184 <swarm>1</swarm> 185 <list>OM_GROUP_01</list> 183 186 <attackDistance>60</attackDistance> 184 187 <maxSpeed>500</maxSpeed> … … 193 196 <team>1</team> 194 197 <swarm>2</swarm> 198 <list>OM_GROUP_01</list> 195 199 <attackDistance>60</attackDistance> 196 200 <maxSpeed>500</maxSpeed> … … 205 209 <team>1</team> 206 210 <swarm>2</swarm> 211 <list>OM_GROUP_01</list> 207 212 <attackDistance>60</attackDistance> 208 213 <maxSpeed>500</maxSpeed> … … 217 222 <team>2</team> 218 223 <swarm>2</swarm> 224 <list>OM_GROUP_01</list> 219 225 <attackDistance>60</attackDistance> 220 226 <maxSpeed>500</maxSpeed> … … 228 234 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 229 235 <team>2</team> 230 <swarm>2</swarm> 231 <attackDistance>60</attackDistance> 232 <maxSpeed>500</maxSpeed> 233 <Weapons>HeavyBlaster</Weapons> 234 <abs-coor>5010, 0, 0</abs-coor> 236 <swarm>3</swarm> 237 <list>OM_GROUP_01</list> 238 <attackDistance>60</attackDistance> 239 <maxSpeed>500</maxSpeed> 240 <Weapons>HeavyBlaster</Weapons> 241 <abs-coor>6000, 0, -40</abs-coor> 242 <abs-dir> 3.14,0,1,0 </abs-dir> 243 </NPC> 244 <NPC> 245 <name>Pirate08</name> 246 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 247 <team>2</team> 248 <swarm>3</swarm> 249 <list>OM_GROUP_01</list> 250 <attackDistance>60</attackDistance> 251 <maxSpeed>500</maxSpeed> 252 <Weapons>HeavyBlaster</Weapons> 253 <abs-coor>6010, 0, -30</abs-coor> 254 <abs-dir> 3.14,0,1,0 </abs-dir> 255 </NPC> 256 <NPC> 257 <name>Pirate09</name> 258 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 259 <team>2</team> 260 <swarm>3</swarm> 261 <list>OM_GROUP_01</list> 262 <attackDistance>60</attackDistance> 263 <maxSpeed>500</maxSpeed> 264 <Weapons>HeavyBlaster</Weapons> 265 <abs-coor>6010, 0, -50</abs-coor> 235 266 <abs-dir> 3.14,0,1,0 </abs-dir> 236 267 </NPC> … … 251 282 <addPoint>4500,0,-200</addPoint> 252 283 </Track> 284 </NPC> 285 286 <NPC> 287 <name>Ragnar02</name> 288 <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model> 289 <abs-coor>7000, 0, -350</abs-coor> 290 <team>3</team> 291 <swarm>1</swarm> 292 <list>OM_GROUP_01</list> 293 <attackDistance>50</attackDistance> 294 <Weapons>HeavyBlaster</Weapons> 295 <maxSpeed>400</maxSpeed> 253 296 </NPC> 254 297 -
data/trunk/scripts/vertical_scroller/vs1.lua
r4666 r4682 3 3 thisscript:addObject("CameraMan", "cameraManager") 4 4 thisscript:addObject("NPC", "Ragnar01") 5 thisscript:addObject("NPC", "Ragnar02") 5 6 thisscript:addObject("NPC", "Pirate01") 6 7 thisscript:addObject("NPC", "Pirate02") … … 10 11 thisscript:addObject("NPC", "Pirate06") 11 12 thisscript:addObject("NPC", "Pirate07") 12 -- thisscript:addObject("NPC", "Pirate08") 13 thisscript:addObject("NPC", "Pirate08") 14 thisscript:addObject("NPC", "Pirate09") 13 15 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 14 16 … … 24 26 triggerCutscene:setRadius(50) 25 27 triggerCutscene:setTarget("Player") 26 triggerCutscene:setAbsCoor(2300 , 0 , 10)28 triggerCutscene:setAbsCoor(2300 , 0 , 0) 27 29 triggerCutscene:setDebugDraw(true) 28 30 triggerCutscene:setActiveOnCreation(false) … … 40 42 triggerRagnar:setRadius(50) 41 43 triggerRagnar:setTarget("Player") 42 triggerRagnar:setAbsCoor(3600 , 0 , 0)44 triggerRagnar:setAbsCoor(3600 , 0 , -10) 43 45 triggerRagnar:setDebugDraw(true) 44 46 triggerRagnar:setActiveOnCreation(false) … … 50 52 triggerAI01:setRadius(50) 51 53 triggerAI01:setTarget("Player") 52 triggerAI01:setAbsCoor(2600, 0, 15)54 triggerAI01:setAbsCoor(2600, 0, -10) 53 55 triggerAI01:setDebugDraw(true) 54 56 triggerAI01:setActiveOnCreation(false) … … 60 62 triggerAI02:setRadius(50) 61 63 triggerAI02:setTarget("Player") 62 triggerAI02:setAbsCoor(4900, 0, 50)64 triggerAI02:setAbsCoor(4900, 0, 0) 63 65 triggerAI02:setDebugDraw(true) 64 66 triggerAI02:setActiveOnCreation(false) 67 68 -- Create another great AI activater 69 triggerAI03 = ScriptTrigger() 70 triggerAI03:setScript("vs1.lua") 71 triggerAI03:setFunction("activateGroup3") 72 triggerAI03:setRadius(50) 73 triggerAI03:setTarget("Player") 74 triggerAI03:setAbsCoor(5850, 0, -70) 75 triggerAI03:setDebugDraw(true) 76 triggerAI03:setActiveOnCreation(false) 77 78 -- Create another great AI activater 79 triggerAI04 = ScriptTrigger() 80 triggerAI04:setScript("vs1.lua") 81 triggerAI04:setFunction("startRagnar2") 82 triggerAI04:setRadius(50) 83 triggerAI04:setTarget("Player") 84 triggerAI04:setAbsCoor(6500, 0, -200) 85 triggerAI04:setDebugDraw(true) 86 triggerAI04:setActiveOnCreation(false) 65 87 66 88 -- Global Variables … … 68 90 cutsceneRunning = false 69 91 cutsceneEnd = false 92 bossFight = false 93 bossFightEnd = false 94 time = 0 70 95 71 96 function init(timestep) 72 97 -- cameraManager:setCam("GameWorld-Camera") 73 98 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01") 74 cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3)99 cameraManager:setRelCoor("CameraOne", 10, 8 , 5) 75 100 76 101 Ragnar01:pause(true) … … 83 108 function startSequence(timestep) 84 109 110 Player:pause(true) 85 111 cameraManager:setCam("CameraOne") 86 112 -- gameWorld:showText("Kill those traitorous bastards") … … 99 125 if counter > 5 and counter < 6 then 100 126 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03") 101 cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5)127 cameraManager:setRelCoorSoft("CameraOne", 10, 8 , 5, 6) 102 128 end 103 129 104 if counter > 1 4then130 if counter > 11 then 105 131 cutsceneEnd = true 132 Player:pause(false) 106 133 cameraManager:setCam("GameWorld-Camera") 107 134 end 108 109 135 110 136 return cutsceneEnd … … 118 144 end 119 145 146 120 147 function activateGroup1(timestep) 121 148 … … 126 153 return true 127 154 end 155 128 156 129 157 function activateGroup2(timestep) … … 136 164 end 137 165 166 167 function activateGroup3(timestep) 168 169 Pirate07:setAI(true) 170 Pirate08:setAI(true) 171 Pirate09:setAI(true) 172 173 return true 174 end 175 176 177 function startRagnar2(timestep) 178 179 Ragnar02:setAI(true) 180 bossFight = true 181 182 return true 183 end 184 185 186 function surviver(timestep) 187 188 if bossFight then 189 time = time + timestep 190 end 191 192 if time > 25 then 193 Ragnar02:setAI(false) 194 bossFightEnd = true 195 end 196 197 return bossFightEnd 198 end
Note: See TracChangeset
for help on using the changeset viewer.