Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Killing Floor Forums > Killing Floor Modifications > Level Design

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-21-2012, 08:45 PM
KFMods KFMods is offline
Junior Member
 
Join Date: Jun 2012
Posts: 2
Default KFTeleporter only for Zeds....

Hi, Is there any posibility anyone could help me with a script for Teleport only zeds? Here in this forum I only found the Jumpad only for zeds and it works great, but I need to especifically teleport zeds around the map.

The code for the Jumpad:
Code:
class UTJumpPad extends JumpPad     placeable;  function PostBeginPlay() {     local int i;      Super.PostBeginPlay();      if ( (Level.Game != None) && Level.Game.IsA('ONSOnslaughtGame') )     {         // fixme - useful for all gametypes, but only tested with Onslaught         // should be in path creation code         for ( i=0; i<PathList.Length; i++ )             if ( PathList[i].End == JumpTarget )             {                 PathList[i].Distance *= 0.5;                 break;             }     } }  event Touch(Actor Other) {     if ( (UnrealPawn(Other) == None) || (Other.Physics == PHYS_None) )         return;      PendingTouch = Other.PendingTouch;     Other.PendingTouch = self; }  event PostTouch(Actor Other) {     local Pawn P;     local Bot B;      Super.PostTouch(Other);      P = UnrealPawn(Other);     if ( P == None )         return;      B = Bot(P.Controller);         if ( (B != None) && (PhysicsVolume.Gravity.Z > PhysicsVolume.Default.Gravity.Z) )         B.Focus = B.FaceActor(2); }      /* defaultproperties {     JumpSound=sound' } */
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright ©2005 - 2013, Tripwire Interactive, LLC