Mustafar Bridge [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
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Mustafar Bridge [Solved]

Post by SBF_Dann_Boeing »

Does anyone know how to get the mustafar bridge working? i put it in my map along with the mus1_prop_console and control room in the right place, and i added these lines to my luas
--START BRIDGEWORK!

-- OPEN
function PlayAnimDrop()
PauseAnimation("lava_bridge_raise");
RewindAnimation("lava_bridge_drop");
PlayAnimation("lava_bridge_drop");

end
-- CLOSE
function PlayAnimRise()
PauseAnimation("lava_bridge_drop");
RewindAnimation("lava_bridge_raise");
PlayAnimation("lava_bridge_raise");


end
ill add the lines for activate/deactivate planning later when i add planning to my map.

anyway i can't get it to work in-game i was wondering if anyone knows how to get it to work.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

RE: Mustafar Bridge

Post by Penguin »

You have to make a ZE animation

lava_bridge_raise
and
lava_bridge_drop
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

RE: Mustafar Bridge

Post by SBF_Dann_Boeing »

I can't seem to figure out how to do this. i looked at mustafar in zeroedit to see what to do and i tried making the animations in my map but it still doesnt work. can u give me step-by-step instructions?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Mustafar bridge ZE setup

Post by AceMastermind »

Since you already have the shipped script info copied over to your LUA, you can just re-use the animation already set up in the shipped Mustafar level by copying the mus1.ANM file to your world1 folder and renaming it to your 3 letter modID.
Example:
abc.ANM

Then you'll have to launch ZE then name and label your mus1_bldg_lava_platform to:
lavatrap
as seen in the pic below:
Hidden/Spoiler:
Image
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

the bridge still does not work, however the spatulas now spin, heres what my anim looks like:
Animation("bridge_drop", 3.00, 0, 0)
{
AddPositionKey(0.00, 0.00, 0.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddPositionKey(2.70, 0.00, -8.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddPositionKey(3.00, 0.00, -9.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
}

Animation("Bridge_raise", 4.00, 0, 0)
{
AddPositionKey(0.00, 0.00, -9.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddPositionKey(0.42, 0.00, -8.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddPositionKey(3.75, 0.00, -0.30, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddPositionKey(4.00, 0.00, 0.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
}

Animation("stir", 2.00, 1, 0)
{
AddRotationKey(0.00, 0.00, 0.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
AddRotationKey(2.00, 0.00, -360.00, 0.00, 1, 0.00, 0.00, 0.00, 0.00, 0.00, 0.00);
}

AnimationGroup("Lava_bridge_raise", 0, 0)
{
Animation("Bridge_raise", "Lavatrap");
}

AnimationGroup("lava_bridge_drop", 0, 0)
{
Animation("bridge_drop", "Lavatrap");
}

AnimationGroup("stir", 1, 0)
{
Animation("stir", "stir3");
Animation("stir", "stir2");
Animation("stir", "stir1");
}
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Mustafar bridge code

Post by AceMastermind »

Assuming that you have mus1_prop_console in your map which is what triggers the animation in the shipped level, add the 2 lines below to your LUA in the:

Code: Select all

function ScriptPostLoad()
section and see if it works:

Code: Select all

OnObjectRespawnName(PlayAnimRise, "mus1_prop_console");
OnObjectKillName(PlayAnimDrop, "mus1_prop_console");
User avatar
SBF_Dann_Boeing
Groove Walrus
Groove Walrus
Posts: 1529
Joined: Wed Aug 31, 2005 11:33 pm
xbox live or psn: No gamertag set
Location: An Igloo High Upon a Mountain Top

Post by SBF_Dann_Boeing »

Yes thankyou that solved the problem.
Post Reply