// // CPT operator / SondeerGame // This source file is (c) by Deltares. // - October 2014 // class StuckVolume extends BlockingVolume; event touch(Actor Other) { Super.Touch(Other); if (Sondeerwagen(Other) != None) { /// Keep braking: // getController().bSticky = true; GeoPlayerController(Sondeerwagen(Other).Controller).SetSticky(true); getController().fStickyFactor = 0.025; } } event untouch(Actor Other) { Super.UnTouch(Other); if (Sondeerwagen(Other) != None) { /// Keep braking: GeoPlayerController(Sondeerwagen(Other).Controller).SetSticky(false); //getController().bSticky = false; } } function SondeerWagen getController() { local SondeerWagen A; ForEach DynamicActors( class 'SondeerWagen', A,) { return A; } } defaultproperties { bBlockZeroExtentTraces=false bWorldGeometry=true bCollideActors=True bBlockActors=True bBlockPlayers=True bBlockKarma=True }