// September 2015 // Levee Patroller / Dijk Patrouille // This source file is (c) by Deltares. This source file is open source but only available to select users. Do not redistribute without written permission of Stichting Deltares, Delft, The Netherlands. // This header has been automatically generated. class LeveeFailureMicro extends LeveeFailure placeable; #exec OBJ LOAD FILE=HumanLandscapeSM.usx function SetFailureOptions() { /// Failure information: Mechanism = FM_Micro; LinkedTile.Mechanism = Mechanism; NL_FailureName = "Microstabiliteit"; EN_FailureName = "Microstability"; super.SetFailureOptions(); LinkedTile.CurrentState = STA_Reportable; } function CreateObjects() { local DynamicMover M; //local DynVariableTimedMover Mv; local DynamicMeshActor sMA; //local Emitter E; //local vector t; /// ID is the same as the linked object: id = LinkedTile.Name; /// Creating World Objects: /// For the record: The likely center is: -5321.01,-3544.44,-384.00 /// For the record: The likely center rotation: 0,16384,0 /// Set relative rotation, the original failure was based on a rotation of -16384. So now we need to turn it back. SetFailureRelativeRotation(-16384); sMA = CreateMesh(RotateVector(-0.00,-0.00,0.00), id$"StaticMeshActor", StaticMesh'SecDikeSM.MicroStab.MicroLevee'); RotationOffset(sMA, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(0.00,-0.00,0.00), id$"start_sand_LRB", StaticMesh'SecDikeSM.MicroStab.Micro_FirstMud' , 25.00, 2); M.SetKeyPos( RotateVectorNoLocation(19.90,-522.95,-40.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(0.00,-0.00,0.00), id$"start_sand_largeB", StaticMesh'SecDikeSM.MicroStab.Micro_SecondMud' , 40.00, 2); M.SetKeyPos( RotateVectorNoLocation(-31.58,-200.75,26.72), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(823.44,-1593.30,0.82), id$"start_watersheetB", StaticMesh'ArnesEnvironmentSM.Other.WaterPool' , 180.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.01,-0.03,7.68), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(561.00,-863.00,228.00), id$"start_sand_pileB", StaticMesh'SecDikeSM.MicroStab.Micro_FirstMud' , 100.00, 2); M.SetDrawScale(0.30); M.SetKeyPos( RotateVectorNoLocation(-11.10,-50.95,-89.98), 1); M.SetKeyRot( rot(-2048,0,0), 1); M.AttachTag = GetName(id$"firstcircleB"); M.SetBase(GetActor(M.AttachTag), vect(0,0,1)); RotationOffset(M, LinkedTile.Rotation, 4096,0,0); M = CreateMover(RotateVector(0.00,-212.00,-398.00), id$"MeasureSecMirco", StaticMesh'SecDikeSM.Measures.Measure_Talud_Micro_Sec' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(-50.00,212.00,398.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,-65536,0); M = CreateMover(Location, id$"secondcircleB", StaticMesh'SecDikeSM.MicroStab.Micro_SecondSlide' , 35.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,0.00,-505.00), 1); M.SetKeyRot( rot(-3072,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"firstcircleB", StaticMesh'SecDikeSM.MicroStab.Micro_FirstSlide' , 40.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,-150.00,-629.00), 1); M.SetKeyRot( rot(-3072,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"thirdcircleB", StaticMesh'SecDikeSM.MicroStab.Micro_ThirdSlide' , 30.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,0.00,-498.00), 1); M.SetKeyRot( rot(-3072,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"fourthcircleB", StaticMesh'SecDikeSM.MicroStab.Micro_FourthSlide' , 35.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.26,0.00,-469.28), 1); M.SetKeyRot( rot(-3072,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); /// CHECK AT THE BOTTOM OF THIS FILE FOR ADDITIONAL OBJECTS CREATED IN THE 2ND PASS!!! /// Call parent: Super.CreateObjects(); } function CreateTriggers() { local DScriptedTrigger sT; local int pos; sT = Spawn(class'DScriptedTrigger'); /// Tag is the same as the linked object: sT.Tag = GetFailureName(); FailureScript = sT; /// Store in public leveetile var. /// Position is the same as the linked object: sT.SetLocation(LinkedTile.Location); sT.Actions.insert(0, 21); sT.Actions[0] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[0]).PauseTime = 10.00 * speedfactor; sT.Actions[1] = new class'ACTION_IfActive'; ACTION_IfActive(sT.Actions[1]).FailureTag = GetName(id$""); sT.Actions[2] = new class'ACTION_SetHidden'; ACTION_SetHidden(sT.Actions[2]).HideActorTag = GetName(id$"start_horzcrackB"); ACTION_SetHidden(sT.Actions[2]).bHidden = True; sT.Actions[3] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[3]).PauseTime = 600.00 * speedfactor; sT.Actions[4] = new class'ACTION_IfRelevant'; ACTION_IfRelevant(sT.Actions[4]).FailureTag = GetName(id$""); sT.Actions[5] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[5]).Event = GetName(id$"start_sand_pileB"); sT.Actions[6] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[6]).Event = GetName(id$"start_watersheetB"); sT.Actions[7] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[7]).PauseTime = 300.00 * speedfactor; sT.Actions[8] = new class'ACTION_IfCritical'; ACTION_IfCritical(sT.Actions[8]).FailureTag = GetName(id$""); sT.Actions[9] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[9]).Event = GetName(id$"firstcircleB"); sT.Actions[10] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[10]).Event = GetName(id$"start_sand_largeB"); sT.Actions[11] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[11]).Event = GetName(id$"start_sand_LRB"); sT.Actions[12] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[12]).PauseTime = 5.00 * speedfactor; sT.Actions[13] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[13]).Event = GetName(id$"secondcircleB"); sT.Actions[14] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[14]).PauseTime = 5.00 * speedfactor; sT.Actions[15] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[15]).Event = GetName(id$"thirdcircleB"); sT.Actions[16] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[16]).PauseTime = 5.00 * speedfactor; sT.Actions[17] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[17]).Event = GetName(id$"fourthcircleB"); sT.Actions[18] = new class'ACTION_IfNoRightMeasuresTaken'; ACTION_IfNoRightMeasuresTaken(sT.Actions[18]).FailureTag = GetName(id$""); /// Add end trigger if we are doing minigames: /// Find "forceend" keyword string: /// After 125 secs: pos = Instr(LinkedTile.extraconfig, "forceend"); if (pos != -1) { Log("Force end found!"); sT.Actions[19] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[19]).PauseTime = 30; sT.Actions[20] = new class'ACTION_EndGame'; } } function CreateSignals() { local SignalCrack signal0; local SignalReportCrack signal0report0; local SignalWaterOutflow signal1; local SignalReportWaterOutflow signal1report0; local SignalReportWaterOutflow signal1report1; local SignalLiquefaction signal2; local SignalReportLiquefaction signal2report0; /// Signals information: Signals.Insert(0,3); signal0 = New class'SignalCrack'; signal0.CrackType=CRK_Parallel; signal0.CrossCutLocation=CUT_InnerSlope; signal0.RevetmentType=REV_Grass; signal0.SignalReports.insert(0,1); signal0report0 = New class'SignalReportCrack'; signal0report0.FlushingSoil = GEO_No; signal0report0.GeoState = STA_Reportable; signal0report0.LengthOfDamage = SIZE_VerySmall; signal0report0.LengthOfDamageMax = SIZE_Small; signal0report0.MultipleCracks = GEO_No; signal0report0.WidthOfDamage = SIZE_VerySmall; signal0report0.WidthOfDamageMax = SIZE_MediumLarge; signal0.SignalReports[0] = signal0report0; Signals[0] = signal0; signal1 = New class'SignalWaterOutflow'; signal1.CrossCutLocation=CUT_InnerSlope; signal1.SignalReports.insert(0,2); signal1report0 = New class'SignalReportWaterOutflow'; signal1report0.CurrentSpeed = SPE_Slow; signal1report0.FlushingSoil = GEO_No; signal1report0.GeoState = STA_Reportable; signal1report0.LengthOfDamage = SIZE_VerySmall; signal1report0.LengthOfDamageMax = SIZE_Small; signal1report0.MultipleLocations = GEO_No; signal1report0.WaterFlowOut = QUA_Little; signal1report0.WidthOfDamage = SIZE_VerySmall; signal1report0.WidthOfDamageMax = SIZE_Small; signal1.SignalReports[0] = signal1report0; signal1report1 = New class'SignalReportWaterOutflow'; signal1report1.CurrentSpeed = SPE_Slow; signal1report1.FlushingSoil = GEO_Yes; signal1report1.FlushingSoilQuantity = QUA_Little; signal1report1.GeoState = STA_Relevant; signal1report1.LengthOfDamage = SIZE_VerySmall; signal1report1.LengthOfDamageMax = SIZE_Small; signal1report1.MultipleLocations = GEO_yes; signal1report1.WaterFlowOut = QUA_Little; signal1report1.WidthOfDamage = SIZE_VerySmall; signal1report1.WidthOfDamageMax = SIZE_Small; signal1.SignalReports[1] = signal1report1; Signals[1] = signal1; signal2 = New class'SignalLiquefaction'; signal2.CrossCutLocation=CUT_InnerSlope; signal2.FirstState=STA_Critical; signal2.SignalReports.insert(0,1); signal2report0 = New class'SignalReportLiquefaction'; signal2report0.FlushingSoil = GEO_Yes; signal2report0.FlushingSoilQuantity = QUA_Much; signal2report0.GeoState = STA_Critical; signal2report0.LengthOfDamage = SIZE_Medium; signal2report0.LengthOfDamageMax = SIZE_Large; signal2report0.SoilPartsMoving = GEO_Yes; signal2report0.WidthOfDamage = SIZE_Medium; signal2report0.WidthOfDamageMax = SIZE_Large; signal2.SignalReports[0] = signal2report0; Signals[2] = signal2; } function CreateMeasures() { local Measure Msr; /// Creating measures: Measures.Insert(0,1); Msr = New class'Measure'; Msr.SetPropertyText("EventMeasureTaken", id$"MeasureSecMirco"); Msr.bMeasureEffective = True; Msr.MeasureType = MEA_SandBank_SlakeningSlope; Measures[0] = Msr; } defaultproperties { FailureSize = TS_16M; }