Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

JBToolbox.JBVolumeBlockTransloc


00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
// ============================================================================
// JBVolumeBlockTransloc
// Copyright 2004 by tarquin
// $Id: JBVolumeBlockTransloc.uc,v 1.3 2004/05/23 08:41:08 tarquin Exp $
//
// Destroys a translocator puck that tries to enter or 
// that is fired from inside.
// ============================================================================


class JBVolumeBlockTransloc extends Volume;


// ============================================================================
// Touch
// ============================================================================

simulated event Touch( Actor Other )
{
  local xEmitter MyDestroyEffect;
  
  if( TransBeacon(Other) != None ) {
    if( Level.NetMode != NM_DedicatedServer ) {
      MyDestroyEffect = Spawn(class'XEffects.SmallExplosion', self,,Other.Location);
    }
    if( Role == ROLE_Authority ) {
      Other.Destroy();
    }
  }
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Class file time: So 23.5.2004 10:41:08.000 - Creation time: Do 14.8.2014 09:58:43.271 - Created with UnCodeX