// 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 LeveeFailureDroogteMultipleCracks extends LeveeFailure placeable; #exec OBJ LOAD FILE=NVIDIA_TT_V1.utx function SetFailureOptions() { /// Failure information: Mechanism = FM_Micro; LinkedTile.Mechanism = Mechanism; NL_FailureName = "Droogte meerdere scheuren"; EN_FailureName = "Droogte multiple cracks"; 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: -23041.43,9961.17,-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); /// None - NOT FOUND //M = CreateMover(Location, id$"cracks1", StaticMesh'SecDikeSM.droogte_bolscheur.scheur1' , 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); M = CreateMover(Location, id$"cracks2", StaticMesh'SecDikeSM.droogte_bolscheur.scheur2' , 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); sMA = CreateMesh(Location, id$"StaticMeshActor", StaticMesh'SecDikeSM.droogte_bolscheur.bolscheur_base'); RotationOffset(sMA, LinkedTile.Rotation, 0,0,0); sMA = CreateMesh(Location, id$"StaticMeshActor", StaticMesh'SecDikeSM.droogte_bolscheur.grass'); RotationOffset(sMA, LinkedTile.Rotation, 0,0,0); sMA.bUnlit = true; M = CreateMover(RotateVector(-182.00,-71.00,-558.00), id$"MeasureSecMirco4", StaticMesh'SecDikeSM.Measures.Measure_Talud_Micro_Sec' , 1.00, 2); M.SetKeyPos( RotateVectorNoLocation(182.00,71.00,558.00), 1); M.SetKeyRot( rot(0,0,0), 1); RotationOffset(M, LinkedTile.Rotation, 0,0,0); /// Call parent: Super.CreateObjects(); } function CreateTriggers() { local DScriptedTrigger sT; local int pos; 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, 8); 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 = 540.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$"cracks1"); sT.Actions[4] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[4]).PauseTime = 260.00 * speedfactor; sT.Actions[5] = new class'ACTION_TriggerEvent'; ACTION_TriggerEvent(sT.Actions[5]).Event = GetName(id$"cracks2"); /// Add end trigger if we are doing minigames: /// Find "forceend" keyword string: /// After 125 secs: pos = Instr(LinkedTile.extraconfig, "forceend"); if (pos != -1) { sT.Actions[6] = new class'ACTION_WaitForTimer'; ACTION_WaitForTimer(sT.Actions[6]).PauseTime = 60; sT.Actions[7] = new class'ACTION_EndGame'; } } function CreateSignals() { local SignalCrack signal0; local SignalCrack signal1; local SignalReportCrack signal0report0; local SignalReportCrack signal1report0; /// Signals information: Signals.Insert(0,2); /// done signal0 = New class'SignalCrack'; signal0.RevetmentType=REV_Grass; signal0.FirstState=STA_Reportable; signal0.CrossCutLocation=CUT_InnerSlope; signal0.SignalType=SIG_Crack; signal1.CrackType=CRK_Parallel; 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_InnerSlope; 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; /// } function CreateMeasures() { local Measure Msr; /// Creating measures: Measures.Insert(0,1); Msr = New class'Measure'; Msr.SetPropertyText("EventMeasureTaken", id$"MeasureSecMirco4"); Msr.bMeasureEffective = True; Msr.MeasureType = MEA_SandBank_SlakeningSlope; Measures[0] = Msr; } function CreateMeasureScripts() { //local DScriptedTrigger sT; } defaultproperties { FailureSize = TS_16M; }