Droid Dispenser Boarding RC Style

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Droid Dispenser Boarding RC Style

Post by Lagomorphia »

I know its possible to make things move with ZeroEditor. I also know its possible to turn command posts on and off. So is it possible to animate a droid dispenser to fly into a hanger with some sort of flame effect moving with it (so it looks like it's flying) then turn off the flame, have it drop to the floor, then start spawing droids while remaining destructible?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Droid Dispenser Boarding RC Style

Post by Fiodis »

Yes.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Droid Dispenser Boarding RC Style

Post by Lagomorphia »

How?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Droid Dispenser Boarding RC Style

Post by mswf »

Have the dispenser come flying in with an activated propulsion effect. Then, when it has finished it's landing animation you made in zeroeditor, kill the effect via you .lua. Then activate the CP.
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Droid Dispenser Boarding RC Style

Post by Executer94 »

Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.

I know it's a simple question for you and there are tuts which explane it.

Here is a tut for "moving objects" in ZE
http://www.gametoast.com/forums/viewtop ... =27&t=5865

For making flames just take the "hoth_effect" from the hot odf.
And change prop_steamgrate to a good effect which makes flames.



Take me 5 min to write and search.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Droid Dispenser Boarding RC Style

Post by Fiodis »

Executer94 wrote:
Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.
I know it's a simple question for you and there are tuts which explane it.
Take me 5 min to write and search.
Then by inference it would take him five minutes to search and write. There are tutorials that explain the various aspects of this. Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Droid Dispenser Boarding RC Style

Post by Lagomorphia »

How do you 'kill' the effect? The documentation isn't helping much.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Droid Dispenser Boarding RC Style

Post by mswf »

You "kill" the emitter of that effect.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Droid Dispenser Boarding RC Style

Post by Fiodis »

Except, in this case, the emmiter is the command post object.

My advice: pre-place the CP at where you want it to land. Then place another "dummy" object, which sends out the effect. Use LUA code to kill the CP at the start of the match, fly the dummy in, kill the dummy and respawn the CP.
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Droid Dispenser Boarding RC Style

Post by mswf »

It's possible to do what I said; If you'd have 2 separate objects, the not yet activated cp and the emmitter and animate those 2 as a group.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Droid Dispenser Boarding RC Style

Post by Lagomorphia »

I now have the droid dispenser alone moving and dropping. I assume this is the dummy?

How do you get the LUA to recognize when the emitter has reached the end of its animation and when the dispenser has hit the ground?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: Droid Dispenser Boarding RC Style

Post by mswf »

Kill the animation with the function that checks whether or not the animation is complete.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Droid Dispenser Boarding RC Style

Post by Lagomorphia »

the function that checks whether or not the animation is complete.
So is this script okay (the function I don;t know is represented by *)
Hidden/Spoiler:
--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--

KillObject (CPDS)
end

On* (DroidDispenserDrop1)
RespawnObject (CPSD)
KillObject (DroidDispenserDummy)
end
Executer94
Major
Major
Posts: 504
Joined: Fri May 01, 2009 7:45 am
Location: Chalmuns Cantina

Re: Droid Dispenser Boarding RC Style

Post by Executer94 »

Fiodis wrote:
Executer94 wrote:
Fiodis wrote:Yes.
I really don't want to be unfriendly but why just this short yes it really doesn't help.
I know it's a simple question for you and there are tuts which explane it.
Take me 5 min to write and search.
Then by inference it would take him five minutes to search and write. There are tutorials that explain the various aspects of this. Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.
Also a point of view. He has to learn that.
User avatar
Lagomorphia
Major
Major
Posts: 502
Joined: Sun Dec 13, 2009 10:02 am

Re: Droid Dispenser Boarding RC Style

Post by Lagomorphia »

Forgive me for thinking that Lagomorphia would take the initiative and try to find out for himself.
I did. I read the docs and the relevant ones were useless. They just waffled on in code about something that had practically nothing to do with the title. So, having failed to work it out myself, I asked. Is that not what the modding forum is for?
User avatar
DarthD.U.C.K.
Master of the Force
Master of the Force
Posts: 6027
Joined: Wed Sep 27, 2006 11:05 am
Location: Duckburg, Germany

Re: Droid Dispenser Boarding RC Style

Post by DarthD.U.C.K. »

first Docs =/= useless is a statement of somebody who either doesnt want to understand them.
they may not have a chapter which explains exactly how to do what you want to know though....

the modding forum is for asking questions regarding swbf2-modding which werent answered before and not for letting other people do the work for you e.g. searching for things you could have searched yourself or explaining things which have been answered several times before

but about the emitter: start a timer when the anim starts which ends when the anim ends and then kill the emitter and the dummy and spawn the actual object when the timer elapses

(that i dont write the actual code means that you can the needed events and commands easily in the documentation or the faqthread or other topics)
Post Reply