Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3966


Ignore:
Timestamp:
Jun 30, 2006, 6:24:01 PM (18 years ago)
Author:
snellen
Message:

implemented fallingguy

Location:
data/branches/single_player_map
Files:
6 edited

Legend:

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

    r3962 r3966  
    1 
     1dy = 0
    22randTime = 0
    33eventFinished = false
     
    1515
    1616function fallDown(timestep)
     17dy = dy + timestep*0.01
     18thisX = fallingguy:getAbsCoorX()
     19thisY = fallingguy:getAbsCoorY()
     20thisZ = fallingguy:getAbsCoorZ()
    1721
     22fallingguy:setAbsCoor(thisX, thisY - dy, thisZ)
     23
     24if thisY < 0 then
    1825eventFinished = true
     26end
     27
    1928end
    2029
     
    2736randTime = randTime - timestep
    2837else
    29 --io.write("Falldown called \n")
    3038fallDown(timestep)
    3139end
  • data/branches/single_player_map/scripts/floorguy.lua

    r3965 r3966  
    11
    22programRoute = true
    3 
     3height = 80
    44
    55function tick(timestep)
  • data/branches/single_player_map/scripts/guard.lua

    r3965 r3966  
    55hangarReached = false
    66
    7 height = 29
     7height = 80
    88
    99-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
  • data/branches/single_player_map/scripts/prisoner.lua

    r3965 r3966  
    99
    1010randTime = 0
    11 height = 29
     11height = 80
    1212
    1313
  • data/branches/single_player_map/scripts/secondguard.lua

    r3965 r3966  
    66hangarReached = false
    77
    8 height = 29
     8height = 100
    99
    1010-- Returns the distance between (x1,x2,x3) and (y1,y2,y3)
  • data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw

    r3965 r3966  
    4646    <Script>
    4747     <file>falldown.lua</file>
    48      <object>GenericNPC, Fallingguy </object>
     48     <object>TestEntity, fallingguy </object>
    4949     <object>FPSPlayer, Player</object>
    5050    </Script>
     
    7272     <file>falldown.lua</file>
    7373     <function>tick</function>
    74      <abs-coor>-84, 19, 77</abs-coor>
     74     <abs-coor>763, 0, 34</abs-coor>
    7575     <radius>100</radius>
    7676     <worldentity>Player</worldentity>
     
    8585     <radius>100</radius>
    8686     <worldentity>Player</worldentity>
    87      <debugdraw>true</debugdraw>
    8887    </ScriptTrigger> 
    8988
     
    9594     <radius>100</radius>
    9695     <worldentity>Player</worldentity>
    97      <debugdraw>true</debugdraw>
    9896    </ScriptTrigger> 
    9997
     
    105103     <radius>100</radius>
    106104     <worldentity>Player</worldentity>
    107      <debugdraw>true</debugdraw>
    108105    </ScriptTrigger>
    109106
     
    115112     <radius>100</radius>
    116113     <worldentity>Player</worldentity>
    117      <debugdraw>true</debugdraw>
    118114    </ScriptTrigger> 
    119115
     
    129125
    130126
    131 <ScriptTrigger>
     127    <ScriptTrigger>
    132128     <name>floorguytrigger</name>
    133129     <file>floorguy.lua</file>
    134130     <function>tick</function>
    135      <abs-coor>-84, 19, 77</abs-coor>
    136      <radius>100</radius>
    137      <worldentity>Player</worldentity>
    138      <debugdraw>true</debugdraw>
     131     <abs-coor>576.753357, 19, 508.746613</abs-coor>
     132     <radius>100</radius>
     133     <worldentity>Player</worldentity>
    139134    </ScriptTrigger>
    140135
     
    212207       <abs-dir>0, 0, 1, 0</abs-dir>
    213208    </GenericNPC>
     209
     210
     211   <TestEntity>
     212       <name>fallingguy</name>
     213       <model>models/creatures/doom_guy.md2, 10</model>
     214       <md2texture>doom_guy.png</md2texture>
     215       <abs-coor>620.5, 500, -750</abs-coor>
     216       <abs-dir>-1.55, 0, 0, 1</abs-dir>
     217    </TestEntity>
    214218
    215219    <Door>
Note: See TracChangeset for help on using the changeset viewer.