Changeset 3947
- Timestamp:
- Jun 29, 2006, 5:30:53 PM (18 years ago)
- 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 1 1 -- Global Variables 2 walkingRouteOne = false -- True if thestranger is walking route one2 walkingRouteOne = true -- True if thestranger is walking route one 3 3 exitPositionReached = false 4 4 playerInLock = false … … 22 22 playerZ = Player:getAbsCoorZ() 23 23 24 playerInLock = false 24 if dist( playerX,playerY,playerZ,161.76,49,358.87 ) < 60 then 25 playerInLock = true 25 26 end 26 27 28 end 29 30 routeOneProgrammed = false 27 31 function walkRouteOne(timestep) 28 32 33 if not routeOneProgrammed then 34 io.write("Guard called \n") 35 guard:walkTo(-154.592667, 80.000000, 231.381805) 36 routeOneProgrammed = true 37 end 29 38 30 39 end … … 52 61 53 62 if walkingRouteOne then 54 wa klRouteOne(timestep)63 walkRouteOne(timestep) 55 64 end 56 65 -
data/branches/single_player_map/worlds/sp_level_ambush_at_jupiter.oxw
r3937 r3947 18 18 19 19 <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> 24 57 25 58 </Scripts> … … 34 67 <radius>100</radius> 35 68 <worldentity>Player</worldentity> 36 <triggerlasts>true</triggerlasts> 37 <debugdraw>true</debugdraw> 38 <addtoscript>true</addtoscript> 69 <debugdraw>true</debugdraw> 39 70 </ScriptTrigger> 40 71 41 72 <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> 53 101 54 102 <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> 64 120 </ScriptTrigger> 65 121 … … 78 134 </SkyBox> 79 135 80 <Door>81 <abs-coor>159, 80, 283</abs-coor>82 </Door>83 84 136 <BspEntity> 85 137 <Name>worlds/bsp/single_player_proto_world_01.bsp</Name> … … 87 139 88 140 <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> 94 170 </GenericNPC> 95 171 … … 103 179 <FPSPlayer> 104 180 <name>Player</name> 105 <abs-coor>-148, 80,87</abs-coor>181 <abs-coor>-148,49,87</abs-coor> 106 182 <model>models/creatures/droidika.md2, 5</model> 107 183 <md2texture>droidika.png</md2texture>
Note: See TracChangeset
for help on using the changeset viewer.