Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4735


Ignore:
Timestamp:
Jan 31, 2007, 11:42:58 AM (18 years ago)
Author:
bknecht
Message:

vertical_scroller update

Location:
data/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • data/trunk/levels/vertical_scroller.oxw

    r4734 r4735  
    158158      <list>group00</list>
    159159      <swarm>1</swarm>
     160      <enableAI>1</enableAI>
    160161      <attackDistance>60</attackDistance>
    161162      <maxSpeed>500</maxSpeed>
     
    171172      <swarm>1</swarm>
    172173      <list>group00</list>
     174      <enableAI>1</enableAI>
    173175      <attackDistance>60</attackDistance>
    174176      <maxSpeed>500</maxSpeed>
     
    184186      <swarm>1</swarm>
    185187      <list>group00</list>
     188      <enableAI>1</enableAI>
    186189      <attackDistance>60</attackDistance>
    187190      <maxSpeed>500</maxSpeed>
     
    197200      <swarm>1</swarm>
    198201      <list>group00</list>
     202      <enableAI>1</enableAI>
    199203      <attackDistance>60</attackDistance>
    200204      <maxSpeed>500</maxSpeed>
     
    210214      <swarm>1</swarm>
    211215      <list>group00</list>
     216      <enableAI>1</enableAI>
    212217      <attackDistance>60</attackDistance>
    213218      <maxSpeed>500</maxSpeed>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4734 r4735  
    8181triggerCutscene05:setActiveOnCreation(true)
    8282
     83-- Create another trigger
     84triggerStop = ScriptTrigger()
     85triggerStop:setScript("vs1.lua")
     86triggerStop:setFunction("stopPlayer")
     87triggerStop:setRadius(50)
     88triggerStop:setTarget("Player")
     89triggerStop:setAbsCoor(8000 , 0 , -2000)
     90triggerStop:setDebugDraw(true)
     91triggerStop:setActiveOnCreation(false)
    8392
    8493-- Create the cool Ragnar trigger
     
    93102
    94103-- 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)
    103112
    104113-- 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)
    113122
    114123-- 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)
    123132
    124133-- 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)
    133142
    134143
     
    150159cameraManager:atachCameraToWorldEntity("CameraTwo", "NPC", "Noxon01")
    151160cameraManager:setRelCoor("CameraOne", 10, 8 , -5)
    152 cameraManager:setRelCoor("CameraTwo", 20, 8 , -5)
     161cameraManager:setRelCoor("CameraTwo", 30, 15 , -10)
    153162
    154163
     
    195204
    196205
    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 true
    206 end
    207 
    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 true
    218 end
    219 
    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 true
    231 end
     206--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
    232241
    233242
    234243function startRagnar2(timestep)
    235244
    236 Ragnar02:setAI(true)
     245--Ragnar02:setAI(true)
    237246bossFight = true
    238247cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 140, 0, 20)
     
    290299cutscene2End = true
    291300
     301cameraManager:setRelCoorSoft("GameWorld-Camera", -0.05, 70, 0)
    292302cameraManager:setCam("GameWorld-Camera")
    293303
     
    297307return cutscene2End
    298308end
     309
     310function stopPlayer(timestep)
     311
     312Player:pause(true)
     313
     314return true
     315end
Note: See TracChangeset for help on using the changeset viewer.