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);
- dwPlayCammySpeech(16000, "M4ca001.wav", 10, 0); //This jawa place is a little creepy. And
- return;
- entered:
-
- if (getsenderref() == sector0)
- {
- if (say0 == 0)
- {
- say0 = 1;
- // Not used anymore.
- print("say0");
- }
- }
- if (getsenderref() == sector1)
- {
- if (say1 == 0)
- {
- say1 = 1;
- dwPlayCammySpeech(16011, "M4ca003.wav", 10, 0);
- dwsetreftopic("Reflection.tpc");
- print("say1");
- }
- }
- if (getsenderref() == sector2)
- {
- if (say2 == 0)
- {
- say2 = 1;
- dwPlayCammySpeech(16021, "M4ca019.wav", 10, 0);
- print("say2");
- }
- }
- if (getsenderref() == sector3)
- {
- if (say3 == 0)
- {
- say3 = 1;
- dwPlayCammySpeech(16019, "M4ca017.wav", 10, 0); //It looks broken
- print("say3");
- }
- }
- if (getsenderref() == sector4)
- {
- if (say4 == 0)
- {
- say4 = 1;
- dwPlayCammySpeech(16018, "M4ca016.wav", 10, 0); //It looks broken
- print("say4");
- }
- }
-
-
- return;
-
- end
-
-