It is currently Fri May 24, 2013 2:30 pm




Post new topic Reply to topic  [ 8 posts ] 
Loop Movers 
Author Message
Mole Person

Joined: Sun Feb 06, 2011 8:49 pm
Posts: 9
Post Loop Movers
So i was trying to create a loop mover i thought things woud fix themself with just the keyframes on a deusex mover im trying to create a camera thing that is flying around the map.

How do i create a mover that resets itself and goes of again like a loopmover in ut in deusex ?

_________________
http://www.moddb.com/members/rodewijk


Wed Mar 23, 2011 11:03 pm
Profile
Traditional Evil Scientist
Traditional Evil Scientist

Joined: Mon Oct 17, 2005 10:03 am
Posts: 3641
Post Re: Loop Movers
I'll be totally honest: I haven't actually checked this at all. I know it compiles, but that's it.

It should work, since it..well, IS the loop mover from unreal, but DX has been known to do silly things. Give it a try!

Code:
//=============================================================================
// LoopMover.
//=============================================================================
class UnrealLoopMover extends Mover;

// When the last keyframe position is reached, this mover
// interpolates to the first keyframe (directly, not through
// the intermediate frames), and repeats the movement forever.

var int NextKeyNum;
var(movement) float MoveTimes[8];

function BeginPlay()
{
   KeyNum = 0;
   Super.BeginPlay();

}


function DoOpen()
{
   // Move to the next keyframe.
   //
   bOpening = true;
   bDelaying = false;
   InterpolateTo( NextKeyNum, MoveTimes[nextkeynum] );
   PlaySound( OpeningSound );
   AmbientSound = MoveAmbientSound;
}

state() LoopMove
{
   function Trigger( actor Other, pawn EventInstigator )
   {
      SavedTrigger = Other;
      Instigator = EventInstigator;
      SavedTrigger.BeginEvent();
      GotoState( 'LoopMove', 'Open' );
   }

   function UnTrigger( actor Other, pawn EventInstigator )
   {
      Enable( 'Trigger' );
      SavedTrigger = Other;
      Instigator = EventInstigator;
      GotoState( 'LoopMove', 'InactiveState' );
   }

   function InterpolateEnd(actor Other)
   {
   }

   function BeginState()
   {
      bOpening = false;
   }

Open:
   Disable ('Trigger');
   NextKeyNum = KeyNum + 1;
   if( NextKeyNum >= NumKeys ) NextKeyNum = 0;
   DoOpen();
   FinishInterpolation();
   FinishedOpening();

   // Loop forever
   GotoState( 'LoopMove', 'Open' );
InactiveState:
   FinishInterpolation();
   FinishedOpening();
   Stop;
}

defaultproperties
{
Movetimes(0)=1.000
Movetimes(1)=1.000
Movetimes(2)=1.000
Movetimes(3)=1.000
Movetimes(4)=1.000
Movetimes(5)=1.000
Movetimes(6)=1.000
Movetimes(7)=1.000
}


Wed Mar 23, 2011 11:08 pm
Profile
Mole Person

Joined: Sun Feb 06, 2011 8:49 pm
Posts: 9
Post Re: Loop Movers
starts to whine about unexspected def props

_________________
http://www.moddb.com/members/rodewijk


Wed Mar 23, 2011 11:21 pm
Profile
Traditional Evil Scientist
Traditional Evil Scientist

Joined: Mon Oct 17, 2005 10:03 am
Posts: 3641
Post Re: Loop Movers
Huh..you sure? Does it state which defprops?

Coz as far as I can tell all the defprops are right there in the class.. :-/


Thu Mar 24, 2011 12:14 am
Profile
X-51
User avatar

Joined: Wed Mar 03, 2010 1:29 am
Posts: 834
Post Re: Loop Movers
I'm just gonna bring this up again. You guys definitely have loop movers in TNM, notably in Despot's den and DXI. I'm so lazy. So I'm planting a seed here. How do I do a loop mover, or how did you guys do it, and as to that code DDL posted above^, is that a class or something? How would it work?

_________________
http://www.youtube.com/watch?v=e3FfPUKuGsQ&t=8m0s


Fri Aug 19, 2011 4:12 pm
Profile
Off Topic Productions
Off Topic Productions
User avatar

Joined: Sat Apr 24, 2004 9:21 pm
Posts: 13850
Location: Hafnia
Post Re: Loop Movers
Just open the map and look for yourself man, I don't even have UnrealEd installed right now.

_________________
Jonas Wæver
Chief Poking Manager of TNM

Random Outbursts of Creativity


Fri Aug 19, 2011 4:27 pm
Profile WWW
X-51
User avatar

Joined: Wed Mar 03, 2010 1:29 am
Posts: 834
Post Re: Loop Movers
rofl, ok, they seem to be a class called "platformmover". I guess I'll just look in the TNM SDK for it. Howver, I was looking for the map with the huge tunnel that had all the platforms shooting in and out of the walls that you had to jump on, and I can't find it. Is it an "OSC" map? What is that? I crash everytime I load it.

-edit- oh its the insane AI maps

_________________
http://www.youtube.com/watch?v=e3FfPUKuGsQ&t=8m0s


Fri Aug 19, 2011 5:05 pm
Profile
Off Topic Productions
Off Topic Productions
User avatar

Joined: Sat Apr 24, 2004 9:21 pm
Posts: 13850
Location: Hafnia
Post Re: Loop Movers
Yeah that's an OSC map, 20_OSC01.dx, if I recall correctly.

_________________
Jonas Wæver
Chief Poking Manager of TNM

Random Outbursts of Creativity


Fri Aug 19, 2011 11:02 pm
Profile WWW
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © phpBB Group.
Designed by Vjacheslav Trushkin for Free Forum/DivisionCore.