0 - gravity, is there a way???

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
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

0 - gravity, is there a way???

Post by 1z2x3c »

0 - gravity, is there a way???
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: 0 - gravity, is there a way???

Post by authraw »

You could try messing with the jump physics of all of your units. You'd have to change a whole bunch of odfs.

Yeah, I'm pretty sure that would do it.
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

Re: 0 - gravity, is there a way???

Post by 1z2x3c »

i would think there would be someting in the fx file or someting...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: 0 - gravity, is there a way???

Post by Teancum »

FX? You know those are just graphical effects, right?
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: 0 - gravity, is there a way???

Post by authraw »

I'm about 95% sure that there is no universal gravity setting, but zero gravity conditions could fairly easily be emulated by messing with unit odfs. Come to think of it, you could even mess with grenade and mine odfs and get them to look like zero gravity, too.

Ooh, mines that float wherever you place them... I like that idea... :D
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

Re: 0 - gravity, is there a way???

Post by 1z2x3c »

@teancum: fx file or someting...... couldnt quite think of what file it would be...

@authraw: i guess, but it would be alot of work, not willing, but i was thinking........ in space maps....... ..... .... ....
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: 0 - gravity, is there a way???

Post by Teancum »

Space maps have gravity too. Or are you saying they shouldn't. Anyways, the only thing you might be able to do is fake no-gravity by editing every odf like authraw said. But that's not worth the effort honestly. That means every infantry odf, every grenade-type odf, and every related parent odf. In the end your map would be about a 500mb download.
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: 0 - gravity, is there a way???

Post by [RDH]Zerted »

Teancum wrote:...fake no-gravity by editing every odf like authraw said. But that's not worth the effort honestly. That means every infantry odf, every grenade-type odf, and every related parent odf. In the end your map would be about a 500mb download.
Thats what SetClassProperty() is for. Do it all in your lua and the added file size gets almost completely zipped away. It will work on units, however I am unsure if changing the weapon's gravity through SetClassProperty() will cause crashes in MP.

I'm not sure exactly how you want it. You could do a high, slow jump (may also crash in MP, does crash for the FC mod. For some reason only changing sideways jumps doesn't crash...), or give everyone an invisible jetpack.

If you want the jetpack, heres the basic ODF fields and values to get it working:
Hidden/Spoiler:
ControlSpeed, value = "jet 10.85 1.85 2.00"
JetJump, value = "8.0"
JetPush, value = "8.0"
JetAcceleration", value = "20.0"
JetEffect, value = ""
JetType, value = "hover"
JetFuelRechangeRate, value = "1"
JetFuelCost, value = "0.0"
JetFuelInitialCost, value = "0.0"
JetFuelMinBorder, value = "0.0"
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: 0 - gravity, is there a way???

Post by Maveritchell »

[RDH]Zerted wrote:It will work on units, however I am unsure if changing the weapon's gravity through SetClassProperty() will cause crashes in MP.
Weaponclasses are unmodifiable with SetClassProperty, although you can change from one weapon .odf to another with a unit's SetClassProperty.
User avatar
authraw
1st Lieutenant
1st Lieutenant
Posts: 445
Joined: Mon Jun 26, 2006 3:45 pm

Re: 0 - gravity, is there a way???

Post by authraw »

You could also minimize the filesize by loading all of the units as class parents, changing only the jump values. Then you would just have to load them before you load your custom units in the lua.
1z2x3c
3rd Warning
3rd Warning
Posts: 259
Joined: Mon Jul 16, 2007 3:22 am

Re: 0 - gravity, is there a way???

Post by 1z2x3c »

good ideas, but personaly, it was just an idea...
MercuryNoodles
Jedi
Jedi
Posts: 1003
Joined: Sun Mar 12, 2006 7:16 pm
Projects :: Space - Boarding Action
xbox live or psn: No gamertag set

Re: 0 - gravity, is there a way???

Post by MercuryNoodles »

Well, what do you want? It seems like you had an idea you felt worth trying out. Innovation is what modding's all about. Just about every SWBF mod that spawned from here started out as "just an idea". Give it a shot. You might actually get something out of it.

As for a lot of work. Pfft! :P Modding is work, unless you're just throwing random crap together.
Post Reply