animation question

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
YankFan1950

animation question

Post by YankFan1950 »

can you animated domes or since they are .msh (no odf) they are unanimateable. (not sure if that is a word)
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dragonum »

you can create a odf for the dome model and animate them
YankFan1950

Post by YankFan1950 »

ok but u cannot animate mshs
User avatar
Dragonum
2nd Lieutenant
2nd Lieutenant
Posts: 405
Joined: Tue Nov 16, 2004 4:08 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Post by Dragonum »

you should read the docs or the animation tutorial in the everything you need thread, how to animate.
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Post by FragMe! »

If by animate you mean rotate like stars in the night sky have a look at the .sky file for BF2 Naboo
it has some rotation commands in there that might work.
The_Emperor
Supreme Galactic Ruler
Posts: 2118
Joined: Sat Dec 10, 2005 6:30 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Waaaaay over there.

Post by The_Emperor »

And you can make them move using zeroeditor for example.
YankFan1950

Post by YankFan1950 »

I kno how to animate it's when i try and animate a dome the animation doesn't appear in game
FragMe!
Gametoast Staff
Gametoast Staff
Posts: 2244
Joined: Sat May 13, 2006 12:34 am
Projects :: Not sure keep changing my mind.
Games I'm Playing :: F1 and SWBF
xbox live or psn: No gamertag set
Location: Origin name GT_FragMe
Contact:

Post by FragMe! »

My bad, I was tring to use my memory from work, din't work. I meant Polus Massa.
Here is the line from the .sky file I was thinking of.

Code: Select all

DomeModel()
	{	
		Geometry("pol1_skydome");
		rotationspeed (0.001,0.0,1.0,0.0)
	}
YankFan1950

Post by YankFan1950 »

I don't mean a sky dome I mean a dome model like a cis_fly_fedcrusier_dome.
Penguin
Jedi Admin
Jedi Admin
Posts: 2541
Joined: Sun Mar 05, 2006 12:00 am
Location: Australia

Post by Penguin »

Code: Select all

SkyObject()
{
	Geometry("rep_fly_assault_DOME");
	NumObjects(2);
	Height(200, 1000);
	VelocityZ(20, 50);
	Distance(1500);
	InDirectionFactor(2);
}

Code: Select all

Geometry("rep_fly_assault_DOME");
.msh name, since rep_fly_assault_DOME is on the rep side you'll have to load it in the lua.

Code: Select all

NumObjects(2);
Number of them, i had 2 assualt ships.

Code: Select all

Height(200, 1000);
How high they appear, minimum to maximum

Code: Select all

VelocityZ(20, 50);
How fast they move, minimum to maximum

Code: Select all

Distance(1500);
how far they travel before fading out.

Code: Select all

InDirectionFactor(2);
what direction they go in, I've never messed with this but I would assume a value of 1 would mean verticle[/b]

If you want more just add more, eg

Code: Select all

SkyObject()
{
	Geometry("rep_fly_assault_DOME");
	NumObjects(2);
	Height(200, 1000);
	VelocityZ(20, 50);
	Distance(1500);
	InDirectionFactor(2);
}
SkyObject()
{
	Geometry("rep_fly_gunship_DOME");
	NumObjects(20);
	Height(280, 440);
	VelocityZ(80, 120);
	VelocityY(-10, 10);
	Distance(600);
	InDirectionFactor(0.5);
}
SkyObject()
{
	Geometry("cis_fly_droidfighter_DOME");
	NumObjects(20);
	Height(280, 440);
	VelocityZ(80, 100);
	VelocityY(-10, 10);
	Distance(300);
	InDirectionFactor(0.5);
}
SkyObject()
{
	Geometry("cis_fly_techounion_DOME");
	NumObjects(8);
	Height(400, 500);
	VelocityY(10, 12);
	Acceleration(0.0, 2.0, 0.0);
	Distance(1000);
	LifeTime(80.0);
}
Now if you want those lasers and explosions, thats an .fx file that you put into the map in the .sky file as well

Code: Select all

	DomeModel()
	{	
		Geometry("geo_sky_explosions");
		rotationspeed(0.003, 0,1.0,0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_1", 1.0);
		
	
		Effect("spa_sfx_skydomeexplosions", "hp_sky_4", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_5", 1.0);

		Effect("spa_sfx_skydomeexplosions", "hp_sky_7", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_8", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_9", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_10", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_11", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_12", 1.0);

		Effect("spa_sfx_skydomeexplosions", "hp_sky_14", 1.0);
		Effect("spa_sfx_skydomeexplosions", "hp_sky_15", 1.0);
		
	
	}
Not sure if all the skies have those HPs, that one was from geo. should work with geo and spa.[/b]
Post Reply