Changeset 4666
- Timestamp:
- Jan 30, 2007, 8:01:48 PM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4656 r4666 151 151 <Size>100</Size> 152 152 </Rotor> 153 <!-- 153 154 <NPC> 155 <name>blubb</name> 156 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 157 <team>1</team> 158 <swarm>1</swarm> 159 <attackDistance>60</attackDistance> 160 <maxSpeed>500</maxSpeed> 161 <Weapons>HeavyBlaster</Weapons> 162 <abs-coor>3450, 0, 10</abs-coor> 163 <abs-dir> 3.14,0,1,0 </abs-dir> 164 </NPC> 154 165 155 166 <NPC> 156 167 <name>Pirate02</name> 157 168 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 158 <enableAI>1</enableAI>159 169 <team>1</team> 160 170 <swarm>1</swarm> 161 <attackDistance> 0.5</attackDistance>171 <attackDistance>60</attackDistance> 162 172 <maxSpeed>500</maxSpeed> 163 173 <Weapons>HeavyBlaster</Weapons> … … 169 179 <name>Pirate03</name> 170 180 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 171 <enableAI>1</enableAI>172 181 <team>1</team> 173 182 <swarm>1</swarm> 174 <attackDistance> 0.5</attackDistance>183 <attackDistance>60</attackDistance> 175 184 <maxSpeed>500</maxSpeed> 176 185 <Weapons>HeavyBlaster</Weapons> … … 182 191 <name>Pirate04</name> 183 192 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 184 <enableAI>1</enableAI>185 193 <team>1</team> 186 194 <swarm>2</swarm> 187 <attackDistance> 0.5</attackDistance>195 <attackDistance>60</attackDistance> 188 196 <maxSpeed>500</maxSpeed> 189 197 <Weapons>HeavyBlaster</Weapons> … … 195 203 <name>Pirate05</name> 196 204 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 197 <enableAI>1</enableAI>198 205 <team>1</team> 199 206 <swarm>2</swarm> 200 <attackDistance> 0.5</attackDistance>207 <attackDistance>60</attackDistance> 201 208 <maxSpeed>500</maxSpeed> 202 209 <Weapons>HeavyBlaster</Weapons> … … 204 211 <abs-dir> 3.14,0,1,0 </abs-dir> 205 212 </NPC> 206 --> 207 208 <NPC> 209 <name>Pirate05</name> 210 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 211 <enableAI>1</enableAI> 213 214 <NPC> 215 <name>Pirate06</name> 216 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 212 217 <team>2</team> 213 218 <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> 219 <attackDistance>60</attackDistance> 220 <maxSpeed>500</maxSpeed> 221 <Weapons>HeavyBlaster</Weapons> 222 <abs-coor>4960, 0, 0</abs-coor> 223 <abs-dir> 3.14,0,1,0 </abs-dir> 224 </NPC> 225 226 <NPC> 227 <name>Pirate07</name> 228 <model>models/spaceships/pirates_spaceship_fighter.obj,1</model> 225 229 <team>2</team> 226 230 <swarm>2</swarm> 227 <attackDistance> 0.5</attackDistance>231 <attackDistance>60</attackDistance> 228 232 <maxSpeed>500</maxSpeed> 229 233 <Weapons>HeavyBlaster</Weapons> … … 255 259 <abs-coor>0,0,0</abs-coor> 256 260 <playmode>Horizontal</playmode> 261 <actionWidthPercentage>70</actionWidthPercentage> 257 262 <drawTrack>1</drawTrack> 258 263 <Track> … … 267 272 <addPoint>6000,0,0</addPoint> 268 273 <addPoint>7000,0,-200</addPoint> 274 <addPoint>7500,0,-700</addPoint> 269 275 </Track> 270 276 </SpaceShip> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4656 r4666 3 3 thisscript:addObject("CameraMan", "cameraManager") 4 4 thisscript:addObject("NPC", "Ragnar01") 5 thisscript:addObject("NPC", "Pirate01") 6 thisscript:addObject("NPC", "Pirate02") 7 thisscript:addObject("NPC", "Pirate03") 8 thisscript:addObject("NPC", "Pirate04") 9 thisscript:addObject("NPC", "Pirate05") 10 thisscript:addObject("NPC", "Pirate06") 11 thisscript:addObject("NPC", "Pirate07") 12 -- thisscript:addObject("NPC", "Pirate08") 5 13 -- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld") 6 14 … … 35 43 triggerRagnar:setDebugDraw(true) 36 44 triggerRagnar:setActiveOnCreation(false) 45 46 -- Create a great AI activater 47 triggerAI01 = ScriptTrigger() 48 triggerAI01:setScript("vs1.lua") 49 triggerAI01:setFunction("activateGroup1") 50 triggerAI01:setRadius(50) 51 triggerAI01:setTarget("Player") 52 triggerAI01:setAbsCoor(2600, 0, 15) 53 triggerAI01:setDebugDraw(true) 54 triggerAI01:setActiveOnCreation(false) 55 56 -- Create another great AI activater 57 triggerAI02 = ScriptTrigger() 58 triggerAI02:setScript("vs1.lua") 59 triggerAI02:setFunction("activateGroup2") 60 triggerAI02:setRadius(50) 61 triggerAI02:setTarget("Player") 62 triggerAI02:setAbsCoor(4900, 0, 50) 63 triggerAI02:setDebugDraw(true) 64 triggerAI02:setActiveOnCreation(false) 37 65 38 66 -- Global Variables … … 69 97 end 70 98 71 if counter > 6 and counter < 7then99 if counter > 5 and counter < 6 then 72 100 cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03") 73 101 cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5) 74 102 end 75 103 76 if counter > 1 7then104 if counter > 14 then 77 105 cutsceneEnd = true 78 106 cameraManager:setCam("GameWorld-Camera") … … 89 117 return true 90 118 end 119 120 function activateGroup1(timestep) 121 122 Pirate01:setAI(true) 123 Pirate02:setAI(true) 124 Pirate03:setAI(true) 125 126 return true 127 end 128 129 function activateGroup2(timestep) 130 131 Pirate04:setAI(true) 132 Pirate05:setAI(true) 133 Pirate06:setAI(true) 134 135 return true 136 end 137
Note: See TracChangeset
for help on using the changeset viewer.