![]() |
![]() |
|
#1
|
|||
|
|||
|
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' } */
|
|
#2
|
|||
|
|||
|
isn't there a setting inside the properties to choose what actors can use it?
|
|
#3
|
|||
|
|||
|
no, everyone can use it, just put a zombiezone volume around it, and change it's collision radius to fit inside the volume, that way human player dont touch it, only zeds.
|
|
#4
|
||||
|
||||
|
Sorry to be offtopic, but is that jumppad whitelisted?
This looks super convenient.
__________________
|
|
#5
|
|||
|
|||
|
thats just the regular jumppad.
its not zed specific. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|