Page 1 of 1

0 - gravity, is there a way???

Posted: Thu Jan 17, 2008 8:43 pm
by 1z2x3c
0 - gravity, is there a way???

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

Posted: Thu Jan 17, 2008 9:13 pm
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.

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

Posted: Thu Jan 17, 2008 10:50 pm
by 1z2x3c
i would think there would be someting in the fx file or someting...

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

Posted: Thu Jan 17, 2008 11:13 pm
by Teancum
FX? You know those are just graphical effects, right?

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

Posted: Thu Jan 17, 2008 11:23 pm
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

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

Posted: Thu Jan 17, 2008 11:26 pm
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....... ..... .... ....

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

Posted: Fri Jan 18, 2008 7:31 am
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.

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

Posted: Fri Jan 18, 2008 11:51 am
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"

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

Posted: Fri Jan 18, 2008 12:40 pm
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.

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

Posted: Fri Jan 18, 2008 6:57 pm
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.

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

Posted: Fri Jan 18, 2008 9:51 pm
by 1z2x3c
good ideas, but personaly, it was just an idea...

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

Posted: Sat Jan 19, 2008 11:05 am
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.