home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_02_bafflemix.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
2KB
|
97 lines
symbols
message startup
message timer
message user1
message pulse
message entered
thing baffle1a
thing baffle2a
thing baffle2b
thing baffle3a
thing baffle3b
thing baffle3c
int position=0
sector triggersector
end
code
startup:
ct1=0;
position=0;
position2=0;
call Xrotate;
return;
Xrotate:
position=position+1;
rotatepivot(baffle2a, 1, 1);
rotatepivot(baffle2b, 1, 0.9);
rotatepivot(baffle3a, 1, 1);
rotatepivot(baffle3b, 1, 0.9);
rotatepivot(baffle3c, 1, 0.95);
settimer(2);
return;
Yrotate:
position2=position2+1;
if (position==1) {
rotatepivot(baffle1a, 1, 0.1);
rotatepivot(baffle2a, 1, 0.1);
rotatepivot(baffle3a, 1, 0.1);
}
else if (position==2) {
rotatepivot(baffle1a, 1, 0.1);
rotatepivot(baffle2b, 1, 0.11);
rotatepivot(baffle3c, 1, 0.13);
}
else if (position==3) {
rotatepivot(baffle1a, 1, 0.1);
rotatepivot(baffle2b, 1, 0.11);
rotatepivot(baffle3c, 1, 0.13);
}
else if (position==4) {
rotatepivot(baffle3a, 1, 0.13);
rotatepivot(baffle2b, 1, 0.13);
}
return;
pulse:
if (position2>4) setpulse(0);
else call Yrotate;
return;
timer:
if (position<3) call Xrotate;
return;
user1:
call Yrotate;
setpulse(0.5);
if (ct==0) ct=1;
return;
entered:
if (ct==1) {
ct=2;
dwplaycammyspeech(16009, "m2ca009.wav", 20, 2);
dwSetRefTopic("Reflection.tpc");
}
return;
end