Fake ships in sky? [Solved]

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
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Fake ships in sky? [Solved]

Post by jojo3450 »

How can I add fake ships in the sky I think they are called domes
I want Acclamators in the sky I think they were some in a tatoonine map
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: fake ships in sky

Post by jedimoose32 »

The FAQ/Everything You Need Thread Version 2.0 wrote:How to: Custom Flyer Domes
Follow that tutorial except you won't need to actually make your own flyer dome, there is already one called rep_fly_assault_dome so just use that one.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: fake ships in sky

Post by Noobasaurus »

Alternatively (or maybe it's the same, I didn't check), stick these lines from tat2.sky in your sky file:
Hidden/Spoiler:
[code]
SkyObject()
{
Geometry("rep_fly_assault_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("cis_fly_fedlander_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("all_fly_moncalamari_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}

SkyObject()
{
Geometry("imp_fly_destroyer_DOME");
NumObjects(2);
Height(350, 500);
VelocityZ(30, 50);
Distance(2500);
InDirectionFactor(2.5);
}
[/code]
You'll need to copy over the files referenced here from the tat folder as well.

If you see something you like in a stock map, you can always check out its files to see how to do it.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: fake ships in sky

Post by AnthonyBF2 »

You also need to call the domes from SIDE .lvl files in your map script, I think.
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Re: fake ships in sky

Post by jojo3450 »

So I did it and it worked but can I do something like in the "Mos Eisley spaceport" map and make ships land and take off?
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: fake ships in sky

Post by Noobasaurus »

To do that, you'll need to set up spaceship objects in zeroeditor and give them animations to takeoff and land.
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Re: fake ships in sky

Post by jojo3450 »

is there a tutorial that you can refer me to?
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: fake ships in sky

Post by Noobasaurus »

There's this one on animation,but you'll need to make the animation for the taking off and landing sequence and then use timers in your lua to have them occur at timed intervals.

Sample:

Code: Select all

takeoff = 0
    test = OnTimerElapse(
        function(timer)
            if takeoff == 0 then
                   PlayAnimation("takeoff")
                   takeoff = 1
            elseif takeoff == 1 then
                   PlayAnimation("land")
                   takeoff = 0
            end
            SetTimerValue(testTimer, 60)
            StartTimer(testTimer)
        end,
        testTimer
        )
You could probably use RewindAnimation depending on what you animation looks like.
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Re: fake ships in sky

Post by jojo3450 »

thanks it worked :)
Post Reply