// 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 LeveeFailureDroogteWigCrack extends LeveeFailure placeable; #exec OBJ LOAD FILE=NVIDIA_TT_V1.utx function SetFailureOptions() { /// Failure information: Mechanism = FM_ErosionInner; LinkedTile.Mechanism = Mechanism; NL_FailureName = "Droogte Wig"; EN_FailureName = "Drought wigcrack"; super.SetFailureOptions(); LinkedTile.CurrentState = STA_Reportable; } function CreateObjects() { local DynamicMover M; local DynamicMeshActor sMA; local Emitter E; /// ID is the same as the linked object: id = LinkedTile.Name; /// Creating World Objects: /// For the record: The likely center is: -26816.00,9600.00,-384.00 /// For the record: The likely center rotation: 0,0,0 /// Set relative rotation, the original failure was based on a rotation of 0. So now we need to turn it back. SetFailureRelativeRotation(0); M = CreateMover(Location, id$"bigcrack01", StaticMesh'SecDikeSM.droogte_wigscheur.right_outer' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,192.00,-160.00), 1); M.SetKeyRot( rot(0,-48,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"bigcrack02", StaticMesh'SecDikeSM.droogte_wigscheur.left_outer' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(-8.00,-168.00,-160.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"wigscheurscherm", StaticMesh'SecDikeSM.droogte_wigscheur.broken_beschoeing' , 10.00, 4); M.SetKeyPos( RotateVectorNoLocation(135.97,-8.00,40.14), 1); M.SetKeyRot( rot(5072,0,0), 1); M.SetKeyPos( RotateVectorNoLocation(4.00,136.00,-376.00), 2); M.SetKeyRot( rot(-2048,0,0), 2); M.SetKeyPos( RotateVectorNoLocation(30.00,93.00,-419.00), 3); M.SetKeyRot( rot(-2048,0,0), 3); RotationOffset(M, LinkedTile.Rotation, 0,0,0); sMA = CreateMesh(Location, id$"StaticMeshActor", StaticMesh'SecDikeSM.droogte_wigscheur.Base'); RotationOffset(sMA, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"smallcrack01", StaticMesh'SecDikeSM.droogte_wigscheur.inner_vertical' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,0.00,-296.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(Location, id$"smallcrack01", StaticMesh'SecDikeSM.droogte_wigscheur.inner_horizontal' , 10.00, 2); M.SetKeyPos( RotateVectorNoLocation(-36.00,-72.00,-41.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(6.00,0.00,-257.00), id$"largewater", StaticMesh'SecDikeSM.droogte_wigscheur.water_big' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(-5.00,0.00,257.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); //M = CreateMover(RotateVector(-55.75,0.33,-31.99), id$"smallwater", StaticMesh'SecDikeSM.droogte_wigscheur.water_small' , 10.00, 2); //M.SetKeyPos( RotateVectorNoLocation(44.00,12.00,71.00), 1); //M.SetKeyRot( rot(-144,136,0), 1); //RotationOffset(M, LinkedTile.Rotation, 376,0,0); M = CreateMover(RotateVector(32.25,-7.67,-64.00), id$"smallmud", StaticMesh'SecDikeSM.droogte_wigscheur.mud_small' , 10.00, 2); M.SetKeyPos( RotateVectorNoLocation(-92.00,4.00,47.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); M = CreateMover(RotateVector(-16.00,0.00,-384.00), id$"measuresandbagfill", StaticMesh'SecDikeSM.droogte_wigscheur.wig_measure' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(0.00,0.00,384.00), 1); M.SetKeyRot( rot(0,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!!! /// Creating World Objects: E = Spawn(class'LotsOfWaterEmitter'); E.SetLocation(RotateVector(-2502.60,-2107.67,37.00)); E.SetPropertyText("Tag", id$"largewater"); RotationOffset(E, LinkedTile.Rotation, 0,0,0); AddToVIAList(E); E = Spawn(class'SplashCrashEmitterSmallDirectional'); E.SetLocation(RotateVector(-20.25,-2317.33,209.00)); E.SetPropertyText("Tag", id$"largewater"); RotationOffset(E, LinkedTile.Rotation, 0,0,0); AddToVIAList(E); /// Call parent: Super.CreateObjects(); } function CreateTriggers() { local DScriptedTrigger sT; sT = Spawn(class'DScriptedTrigger'); /// Tag is the same as the linked object name: 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, 19); sT.Actions[0] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[0]).PauseTime = 8.00 * speedfactor; sT.Actions[1] = new class'ACTION_IfActive'; ACTION_IfActive(sT.Actions[1]).FailureTag = GetName(id$""); sT.Actions[2] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[2]).PauseTime = 530.00 * speedfactor; sT.Actions[3] = new class'ACTION_IfRelevant'; ACTION_IfRelevant(sT.Actions[3]).FailureTag = GetName(id$""); sT.Actions[4] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[4]).Event = GetName(id$"smallcrack01"); sT.Actions[5] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[5]).PauseTime = 400.00 * speedfactor; sT.Actions[6] = new class'ACTION_IfCritical'; ACTION_IfCritical(sT.Actions[6]).FailureTag = GetName(id$""); sT.Actions[7] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[7]).Event = GetName(id$"bigcrack01"); sT.Actions[8] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[8]).PauseTime = 0.50 * speedfactor; sT.Actions[9] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[9]).Event = GetName(id$"bigcrack02"); sT.Actions[10] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[10]).Event = GetName(id$"smallmud"); sT.Actions[11] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[11]).PauseTime = 280.00 * speedfactor; sT.Actions[12] = new class'ACTION_IfNoRightMeasuresTaken'; ACTION_IfNoRightMeasuresTaken(sT.Actions[12]).FailureTag = GetName(id$""); sT.Actions[13] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[13]).PauseTime = 60.00 * speedfactor; Log("LinkedTile, water mover: " $ LinkedTile.WaterMover.Tag); sT.Actions[14] = new class'ACTION_TriggerEventOnce'; ACTION_TriggerEventOnce(sT.Actions[14]).EventN = LinkedTile.WaterMover.Tag; // GetName(id$"TopPolderWaterMover"); sT.Actions[15] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[15]).Event = GetName(id$"largewater"); sT.Actions[16] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[16]).Event = GetName(id$"wigscheurscherm"); sT.Actions[17] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[17]).PauseTime = 10.00 * speedfactor; sT.Actions[18] = new class'ACTION_EndGame'; } function CreateSignals() { local SignalCrack signal0; local SignalCrack signal1; local SignalCrack signal2; local SignalReportCrack signal0report0; local SignalReportCrack signal1report0; local SignalReportCrack signal2report0; /// Signals information: Signals.Insert(0,3); // done: signal0 = New class'SignalCrack'; signal0.RevetmentType=REV_Grass; signal0.FirstState=STA_Reportable; signal0.CrossCutLocation=CUT_Top; signal0.SignalType=SIG_Crack; signal0.CrackType=CRK_Perpendicular; signal0.SignalReports.insert(0,1); signal0report0 = New class'SignalReportCrack'; signal0report0.GeoState = STA_Reportable; signal0report0.MultipleCracks = GEO_Yes; signal0report0.FlushingSoil = GEO_No; signal0report0.LengthOfDamage = SIZE_VerySmall; signal0report0.LengthOfDamageMax = SIZE_Small; signal0report0.WidthOfDamage = SIZE_VerySmall; signal0report0.WidthOfDamageMax = SIZE_Small; signal0.SignalReports[0] = signal0report0; Signals[0] = signal0; // // done signal1 = New class'SignalCrack'; signal1.RevetmentType=REV_Grass; signal1.FirstState=STA_Relevant; signal1.CrossCutLocation=CUT_Top; signal1.SignalType=SIG_Crack; signal1.CrackType=CRK_Parallel; signal1.SignalReports.insert(0,1); signal1report0 = New class'SignalReportCrack'; signal1report0.GeoState = STA_Relevant; signal1report0.MultipleCracks = GEO_YES; signal1report0.FlushingSoil = GEO_No; signal1report0.LengthOfDamage = SIZE_Small; signal1report0.LengthOfDamageMax = SIZE_MediumLarge; signal1report0.WidthOfDamage = SIZE_Medium; signal1report0.WidthOfDamageMax = SIZE_MediumLarge; signal1.SignalReports[0] = signal1report0; Signals[1] = signal1; // //done signal2 = New class'SignalCrack'; signal2.RevetmentType=REV_Grass; signal2.FirstState=STA_Critical; signal2.CrossCutLocation=CUT_Top; signal2.SignalType=SIG_Crack; signal2.CrackType=CRK_Parallel; signal2.SignalReports.insert(0,1); signal2report0 = New class'SignalReportCrack'; signal2report0.GeoState = STA_Critical; signal2report0.MultipleCracks = GEO_YES; signal2report0.FlushingSoil = GEO_YES; signal2report0.LengthOfDamage = SIZE_Medium; signal2report0.LengthOfDamageMax = SIZE_Large; signal2report0.WidthOfDamage = SIZE_Large; signal2report0.WidthOfDamageMax = SIZE_VeryLarge; 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$"measuresandbagfill"); Msr.bMeasureEffective = True; Msr.MeasureType = MEA_SandbagsTop; Measures[0] = Msr; } function CreateMeasureScripts() { // local DScriptedTrigger sT; } defaultproperties { FailureSize = TS_32M; }