home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Classic Fond 52
/
ClassicFond52.iso
/
GAMES
/
DROIDW.RAR
/
DWCD.GOB
/
mission_cog_03_pipemove.cog
< prev
next >
Wrap
Text File
|
1998-11-04
|
12KB
|
360 lines
# Droids Cog Script
#
# 03_watermove.cog
#
# Desc:
# Companion cog to Tanks cog. When receiving message from tanks cog, it clears them water sectors.
# For Tank 2 (the med one)
#
# 2/18/98 [JP] Created
#
# (C) 1998 LucasLearningLimited. All Rights Reserved
symbols
message startup
message arrived
message user1
message timer
sector water00
sector water01
sector water02
sector water03
sector water04
sector water05
sector water06
sector water07
sector water08
sector water09
sector water10
sector water11
sector water12
sector water13
sector water14
sector water16
sector water17
sector water18
sector water19
sector water20
sector water21
sector water22
sector water23
sector water24
sector water25
sector water26
sector water27
sector water28
sector water29
sector water30
sector water31
sector water32
sector water33
sector water34
sector water35
sector water36
sector water37
sector water38
sector water39
sector water40
sector water41
sector water42
sector water43
sector water44
sector water45
sector water46
sector water47
sector water48
sector water49
sector water50
sound water_gush
sound ambient=amb00tindust08.wav local
end
# =======================================
## Code Section
code
startup:
sleep(15);
clearvector=vectorset(0, 0, 0);
c2=vectorset(0.4, 0.8, 1.0);
print("uh oh!!");
setsectorflags(water00, 2); //set these sector to water
setsectorflags(water01, 2);
setsectorflags(water02, 2);
setsectorflags(water03, 2);
setsectorflags(water04, 2);
setsectorflags(water05, 2);
setsectorflags(water06, 2);
setsectorflags(water07, 2);
setsectorflags(water08, 2);
setsectorflags(water09, 2);
setsectorflags(water10, 2);
setsectorflags(water11, 2);
setsectorflags(water12, 2);
setsectorflags(water13, 2);
setsectorflags(water14, 2);
setsectorflags(water15, 2);
setsectorflags(water16, 2);
setsectorflags(water17, 2);
setsectorflags(water18, 2);
setsectorflags(water19, 2);
setsectorflags(water20, 2);
setsectorflags(water21, 2);
setsectorflags(water22, 2);
setsectorflags(water23, 2);
setsectorflags(water24, 2);
setsectorflags(water25, 2);
setsectorflags(water26, 2);
setsectorflags(water27, 2);
setsectorflags(water28, 2);
setsectorflags(water29, 2);
setsectorflags(water30, 2);
setsectorflags(water31, 2);
setsectorflags(water32, 2);
setsectorflags(water33, 2);
setsectorflags(water34, 2);
setsectorflags(water35, 2);
setsectorflags(water36, 2);
setsectorflags(water37, 2);
setsectorflags(water38, 2);
setsectorflags(water39, 2);
setsectorflags(water40, 2);
setsectorflags(water41, 2);
setsectorflags(water42, 2);
setsectorflags(water43, 2);
setsectorflags(water44, 2);
setsectorflags(water45, 2);
setsectorflags(water46, 2);
setsectorflags(water47, 2);
setsectorflags(water48, 2);
setsectorflags(water49, 2);
setsectorflags(water50, 2);
setsectortint(water00, c2); //tint these sectors to water
setsectortint(water01, c2);
setsectortint(water02, c2);
setsectortint(water03, c2);
setsectortint(water04, c2);
setsectortint(water05, c2);
setsectortint(water06, c2);
setsectortint(water07, c2);
setsectortint(water08, c2);
setsectortint(water09, c2);
setsectortint(water10, c2);
setsectortint(water11, c2);
setsectortint(water12, c2);
setsectortint(water13, c2);
setsectortint(water14, c2);
setsectortint(water15, c2);
setsectortint(water16, c2);
setsectortint(water17, c2);
setsectortint(water18, c2);
setsectortint(water19, c2);
setsectortint(water20, c2);
setsectortint(water21, c2);
setsectortint(water22, c2);
setsectortint(water23, c2);
setsectortint(water24, c2);
setsectortint(water25, c2);
setsectortint(water26, c2);
setsectortint(water27, c2);
setsectortint(water28, c2);
setsectortint(water29, c2);
setsectortint(water30, c2);
setsectortint(water31, c2);
setsectortint(water32, c2);
setsectortint(water33, c2);
setsectortint(water34, c2);
setsectortint(water35, c2);
setsectortint(water36, c2);
setsectortint(water37, c2);
setsectortint(water38, c2);
setsectortint(water39, c2);
setsectortint(water40, c2);
setsectortint(water41, c2);
setsectortint(water42, c2);
setsectortint(water43, c2);
setsectortint(water44, c2);
setsectortint(water45, c2);
setsectortint(water46, c2);
setsectortint(water47, c2);
setsectortint(water48, c2);
setsectortint(water49, c2);
setsectortint(water50, c2);
return;
user1:
settimer(10);
return;
# =========================================================
timer:
print("watermove1");
clearsectorflags(water00, 2); //control & drain rooms no longer submerged
clearsectorflags(water01, 2);
clearsectorflags(water02, 2);
clearsectorflags(water03, 2);
clearsectorflags(water04, 2);
clearsectorflags(water05, 2);
clearsectorflags(water06, 2);
clearsectorflags(water07, 2);
clearsectorflags(water08, 2);
clearsectorflags(water09, 2);
clearsectorflags(water10, 2);
clearsectorflags(water11, 2);
clearsectorflags(water12, 2);
clearsectorflags(water13, 2);
clearsectorflags(water14, 2);
clearsectorflags(water15, 2);
clearsectorflags(water16, 2);
clearsectorflags(water17, 2);
clearsectorflags(water18, 2);
clearsectorflags(water19, 2);
clearsectorflags(water20, 2);
clearsectorflags(water21, 2);
clearsectorflags(water22, 2);
clearsectorflags(water23, 2);
clearsectorflags(water24, 2);
clearsectorflags(water25, 2);
clearsectorflags(water26, 2);
clearsectorflags(water27, 2);
clearsectorflags(water28, 2);
clearsectorflags(water29, 2);
clearsectorflags(water30, 2);
clearsectorflags(water31, 2);
clearsectorflags(water32, 2);
clearsectorflags(water33, 2);
clearsectorflags(water34, 2);
clearsectorflags(water35, 2);
clearsectorflags(water36, 2);
clearsectorflags(water37, 2);
clearsectorflags(water38, 2);
clearsectorflags(water39, 2);
clearsectorflags(water40, 2);
clearsectorflags(water41, 2);
clearsectorflags(water42, 2);
clearsectorflags(water43, 2);
clearsectorflags(water44, 2);
clearsectorflags(water45, 2);
clearsectorflags(water46, 2);
clearsectorflags(water47, 2);
clearsectorflags(water48, 2);
clearsectorflags(water49, 2);
clearsectorflags(water50, 2);
setsectortint(water00, clearvector);
setsectortint(water01, clearvector);
setsectortint(water02, clearvector);
setsectortint(water03, clearvector);
setsectortint(water04, clearvector);
setsectortint(water05, clearvector);
setsectortint(water06, clearvector);
setsectortint(water07, clearvector);