Changeset 4735
- Timestamp:
- Jan 31, 2007, 11:42:58 AM (18 years ago)
- Location:
- data/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
data/trunk/levels/vertical_scroller.oxw
r4734 r4735 158 158 <list>group00</list> 159 159 <swarm>1</swarm> 160 <enableAI>1</enableAI> 160 161 <attackDistance>60</attackDistance> 161 162 <maxSpeed>500</maxSpeed> … … 171 172 <swarm>1</swarm> 172 173 <list>group00</list> 174 <enableAI>1</enableAI> 173 175 <attackDistance>60</attackDistance> 174 176 <maxSpeed>500</maxSpeed> … … 184 186 <swarm>1</swarm> 185 187 <list>group00</list> 188 <enableAI>1</enableAI> 186 189 <attackDistance>60</attackDistance> 187 190 <maxSpeed>500</maxSpeed> … … 197 200 <swarm>1</swarm> 198 201 <list>group00</list> 202 <enableAI>1</enableAI> 199 203 <attackDistance>60</attackDistance> 200 204 <maxSpeed>500</maxSpeed> … … 210 214 <swarm>1</swarm> 211 215 <list>group00</list> 216 <enableAI>1</enableAI> 212 217 <attackDistance>60</attackDistance> 213 218 <maxSpeed>500</maxSpeed> -
data/trunk/scripts/vertical_scroller/vs1.lua
r4734 r4735 81 81 triggerCutscene05:setActiveOnCreation(true) 82 82 83 -- Create another trigger 84 triggerStop = ScriptTrigger() 85 triggerStop:setScript("vs1.lua") 86 triggerStop:setFunction("stopPlayer") 87 triggerStop:setRadius(50) 88 triggerStop:setTarget("Player") 89 triggerStop:setAbsCoor(8000 , 0 , -2000) 90 triggerStop:setDebugDraw(true) 91 triggerStop:setActiveOnCreation(false) 83 92 84 93 -- Create the cool Ragnar trigger … … 93 102 94 103 -- Create a great AI activater 95 triggerAI01 = ScriptTrigger()96 triggerAI01:setScript("vs1.lua")97 triggerAI01:setFunction("activateGroup1")98 triggerAI01:setRadius(50)99 triggerAI01:setTarget("Player")100 triggerAI01:setAbsCoor(2600, 0, -10)101 triggerAI01:setDebugDraw(true)102 triggerAI01:setActiveOnCreation(false)104 --triggerAI01 = ScriptTrigger() 105 --triggerAI01:setScript("vs1.lua") 106 --triggerAI01:setFunction("activateGroup1") 107 --triggerAI01:setRadius(50) 108 --triggerAI01:setTarget("Player") 109 --triggerAI01:setAbsCoor(2600, 0, -10) 110 --triggerAI01:setDebugDraw(true) 111 --triggerAI01:setActiveOnCreation(false) 103 112 104 113 -- Create another great AI activater 105 triggerAI02 = ScriptTrigger()106 triggerAI02:setScript("vs1.lua")107 triggerAI02:setFunction("activateGroup2")108 triggerAI02:setRadius(50)109 triggerAI02:setTarget("Player")110 triggerAI02:setAbsCoor(4900, 0, -45)111 triggerAI02:setDebugDraw(true)112 triggerAI02:setActiveOnCreation(false)114 --triggerAI02 = ScriptTrigger() 115 --triggerAI02:setScript("vs1.lua") 116 --triggerAI02:setFunction("activateGroup2") 117 --triggerAI02:setRadius(50) 118 --triggerAI02:setTarget("Player") 119 --triggerAI02:setAbsCoor(4900, 0, -45) 120 --triggerAI02:setDebugDraw(true) 121 --triggerAI02:setActiveOnCreation(false) 113 122 114 123 -- Create another great AI activater 115 triggerAI03 = ScriptTrigger()116 triggerAI03:setScript("vs1.lua")117 triggerAI03:setFunction("activateGroup3")118 triggerAI03:setRadius(50)119 triggerAI03:setTarget("Player")120 triggerAI03:setAbsCoor(5850, 0, -170)121 triggerAI03:setDebugDraw(true)122 triggerAI03:setActiveOnCreation(false)124 --triggerAI03 = ScriptTrigger() 125 --triggerAI03:setScript("vs1.lua") 126 --triggerAI03:setFunction("activateGroup3") 127 --triggerAI03:setRadius(50) 128 --triggerAI03:setTarget("Player") 129 --triggerAI03:setAbsCoor(5850, 0, -170) 130 --triggerAI03:setDebugDraw(true) 131 --triggerAI03:setActiveOnCreation(false) 123 132 124 133 -- Create another great AI activater 125 triggerAI04 = ScriptTrigger()126 triggerAI04:setScript("vs1.lua")127 triggerAI04:setFunction("startRagnar2")128 triggerAI04:setRadius(50)129 triggerAI04:setTarget("Player")130 triggerAI04:setAbsCoor(6500, 0, -350)131 triggerAI04:setDebugDraw(true)132 triggerAI04:setActiveOnCreation(false)134 --triggerAI04 = ScriptTrigger() 135 --triggerAI04:setScript("vs1.lua") 136 --triggerAI04:setFunction("startRagnar2") 137 --triggerAI04:setRadius(50) 138 --triggerAI04:setTarget("Player") 139 --triggerAI04:setAbsCoor(6500, 0, -350) 140 --triggerAI04:setDebugDraw(true) 141 --triggerAI04:setActiveOnCreation(false) 133 142 134 143 … … 150 159 cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01") 151 160 cameraManager:setRelCoor("CameraOne", 10, 8 , -5) 152 cameraManager:setRelCoor("CameraTwo", 20, 8 , -5)161 cameraManager:setRelCoor("CameraTwo", 30, 15 , -10) 153 162 154 163 … … 195 204 196 205 197 function activateGroup1(timestep)198 199 Pirate01:setAI(true)200 Pirate02:setAI(true)201 Pirate03:setAI(true)202 Pirate53:setAI(true)203 Pirate54:setAI(true)204 205 return true206 end207 208 209 function activateGroup2(timestep)210 211 Pirate04:setAI(true)212 Pirate05:setAI(true)213 Pirate06:setAI(true)214 Pirate56:setAI(true)215 Pirate57:setAI(true)216 217 return true218 end219 220 221 function activateGroup3(timestep)222 223 Pirate07:setAI(true)224 Pirate08:setAI(true)225 Pirate09:setAI(true)226 Pirate59:setAI(true)227 Pirate49:setAI(true)228 Pirate79:setAI(true)229 230 return true231 end206 --function activateGroup1(timestep) 207 208 --Pirate01:setAI(true) 209 --Pirate02:setAI(true) 210 --Pirate03:setAI(true) 211 --Pirate53:setAI(true) 212 --Pirate54:setAI(true) 213 214 --return true 215 --end 216 217 218 --function activateGroup2(timestep) 219 220 --Pirate04:setAI(true) 221 --Pirate05:setAI(true) 222 --Pirate06:setAI(true) 223 --Pirate56:setAI(true) 224 --Pirate57:setAI(true) 225 226 --return true 227 --end 228 229 230 --function activateGroup3(timestep) 231 232 --Pirate07:setAI(true) 233 --Pirate08:setAI(true) 234 --Pirate09:setAI(true) 235 --Pirate59:setAI(true) 236 --Pirate49:setAI(true) 237 --Pirate79:setAI(true) 238 239 --return true 240 --end 232 241 233 242 234 243 function startRagnar2(timestep) 235 244 236 Ragnar02:setAI(true)245 --Ragnar02:setAI(true) 237 246 bossFight = true 238 247 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 140, 0, 20) … … 290 299 cutscene2End = true 291 300 301 cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 70, 0) 292 302 cameraManager:setCam("GameWorld-Camera") 293 303 … … 297 307 return cutscene2End 298 308 end 309 310 function stopPlayer(timestep) 311 312 Player:pause(true) 313 314 return true 315 end
Note: See TracChangeset
for help on using the changeset viewer.