Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4666 for data/trunk


Ignore:
Timestamp:
Jan 30, 2007, 8:01:48 PM (18 years ago)
Author:
bknecht
Message:

update on vertical scroller

Location:
data/trunk
Files:
2 edited

Legend:

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

    r4656 r4666  
    151151      <Size>100</Size>
    152152    </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>
    154165
    155166    <NPC>
    156167      <name>Pirate02</name>
    157168      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    158       <enableAI>1</enableAI>
    159169      <team>1</team>
    160170      <swarm>1</swarm>
    161       <attackDistance>0.5</attackDistance>
     171      <attackDistance>60</attackDistance>
    162172      <maxSpeed>500</maxSpeed>
    163173      <Weapons>HeavyBlaster</Weapons>
     
    169179      <name>Pirate03</name>
    170180      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    171       <enableAI>1</enableAI>
    172181      <team>1</team>
    173182      <swarm>1</swarm>
    174       <attackDistance>0.5</attackDistance>
     183      <attackDistance>60</attackDistance>
    175184      <maxSpeed>500</maxSpeed>
    176185      <Weapons>HeavyBlaster</Weapons>
     
    182191      <name>Pirate04</name>
    183192      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    184       <enableAI>1</enableAI>
    185193      <team>1</team>
    186194      <swarm>2</swarm>
    187       <attackDistance>0.5</attackDistance>
     195      <attackDistance>60</attackDistance>
    188196      <maxSpeed>500</maxSpeed>
    189197      <Weapons>HeavyBlaster</Weapons>
     
    195203      <name>Pirate05</name>
    196204      <model>models/spaceships/pirates_spaceship_fighter.obj,1</model>
    197       <enableAI>1</enableAI>
    198205      <team>1</team>
    199206      <swarm>2</swarm>
    200       <attackDistance>0.5</attackDistance>
     207      <attackDistance>60</attackDistance>
    201208      <maxSpeed>500</maxSpeed>
    202209      <Weapons>HeavyBlaster</Weapons>
     
    204211      <abs-dir> 3.14,0,1,0 </abs-dir>
    205212    </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>
    212217      <team>2</team>
    213218      <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>
    225229      <team>2</team>
    226230      <swarm>2</swarm>
    227       <attackDistance>0.5</attackDistance>
     231      <attackDistance>60</attackDistance>
    228232      <maxSpeed>500</maxSpeed>
    229233      <Weapons>HeavyBlaster</Weapons>
     
    255259      <abs-coor>0,0,0</abs-coor>
    256260      <playmode>Horizontal</playmode>
     261      <actionWidthPercentage>70</actionWidthPercentage>
    257262     <drawTrack>1</drawTrack>
    258263      <Track>
     
    267272        <addPoint>6000,0,0</addPoint>
    268273        <addPoint>7000,0,-200</addPoint>
     274        <addPoint>7500,0,-700</addPoint>
    269275      </Track>
    270276    </SpaceShip>
  • data/trunk/scripts/vertical_scroller/vs1.lua

    r4656 r4666  
    33thisscript:addObject("CameraMan", "cameraManager")
    44thisscript:addObject("NPC", "Ragnar01")
     5thisscript:addObject("NPC", "Pirate01")
     6thisscript:addObject("NPC", "Pirate02")
     7thisscript:addObject("NPC", "Pirate03")
     8thisscript:addObject("NPC", "Pirate04")
     9thisscript:addObject("NPC", "Pirate05")
     10thisscript:addObject("NPC", "Pirate06")
     11thisscript:addObject("NPC", "Pirate07")
     12-- thisscript:addObject("NPC", "Pirate08")
    513-- thisscript:addObjectAsName("GameWorld", "Mission 1", "gameWorld")
    614
     
    3543triggerRagnar:setDebugDraw(true)
    3644triggerRagnar:setActiveOnCreation(false)
     45
     46-- Create a great AI activater
     47triggerAI01 = ScriptTrigger()
     48triggerAI01:setScript("vs1.lua")
     49triggerAI01:setFunction("activateGroup1")
     50triggerAI01:setRadius(50)
     51triggerAI01:setTarget("Player")
     52triggerAI01:setAbsCoor(2600, 0, 15)
     53triggerAI01:setDebugDraw(true)
     54triggerAI01:setActiveOnCreation(false)
     55
     56-- Create another great AI activater
     57triggerAI02 = ScriptTrigger()
     58triggerAI02:setScript("vs1.lua")
     59triggerAI02:setFunction("activateGroup2")
     60triggerAI02:setRadius(50)
     61triggerAI02:setTarget("Player")
     62triggerAI02:setAbsCoor(4900, 0, 50)
     63triggerAI02:setDebugDraw(true)
     64triggerAI02:setActiveOnCreation(false)
    3765
    3866-- Global Variables
     
    6997end
    7098
    71 if counter > 6 and counter < 7 then
     99if counter > 5 and counter < 6 then
    72100cameraManager:atachCameraToWorldEntity("CameraOne", "NPC", "Pirate03")
    73101cameraManager:setRelCoorSoft("CameraOne", 8, 4 , 3.3, 5)
    74102end
    75103
    76 if counter > 17 then
     104if counter > 14 then
    77105cutsceneEnd = true
    78106cameraManager:setCam("GameWorld-Camera")
     
    89117return true
    90118end
     119
     120function activateGroup1(timestep)
     121
     122Pirate01:setAI(true)
     123Pirate02:setAI(true)
     124Pirate03:setAI(true)
     125
     126return true
     127end
     128
     129function activateGroup2(timestep)
     130
     131Pirate04:setAI(true)
     132Pirate05:setAI(true)
     133Pirate06:setAI(true)
     134
     135return true
     136end
     137
Note: See TracChangeset for help on using the changeset viewer.