Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4656


Ignore:
Timestamp:
Jan 30, 2007, 4:25:59 PM (18 years ago)
Author:
bknecht
Message:

cool verticalscroller update

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4652 r4656  
    151151      <Size>100</Size>
    152152    </Rotor>
    153 
    154     <NPC>
    155       <name>Pirate01</name>
    156       <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    157 <!--      <enableAI>1</enableAI> -->
     153<!--
     154
     155    <NPC>
     156      <name>Pirate02</name>
     157      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
     158      <enableAI>1</enableAI>
    158159      <team>1</team>
    159160      <swarm>1</swarm>
    160161      <attackDistance>0.5</attackDistance>
    161162      <maxSpeed>500</maxSpeed>
    162       <Weapons>
    163         <HeavyBlaster>
    164           <slot>0,0</slot>
    165         </HeavyBlaster>
    166         <HeavyBlaster>
    167           <slot>0,1</slot>
    168         </HeavyBlaster>
    169       </Weapons>
    170       <abs-coor>3500, 0, -20</abs-coor>
    171       <abs-dir>3.14 , 0,1,0</abs-dir>
    172     </NPC>
    173 
    174     <NPC>
    175       <name>Pirate02</name>
    176       <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    177 <!--      <enableAI>1</enableAI> -->
     163      <Weapons>HeavyBlaster</Weapons>
     164      <abs-coor>3500, 0, 0</abs-coor>
     165      <abs-dir> 3.14,0,1,0 </abs-dir>
     166    </NPC>
     167
     168    <NPC>
     169      <name>Pirate03</name>
     170      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
     171      <enableAI>1</enableAI>
    178172      <team>1</team>
    179173      <swarm>1</swarm>
     
    181175      <maxSpeed>500</maxSpeed>
    182176      <Weapons>HeavyBlaster</Weapons>
    183       <abs-coor>3500, 0, 0</abs-coor>
    184       <abs-dir> 3.14,0,1,0 </abs-dir>
    185     </NPC>
    186 
    187     <NPC>
    188       <name>Pirate03</name>
    189       <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    190 <!--      <enableAI>1</enableAI>  -->
     177      <abs-coor>3450, 0, -10</abs-coor>
     178      <abs-dir> 3.14,0,1,0 </abs-dir>
     179    </NPC>
     180
     181    <NPC>
     182      <name>Pirate04</name>
     183      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
     184      <enableAI>1</enableAI>
    191185      <team>1</team>
    192       <swarm>1</swarm>
    193       <attackDistance>0.5</attackDistance>
    194       <maxSpeed>500</maxSpeed>
    195       <Weapons>HeavyBlaster</Weapons>
     186      <swarm>2</swarm>
     187      <attackDistance>0.5</attackDistance>
     188      <maxSpeed>500</maxSpeed>
     189      <Weapons>HeavyBlaster</Weapons>
     190      <abs-coor>5000, 0, -10</abs-coor>
     191      <abs-dir> 3.14,0,1,0 </abs-dir>
     192    </NPC>
     193
     194    <NPC>
     195      <name>Pirate05</name>
     196      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
     197      <enableAI>1</enableAI>
     198      <team>1</team>
     199      <swarm>2</swarm>
     200      <attackDistance>0.5</attackDistance>
     201      <maxSpeed>500</maxSpeed>
     202      <Weapons>HeavyBlaster</Weapons>
     203      <abs-coor>5000, 0, 10</abs-coor>
     204      <abs-dir> 3.14,0,1,0 </abs-dir>
     205    </NPC>
     206-->
     207
     208    <NPC>
     209      <name>Pirate05</name>
     210      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
     211      <enableAI>1</enableAI>
     212      <team>2</team>
     213      <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>
     225      <team>2</team>
     226      <swarm>2</swarm>
     227      <attackDistance>0.5</attackDistance>
     228      <maxSpeed>500</maxSpeed>
     229      <Weapons>HeavyBlaster</Weapons>
     230      <abs-coor>5010, 0, 0</abs-coor>
     231      <abs-dir> 3.14,0,1,0 </abs-dir>
     232    </NPC>
     233
     234    <NPC>
     235      <name>Ragnar01</name>
     236      <model>models/spaceships/pirates_spaceship_ragnar.obj,6</model>
    196237      <abs-coor>3450, 0, -10</abs-coor>
    197       <abs-dir> 3.14,0,1,0 </abs-dir>
    198     </NPC>
     238      <Track>
     239        <mode>0</mode>
     240        <speed>55</speed>
     241        <addPoint>3600,-100,200</addPoint>
     242        <addPoint>3700,-100,100</addPoint>
     243        <addPoint>3800,-100,50</addPoint>
     244        <addPoint>3900,-100,0</addPoint>
     245        <addPoint>4000,-50,-30</addPoint>
     246        <addPoint>4200,-30,-50</addPoint>
     247        <addPoint>4500,0,-200</addPoint>
     248      </Track>
     249    </NPC>
     250
    199251
    200252    <SpaceShip>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4652 r4656  
    22thisscript:addObject("SpaceShip", "Player")
    33thisscript:addObject("CameraMan", "cameraManager")
     4thisscript:addObject("NPC", "Ragnar01")
    45-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    56
     
    2526triggerCutscene02:setActiveOnCreation(true)
    2627
     28-- Create the cool Ragnar trigger
     29triggerRagnar = ScriptTrigger()
     30triggerRagnar:setScript("vs1.lua")
     31triggerRagnar:setFunction("startRagnar")
     32triggerRagnar:setRadius(50)
     33triggerRagnar:setTarget("Player")
     34triggerRagnar:setAbsCoor(3600 , 0 , 0)
     35triggerRagnar:setDebugDraw(true)
     36triggerRagnar:setActiveOnCreation(false)
     37
    2738-- Global Variables
    2839counter = 0
     
    3445cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate01")
    3546cameraManager:setRelCoor("CameraOne", 8, 4 , 3.3)
     47
     48Ragnar01:pause(true)
    3649-- cameraManager:changeTarget("CameraOne", "NPC", "Pirate01")
    3750-- cameraManager:jumpCam("CameraOne", 3300, 0, 50)
     
    6982return cutsceneEnd
    7083end
     84
     85
     86function startRagnar(timestep)
     87
     88Ragnar01:pause(false)
     89return true
     90end
Note: See TracChangeset for help on using the changeset viewer.