Tripwire Interactive Forums

Go Back   Tripwire Interactive Forums > Red Orchestra: Ostfront 41-45 Forums > Red Orchestra Modifications > Coding

Reply
 
Thread Tools Display Modes
  #1  
Old 06-12-2006, 08:49 AM
WickedPenguin's Avatar
WickedPenguin WickedPenguin is offline
Senior Member
 
Join Date: Nov 2005
Location: Miami, FL
Posts: 669
Default My mutator request: ONE WAY MOVER

Basically, this would be an extension of the mover class.

Interface: Add a single boolean checkbox to the Mover properties, labelled "bOneWay"

Function:
When a normal mover has been triggered and then gets triggered again, it does the entire opening motion backwards. For instance, a door will swing closed the exact same way it swung open. That's fine for doors and gates - but for vehicles, planes, and other uses it's terrible, since those vehicles would travel backwards when retriggered.

This mover would function by resetting the mover to its starting point each time it's triggered.

Goal: To create reusable, resetable movers for mappers. This way a mapper can create a single mover for, say, an airplane, and just trigger that mover multiple times. Each time the mover will automatically reset.

Uses:
  • Create airstrikes
  • Moving trains and trams
  • Convoys
  • Katyusha launches
__________________

A steampunk-inspired blend of world, industrial, and electronic music.
Listen & Purchase: Bandcamp
Follow: EscapeTheClouds.com and Facebook
Reply With Quote
  #2  
Old 06-12-2006, 12:21 PM
Troels Troels is offline
Senior Member
 
Join Date: Nov 2005
Posts: 461
Default

The magical stuka on aksay that could fly backwards, anyone?
__________________

Troels for moderator. Copy this into sig to show support.
<Spindel> Troels start posting on the forums again FFS
Reply With Quote
  #3  
Old 06-12-2006, 02:47 PM
WickedPenguin's Avatar
WickedPenguin WickedPenguin is offline
Senior Member
 
Join Date: Nov 2005
Location: Miami, FL
Posts: 669
Default

You filthy Dane, Troelsy! How do you know that Stukas can't fly backwards?

/me sends in a Navy Seal team to whip Troels with the ol' soap-in-a-sock til he sees backwards-flying Stukas orbiting his head.
__________________

A steampunk-inspired blend of world, industrial, and electronic music.
Listen & Purchase: Bandcamp
Follow: EscapeTheClouds.com and Facebook
Reply With Quote
  #4  
Old 06-12-2006, 10:00 PM
Moz Moz is offline
Senior Member
 
Join Date: Nov 2005
Posts: 1,773
Default

you could try just rotating the mover constantly and put the rotation point WAY outside of it, so it rotates like a marry-go-round(sp) but a large enough rotation its hard to notice. (mainly for planes)
__________________

[FONT=Trebuchet MS][FONT=Lucida Sans Unicode]RO-BlackDayJuly - RO-AprilShowers[/FONT]
[/FONT]
Reply With Quote
  #5  
Old 06-12-2006, 11:41 PM
WickedPenguin's Avatar
WickedPenguin WickedPenguin is offline
Senior Member
 
Join Date: Nov 2005
Location: Miami, FL
Posts: 669
Default

Yeah... but that would involve the plane constantly moving. I'd like something that can be easily triggered whenever you want.
__________________

A steampunk-inspired blend of world, industrial, and electronic music.
Listen & Purchase: Bandcamp
Follow: EscapeTheClouds.com and Facebook
Reply With Quote
  #6  
Old 06-21-2006, 06:06 PM
MoFo MoFo is offline
Senior Member
 
Join Date: Feb 2006
Location: Cleveland, OH
Posts: 181
Default

perhaps if on the retrigger condition you can set it to be invisible, then when it reaches the origin you turn it's visibility back on. that's the way i would try to do it.
Reply With Quote
  #7  
Old 06-22-2006, 01:44 AM
WickedPenguin's Avatar
WickedPenguin WickedPenguin is offline
Senior Member
 
Join Date: Nov 2005
Location: Miami, FL
Posts: 669
Default

That was one of the first things I tried. It didn't work.
__________________

A steampunk-inspired blend of world, industrial, and electronic music.
Listen & Purchase: Bandcamp
Follow: EscapeTheClouds.com and Facebook
Reply With Quote
  #8  
Old 06-22-2006, 02:11 AM
DeV DeV is offline
Senior Member
 
Join Date: Nov 2005
Location: Netherlands
Posts: 636
Default

Something like planes flying over that don't go backwards can easily be done if that's what you want. A mover that doesnt return to Key 0 (going backwards) is possible without coding anything. Have to think about how I did it though..

I think I did it with an AIScript that waited for the triggerevent, after that it performed the action and then it ended. Whereas a normal AIScript would go back to step one (waiting for event). So what you would get is a AIScript with the following:

0 - ACTION_WAITFOREVENT - The trigger event
1 - ACTION_TRIGGEREVENT - Mover
2 - ACTION_ENDSECTION

That would do for one time only movers.

Theres also a ACTION_MOVETOPOINT that has a destination tag. Maybe if you set that to a volume it would instantly go back there without travelling the whole distance?
__________________

Last edited by DeV; 06-22-2006 at 02:18 AM.
Reply With Quote
Reply

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 02:53 AM.


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