Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3947


Ignore:
Timestamp:
Jun 29, 2006, 5:30:53 PM (18 years ago)
Author:
snellen
Message:

continued implementation…

Location:
data/branches/single_player_map
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • data/branches/single_player_map/scripts/guard.lua

    r3946 r3947  
    11-- Global Variables
    2 walkingRouteOne = false   -- True if thestranger is walking route one
     2walkingRouteOne = true   -- True if thestranger is walking route one
    33exitPositionReached = false
    44playerInLock = false
     
    2222playerZ = Player:getAbsCoorZ()
    2323
    24 playerInLock = false
     24if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then
     25playerInLock = true
    2526end
    2627
     28end
     29
     30routeOneProgrammed = false
    2731function walkRouteOne(timestep)
    2832
     33if not routeOneProgrammed then
     34io.write("Guard called \n")
     35guard:walkTo(-154.592667, 80.000000, 231.381805)
     36routeOneProgrammed = true
     37end
    2938
    3039end
     
    5261
    5362if walkingRouteOne then
    54 waklRouteOne(timestep)
     63walkRouteOne(timestep)
    5564end
    5665
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3937 r3947  
    1818
    1919    <Script>
    20      <file>thestranger.lua</file>
    21      <object>GenericNPC, thestranger</object>
    22     </Script>
    23 
     20     <file>guard.lua</file>
     21     <object>GenericNPC, guard</object>
     22     <object>FPSPlayer, Player</object>
     23    </Script>
     24
     25    <Script>
     26     <file>secondguard.lua</file>
     27     <object>GenericNPC, secondguard</object>
     28     <object>FPSPlayer, Player</object>
     29     <object>GenericNPC, Prisoner</object>
     30    </Script>
     31
     32    <Script>
     33     <file>prisoner.lua</file>
     34     <object>GenericNPC, Prisoner</object>
     35     <object>FPSPlayer, Player</object>
     36    </Script>
     37
     38    <Script>
     39     <file>secondprisoner.lua</file>
     40     <object>GenericNPC, Secondprisoner</object>
     41     <object>FPSPlayer, Player</object>
     42    </Script>
     43
     44    <Script>
     45     <file>falldown.lua</file>
     46     <object>GenericNPC, Fallingguy </object>
     47     <object>FPSPlayer, Player</object>
     48    </Script>
     49
     50    <Script>
     51     <file>spaceship.lua</file>
     52     <object>Claw, spaceshipclaw</object>
     53     <object>RepairStation, repair</object>
     54     <object>FPSPlayer, Player</object>
     55     <object>SpaceShip, spaceship</object>
     56    </Script>
    2457   
    2558   </Scripts>
     
    3467     <radius>100</radius>
    3568     <worldentity>Player</worldentity>
    36      <triggerlasts>true</triggerlasts>
    37      <debugdraw>true</debugdraw>
    38      <addtoscript>true</addtoscript>
     69     <debugdraw>true</debugdraw>
    3970    </ScriptTrigger>
    4071
    4172    <ScriptTrigger>
    42      <name>strangerTrigger</name>
    43      <file>thestranger.lua</file>
    44      <function>tick</function>
    45      <abs-coor>-84, 19, 77</abs-coor>
    46      <radius>100</radius>
    47      <worldentity>Player</worldentity>
    48      <triggerlasts>true</triggerlasts>
    49      <debugdraw>true</debugdraw>
    50      <addtoscript>true</addtoscript>
    51     </ScriptTrigger>
    52 
     73     <name>guardtrigger</name>
     74     <file>guard.lua</file>
     75     <function>tick</function>
     76     <abs-coor>-84, 19, 77</abs-coor>
     77     <radius>100</radius>
     78     <worldentity>Player</worldentity>
     79     <debugdraw>true</debugdraw>
     80    </ScriptTrigger> 
     81
     82    <ScriptTrigger>
     83     <name>secondguardtrigger</name>
     84     <file>secondguard.lua</file>
     85     <function>tick</function>
     86     <abs-coor>-84, 19, 77</abs-coor>
     87     <radius>100</radius>
     88     <worldentity>Player</worldentity>
     89     <debugdraw>true</debugdraw>
     90    </ScriptTrigger> 
     91
     92    <ScriptTrigger>
     93     <name>prisonertrigger</name>
     94     <file>prisoner.lua</file>
     95     <function>tick</function>
     96     <abs-coor>-84, 19, 77</abs-coor>
     97     <radius>100</radius>
     98     <worldentity>Player</worldentity>
     99     <debugdraw>true</debugdraw>
     100    </ScriptTrigger>
    53101
    54102   <ScriptTrigger>
    55      <name>panicTrigger</name>
    56      <file>thestranger.lua</file>
    57      <function>togglePanic</function>
    58      <abs-coor>262, 19, 178</abs-coor>
    59      <radius>10</radius>
    60      <worldentity>thestranger</worldentity>
    61      <triggerlasts>false</triggerlasts>
    62      <debugdraw>true</debugdraw>
    63      <addtoscript>false</addtoscript>
     103     <name>secondprisonertrigger</name>
     104     <file>secondprisoner.lua</file>
     105     <function>tick</function>
     106     <abs-coor>-84, 19, 77</abs-coor>
     107     <radius>100</radius>
     108     <worldentity>Player</worldentity>
     109     <debugdraw>true</debugdraw>
     110    </ScriptTrigger> 
     111
     112    <ScriptTrigger>
     113     <name>spaceshiptrigger</name>
     114     <file>spaceship.lua</file>
     115     <function>tick</function>
     116     <abs-coor>-84, 19, 77</abs-coor>
     117     <radius>100</radius>
     118     <worldentity>Player</worldentity>
     119     <debugdraw>true</debugdraw>
    64120    </ScriptTrigger>
    65121
     
    78134    </SkyBox>
    79135
    80      <Door>
    81      <abs-coor>159, 80, 283</abs-coor>
    82      </Door>
    83 
    84136    <BspEntity>
    85137      <Name>worlds/bsp/single_player_proto_world_01.bsp</Name>
     
    87139
    88140    <GenericNPC>
    89        <name>thestranger</name>
    90        <model>models/creatures/doom_guy.md2, 10</model>
    91        <md2texture>doom_guy.png</md2texture>
    92        <abs-coor>-120, 29, 208</abs-coor>
    93        <abs-dir>-1.55, 0, 1, 0</abs-dir>
     141       <name>guard</name>
     142       <model>models/creatures/doom_guy.md2, 10</model>
     143       <md2texture>doom_guy.png</md2texture>
     144       <abs-coor>275.33, 29, 241.26</abs-coor>
     145       <abs-dir>-3.1, 0, 1, 0</abs-dir>
     146    </GenericNPC>
     147
     148    <GenericNPC>
     149       <name>secondguard</name>
     150       <model>models/creatures/doom_guy.md2, 10</model>
     151       <md2texture>doom_guy.png</md2texture>
     152       <abs-coor>440, 55, 180</abs-coor>
     153       <abs-dir>-3.1, 0, 1, 0</abs-dir>
     154    </GenericNPC>
     155   
     156    <GenericNPC>
     157       <name>statist</name>
     158       <model>models/creatures/doom_guy.md2, 10</model>
     159       <md2texture>doom_guy.png</md2texture>
     160       <abs-coor>-58, 29, 496</abs-coor>
     161       <abs-dir>0, 0, 1, 0</abs-dir>
     162    </GenericNPC>
     163
     164    <GenericNPC>
     165       <name>statist2</name>
     166       <model>models/creatures/doom_guy.md2, 10</model>
     167       <md2texture>doom_guy.png</md2texture>
     168       <abs-coor>-65, 29, 528</abs-coor>
     169       <abs-dir>0, 0, 1, 0</abs-dir>
    94170    </GenericNPC>
    95171
     
    103179    <FPSPlayer>
    104180      <name>Player</name>
    105       <abs-coor>-148,80,87</abs-coor>
     181      <abs-coor>-148,49,87</abs-coor>
    106182      <model>models/creatures/droidika.md2, 5</model>
    107183      <md2texture>droidika.png</md2texture>
Note: See TracChangeset for help on using the changeset viewer.