// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // /* This is the entire interior of the SondeerWagen which can easily be spawned where needed */ class SondeerOffice extends Actor placeable; var OfficeObject omain; var OfficeObject odeur; var OfficeObject ohandboek; //var OfficeObject okalender; var OfficeObject opaspoort; var OfficeObject opc1; var OfficeObject opc2; var OfficeObject_Radio oradio; var OfficeObject owhiteboard; var OfficeObject owindow; var OfficeObject okleistaven; var OfficeObject oklok; function PostBeginPlay() { SpawnActors(); } /// Spawn our interior actors /// Tags are used in "MouseItemInteraction.uc", which opens all the dialogs as well. function SpawnActors() { omain = Spawn(class'OfficeObject', self, 'main',Location,Rotation); odeur = Spawn(class'OfficeObject', self, 'officedeur',Location,Rotation); ohandboek = Spawn(class'OfficeObject', self, 'handboek',Location,Rotation); //okalender = Spawn(class'OfficeObject', self, 'kalender',Location,Rotation); opaspoort = Spawn(class'OfficeObject', self, 'paspoort',Location,Rotation); opc1 = Spawn(class'OfficeObject', self, 'opdrachtcomputer',Location,Rotation); opc2 = Spawn(class'OfficeObject', self, 'opdrachtcomputer',Location,Rotation); oradio = Spawn(class'OfficeObject_Radio', self, 'radio',Location,Rotation); owhiteboard = Spawn(class'OfficeObject', self, 'whiteboard',Location,Rotation); okleistaven = Spawn(class'OfficeObject', self, 'kleistaven',Location,Rotation); oklok = Spawn(class'OfficeObject_Klok', self, 'kleistaven',Location,Rotation); owindow = Spawn(class'OfficeObject', self, '',Location,Rotation); owindow.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_window'); owindow.bMouseEnabled = false; omain.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_main'); omain.bMouseEnabled = false; odeur.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_deur' ); ohandboek.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_handboek' ); //okalender.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_kalender' ); opaspoort.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_paspoort' ); opc1.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_pc01' ); opc2.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_pc02' ); oradio.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_radio' ); owhiteboard.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_whiteboard' ); okleistaven.SetStaticMesh( StaticMesh'SondeerMeester2.office.kantoor_kleistaven' ); } event Destroyed() { Super.Destroyed(); DestroyInteriorActors(); } function DestroyInteriorActors() { // local TriggerLight l; omain.destroy(); odeur.destroy(); ohandboek.destroy(); //okalender.destroy(); opaspoort.destroy(); opc1.destroy(); opc2.destroy(); oradio.destroy(); owhiteboard.destroy(); owindow.destroy(); okleistaven.destroy(); oklok.destroy(); /// Find lights if needed: GeoPlayerController(Level.GetLocalPlayerController()).TriggerActions("destroylight"); // ForEach AllActors( class 'TriggerLight', L, 'removelight') // { // Log("Destroy light"); // L.Destroy(); // } } defaultproperties { StaticMesh=StaticMesh'SondeerMeester2.office.kantoor_main_leeg' DrawType=DT_StaticMesh bBlockActors = true; bBlockPlayers = true; bBlockKarma = true; bCollideActors = true; }