home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Cog Script
- #
- # CC_Mirror.cog
- #
- # Generic Mirror control Script
- #
- # 03/17/98 DGS Created
- #
- #Desc:
- # cog designed to keep the doors from being able to be cut.
- # (C) 1998 Lucas Learning Limited All Rights Reserved
- # ========================================================================================
-
- symbols
- message startup
- message entered
-
- ## ========================= Things
- sector sector0
- sector sector1
- sector sector2
- sector sector3
- sector sector4
- sector sector5
- sector sector6
-
- int say0=0 local
- int say1=0 local
- int say2=0 local
- int say3=0 local
- int say4=0 local
- int say5=0 local
- int say6=0 local
-
- end
-
- # ========================================================================================
-
- code
- startup:
- //sleep(1);
- if (getdifficulty() == 0)
- {
- dwPlayCammySpeech(16001, "T3ca002.wav", 10, 3);
- dwsetreftopic("pulley.tpc");
- }
- if (getdifficulty() == 1)
- {
- dwPlayCammySpeech(16002, "T3ca004.wav", 10, 1);
- }
- if (getdifficulty() == 2)
- {
- dwPlayCammySpeech(16003, "T3ca005.wav", 10, 1);
- }
-
- return;
- entered:
-
- if (getsenderref() == sector0)
- {
- if (say0 == 0)
- {
- say0 = 1;
- dwPlayCammySpeech(16000, "T3ca001.wav", 10, 0);
- print("say0");
- }
- }
- if (getsenderref() == sector1)
- {
- if (say1 == 0)
- {
- say1 = 1;
- //dwPlayCammySpeech(10011, "T3ca017.wav", 10, 0);
- print("say1");
- }
- }
-
-
- return;
-
- end
-
-