home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_t2_conveyorhard.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
82 lines
# Jedi Knight Cog Script
#
# 00_conveyor.cog
#
# generic conveyor belt script
#
# This script will control 1-8 conveyor belts moving in the same direction
# and with the same velocity. The conveyors run continuously.
#
# [IS]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message startup
message pulse
flex animspeed
int numcells
vector vec0 desc=conveyor_direction
float speed=2.0 desc=conveyor_speed
surface convey0 nolink
surface convey1 nolink
surface convey2 nolink
surface convey3 nolink
surface convey4 nolink
surface convey5 nolink
surface convey6 nolink
surface convey7 nolink
surface wall0
surface wall1
surface wall2
surface wall3
surface wall4
surface wall5
surface wall6
surface wall7
surface wall8
surface wall9
int garbage local
int cnt local
end
# ========================================================================================
code
startup:
if (getdifficulty==2) {
for (cnt = 0; cnt<=7; cnt=cnt+1) {
if (convey0[cnt] >= 0) garbage=slidewall(convey0[cnt], vec0, speed);
}
setpulse(animspeed);
cellnumb=0;
}
return;
pulse:
if (cellnumb==(numcells-1)) cellnumb=0;
else cellnumb=cellnumb+1;
setwallcel(wall0, cellnumb);
setwallcel(wall1, cellnumb);
setwallcel(wall2, cellnumb);
setwallcel(wall3, cellnumb);
setwallcel(wall4, cellnumb);
setwallcel(wall5, cellnumb);
setwallcel(wall6, cellnumb);
setwallcel(wall7, cellnumb);
setwallcel(wall8, cellnumb);
setwallcel(wall9, cellnumb);
return;
end