logo
Main

Forums

Downloads

Unreal-Netiquette

Donate for Oldunreal:
Donate

borderline

Links to our wiki:
Wiki

Walkthrough

Links

Tutorials

Unreal Reference

Usermaps

borderline

Contact us:
Submit News
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DynamicZoneInfo - 2 Questions (Read 405 times)
)Leela(-[otS]-
Full Member
***
Offline


Oldunreal member

Posts: 205
Location: Germany
Joined: May 31st, 2011
Gender: Female
DynamicZoneInfo - 2 Questions
Jun 30th, 2019 at 1:40pm
Print Post  
Hello Smiley

I have two questions about the DynamicZoneInfo actor.

1) Currently it's not possible to spawn them into a map because bNoDelete is set True.
Is it possible to make a subclass of them with bNoDelete = False and would the use still be safe?

2) In the editor you can see the bounds of the DynamicZoneInfo in the 3d view, but not in the 2d views. Usually I align actors or brushes in the 2d views. It's a bit difficult to do that in the 3d view.
Is there a way to make the bounds of a DynamicZoneInfo visible in the 2d views?

Thanks for any replies in advance Smiley
  
Back to top
AIM  
IP Logged
 
)Leela(-[otS]-
Full Member
***
Offline


Oldunreal member

Posts: 205
Location: Germany
Joined: May 31st, 2011
Gender: Female
Re: DynamicZoneInfo - 2 Questions
Reply #1 - Jul 1st, 2019 at 10:27am
Print Post  
Hi Smiley

I made a modified actor of DynamicZoneInfo with bNoDelete=False and it can be spawned into a map now. It works normally, I couldn't find any problems with the altered setting.
Changing bNoDelete to False seems to have no negative effect on the function.
  
Back to top
AIM  
IP Logged
 
Rubie
Betatester
Offline


Retired

Posts: 135
Location: Belgium
Joined: Jan 19th, 2013
Gender: Male
Re: DynamicZoneInfo - 2 Questions
Reply #2 - Jul 28th, 2019 at 11:14am
Print Post  
)Leela(-[otS]- wrote on Jul 1st, 2019 at 10:27am:
Hi Smiley

I made a modified actor of DynamicZoneInfo with bNoDelete=False and it can be spawned into a map now. It works normally, I couldn't find any problems with the altered setting.
Changing bNoDelete to False seems to have no negative effect on the function.



I'm glad you did fixed that for your project !
me myself Im not a big fan from those dynamic zones , they not compatible backward and this can be fixed with a script inplace of a dynamiczone , also creating a normal zone and fix your issues can be more realistic for older versions and UT , but this is my opinion.

here an example for a script that can be used for climbing on a wall, cord or wall of a rock,

Code
Select All
//=============================================================================
// qtitLadderTrigger
//=============================================================================
class qtitLadderTrigger expands Triggers;

function Touch( actor Other ) //actor touches the ladder, calls this function
{
   if( Pawn(Other) != None && Pawn(Other).bIsPlayer ) //if actor is a player do...
   {
      Other.SetPhysics(PHYS_Flying); //...do this
   }
}

function tick(float DeltaTime) //tick tock.
{
   local PlayerPawn pp; //define player class as pp

   foreach TouchingActors(class'PlayerPawn',pp) //for all touching actors, if they are pp
   {
      if(pp.ViewRotation.Pitch < 57344 && pp.ViewRotation.Pitch > 40960) //at some point of view rotation do...
      {
         pp.Velocity.Z = -140; //...do this.
      }
      if(pp.ViewRotation.Pitch < 24576 && pp.ViewRotation.Pitch > 8192) //same as above.
      {
         pp.Velocity.Z = 140;
      }
   }
}

function UnTouch( actor Other ) //when actor untouches...
{
   if( Pawn(Other) != None && Pawn(Other).bIsPlayer ) //...and is a player...
   {
      if( Other.Region.Zone.bWaterZone )
         Other.SetPhysics(PHYS_Swimming);
      else Other.SetPhysics(PHYS_Falling); //... go down make boom!
   }
} 

  

I have no signature Smiley
Back to top
IP Logged
 
Alien3674
New Member
*
Offline



Posts: 15
Joined: Aug 11th, 2017
Gender: Male
Re: DynamicZoneInfo - 2 Questions
Reply #3 - Aug 6th, 2019 at 11:42pm
Print Post  
Rubie wrote on Jul 28th, 2019 at 11:14am:
here an example for a script that can be used for climbing on a wall, cord or wall of a rock,

Code
Select All
//=============================================================================
// qtitLadderTrigger
//=============================================================================
class qtitLadderTrigger expands Triggers;

function Touch( actor Other ) //actor touches the ladder, calls this function
{
   if( Pawn(Other) != None && Pawn(Other).bIsPlayer ) //if actor is a player do...
   {
      Other.SetPhysics(PHYS_Flying); //...do this
   }
}

function tick(float DeltaTime) //tick tock.
{
   local PlayerPawn pp; //define player class as pp

   foreach TouchingActors(class'PlayerPawn',pp) //for all touching actors, if they are pp
   {
      if(pp.ViewRotation.Pitch < 57344 && pp.ViewRotation.Pitch > 40960) //at some point of view rotation do...
      {
         pp.Velocity.Z = -140; //...do this.
      }
      if(pp.ViewRotation.Pitch < 24576 && pp.ViewRotation.Pitch > 8192) //same as above.
      {
         pp.Velocity.Z = 140;
      }
   }
}

function UnTouch( actor Other ) //when actor untouches...
{
   if( Pawn(Other) != None && Pawn(Other).bIsPlayer ) //...and is a player...
   {
      if( Other.Region.Zone.bWaterZone )
         Other.SetPhysics(PHYS_Swimming);
      else Other.SetPhysics(PHYS_Falling); //... go down make boom!
   }
} 

How well does it work on the server?
  

Warning: SubSystem is not Initialized or Shut Down
---
I am sorry for my english...
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo