Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4682


Ignore:
Timestamp:
Jan 30, 2007, 11:29:42 PM (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

    r4666 r4682  
    153153
    154154    <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>
    158159      <swarm>1</swarm>
    159160      <attackDistance>60</attackDistance>
     
    169170      <team>1</team>
    170171      <swarm>1</swarm>
     172      <list>OM_GROUP_01</list>
    171173      <attackDistance>60</attackDistance>
    172174      <maxSpeed>500</maxSpeed>
     
    181183      <team>1</team>
    182184      <swarm>1</swarm>
     185      <list>OM_GROUP_01</list>
    183186      <attackDistance>60</attackDistance>
    184187      <maxSpeed>500</maxSpeed>
     
    193196      <team>1</team>
    194197      <swarm>2</swarm>
     198      <list>OM_GROUP_01</list>
    195199      <attackDistance>60</attackDistance>
    196200      <maxSpeed>500</maxSpeed>
     
    205209      <team>1</team>
    206210      <swarm>2</swarm>
     211      <list>OM_GROUP_01</list>
    207212      <attackDistance>60</attackDistance>
    208213      <maxSpeed>500</maxSpeed>
     
    217222      <team>2</team>
    218223      <swarm>2</swarm>
     224      <list>OM_GROUP_01</list>
    219225      <attackDistance>60</attackDistance>
    220226      <maxSpeed>500</maxSpeed>
     
    228234      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    229235      <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>
    235266      <abs-dir> 3.14,0,1,0 </abs-dir>
    236267    </NPC>
     
    251282        <addPoint>4500,0,-200</addPoint>
    252283      </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>
    253296    </NPC>
    254297
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4666 r4682  
    33thisscript:addObject("CameraMan", "cameraManager")
    44thisscript:addObject("NPC", "Ragnar01")
     5thisscript:addObject("NPC", "Ragnar02")
    56thisscript:addObject("NPC", "Pirate01")
    67thisscript:addObject("NPC", "Pirate02")
     
    1011thisscript:addObject("NPC", "Pirate06")
    1112thisscript:addObject("NPC", "Pirate07")
    12 -- thisscript:addObject("NPC", "Pirate08")
     13thisscript:addObject("NPC", "Pirate08")
     14thisscript:addObject("NPC", "Pirate09")
    1315-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    1416
     
    2426triggerCutscene:setRadius(50)
    2527triggerCutscene:setTarget("Player")
    26 triggerCutscene:setAbsCoor(2300 , 0 , 10)
     28triggerCutscene:setAbsCoor(2300 , 0 , 0)
    2729triggerCutscene:setDebugDraw(true)
    2830triggerCutscene:setActiveOnCreation(false)
     
    4042triggerRagnar:setRadius(50)
    4143triggerRagnar:setTarget("Player")
    42 triggerRagnar:setAbsCoor(3600 , 0 , 0)
     44triggerRagnar:setAbsCoor(3600 , 0 , -10)
    4345triggerRagnar:setDebugDraw(true)
    4446triggerRagnar:setActiveOnCreation(false)
     
    5052triggerAI01:setRadius(50)
    5153triggerAI01:setTarget("Player")
    52 triggerAI01:setAbsCoor(2600, 0, 15)
     54triggerAI01:setAbsCoor(2600, 0, -10)
    5355triggerAI01:setDebugDraw(true)
    5456triggerAI01:setActiveOnCreation(false)
     
    6062triggerAI02:setRadius(50)
    6163triggerAI02:setTarget("Player")
    62 triggerAI02:setAbsCoor(4900, 0, 50)
     64triggerAI02:setAbsCoor(4900, 0, 0)
    6365triggerAI02:setDebugDraw(true)
    6466triggerAI02:setActiveOnCreation(false)
     67
     68-- Create another great AI activater
     69triggerAI03 = ScriptTrigger()
     70triggerAI03:setScript("vs1.lua")
     71triggerAI03:setFunction("activateGroup3")
     72triggerAI03:setRadius(50)
     73triggerAI03:setTarget("Player")
     74triggerAI03:setAbsCoor(5850, 0, -70)
     75triggerAI03:setDebugDraw(true)
     76triggerAI03:setActiveOnCreation(false)
     77
     78-- Create another great AI activater
     79triggerAI04 = ScriptTrigger()
     80triggerAI04:setScript("vs1.lua")
     81triggerAI04:setFunction("startRagnar2")
     82triggerAI04:setRadius(50)
     83triggerAI04:setTarget("Player")
     84triggerAI04:setAbsCoor(6500, 0, -200)
     85triggerAI04:setDebugDraw(true)
     86triggerAI04:setActiveOnCreation(false)
    6587
    6688-- Global Variables
     
    6890cutsceneRunning = false
    6991cutsceneEnd = false
     92bossFight = false
     93bossFightEnd = false
     94time = 0
    7095
    7196function init(timestep)
    7297-- cameraManager:setCam("GameWorld-Camera")
    7398cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    74 cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3)
     99cameraManager:setRelCoor("CameraOne", 10, 8 , 5)
    75100
    76101Ragnar01:pause(true)
     
    83108function startSequence(timestep)
    84109
     110Player:pause(true)
    85111cameraManager:setCam("CameraOne")
    86112-- gameWorld:showText("Kill those traitorous bastards")
     
    99125if counter > 5 and counter < 6 then
    100126cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03")
    101 cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5)
     127cameraManager:setRelCoorSoft("CameraOne", 10, 8 , 5, 6)
    102128end
    103129
    104 if counter > 14 then
     130if counter > 11 then
    105131cutsceneEnd = true
     132Player:pause(false)
    106133cameraManager:setCam("GameWorld-Camera")
    107134end
    108 
    109135
    110136return cutsceneEnd
     
    118144end
    119145
     146
    120147function activateGroup1(timestep)
    121148
     
    126153return true
    127154end
     155
    128156
    129157function activateGroup2(timestep)
     
    136164end
    137165
     166
     167function activateGroup3(timestep)
     168
     169Pirate07:setAI(true)
     170Pirate08:setAI(true)
     171Pirate09:setAI(true)
     172
     173return true
     174end
     175
     176
     177function startRagnar2(timestep)
     178
     179Ragnar02:setAI(true)
     180bossFight = true
     181
     182return true
     183end
     184
     185
     186function surviver(timestep)
     187
     188if bossFight then
     189time = time + timestep
     190end
     191
     192if time > 25 then
     193Ragnar02:setAI(false)
     194bossFightEnd = true
     195end
     196
     197return bossFightEnd
     198end
Note: See TracChangeset for help on using the changeset viewer.