// 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 MovingWaterVolume to make water volumes move one flood rise // // 2007-01-22 Bas Fixed timer bug when player jump into a MWV //============================================================================= class MovingWaterVolume extends WaterVolume; var bool bEnteredVolume; var GeoPlayerController GeoPC; //============================================================================= // When the player has previously entered the MovingWaterVolume, then start the // timer after the player is back on the surface. // // Date Id Modification // 2007-01-22 Bas Created //============================================================================= event touch(Actor Other){ Super.touch(Other); if(bEnteredVolume){ bEnteredVolume = false; ForEach DynamicActors(Class'GeoPlayerController', GeoPC){ GeoPC.startTimer(); } } } //============================================================================= // Date Id Modification // 2007-01-22 Bas Created //============================================================================= event PawnEnteredVolume(Pawn Other){ if(Other.IsPlayerPawn()){ bEnteredVolume = true; Super.PawnEnteredVolume(Other); } } defaultproperties{ bStatic=False; bEnteredVolume=false; };