home *** CD-ROM | disk | FTP | other *** search
- # Jedi Knight Cog Script
- #
- # 00_Door.cog
- #
- # Generic Door Script
- #
- # [IS]
- #
- # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
- # ========================================================================================
-
- symbols
- message user7
- message arrived
- message timer
-
- thing waterA1 linkid=1 mask=0x405
- //thing waterA2 linkid=1 mask=0x405
-
- //thing waterB1
- //thing waterB4
-
- thing camera2
-
- float moveSpeed=0.5
- float sleepTime=2.0
- float lightValue=0.5
-
- sound wmove=wtr03wtrdrn.wav local
-
- vector v1 desc=thrust_direction
- sector lastwater
-
- thing door
-
- sound hstop=wtr03wtrdrnstp.wav local
-
- end
-
- # ========================================================================================
-
- code
-
- user7:
- // setcamerafocii(2, waterA1, camera2);
- MovetoFrame(waterA1, 1, 1.1);
- dwplaycammyspeech(16035, "M3CA031.wav", 5, 2); //c alright! hatch drain ctrl rm!
- wmovei=playsoundlocal(wmove, 1, 0, 0x1);
-
-
- //setcamerafocus(0, camera2);
- //setcurrentcamera(0);
- dwfreezeplayer();
- print("playerfreeze");
- settimer(1);
- // movetoframe(camera2, 1, 1);
- //MoveToFrame(waterA1, 1, moveSpeed);
- //MoveToFrame(waterB1, 1, .2);
- MoveToFrame(door, 1, 5);
- return;
-
- timer:
- setcamerafocus(0, camera2);
- setcurrentcamera(0);
- //SetActorFlags(GetLocalPlayerThing(), 0xa00000);
- movetoframe(camera2, 1, 0.1); //LL
- return;
-
- arrived:
- if (getsenderid()== 1)
- {
- print("UNFREEZE Lala");
- dwunfreezeplayer();
- setcurrentcamera(7);
- sectorthrust(lastwater, v1, 4);
- print("thrust");
- playsoundlocal(hstop, 1, 0, 0);
- stopsound(wmovei, 0.5);
- }
- return;
-
-
-
-
- end
-
-