Jump to content

No-gravity


yair1221

Recommended Posts

Okay.. even I know that planes actually rely on gravity.

 

And if the plane fell down.. you've applied MORE gravity.

 

NO gravity would be stupid. Gravity keeps us on earth and although this is a game, I'd bet everything would still fly upwards into space... even though there is no space (thus you may experience some freaky colours fading over the screen).

 

Planes are given just enough power in thrust to be able to fly while in the current amount of gravity or something.. so changing the gravity would rely a change to the power of the plane.

 

 

Same thing with real life, by the way...

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060146642
Share on other sites

im talking about a space-mod im trying to create, i did the normal stuff, you know, made the sky black, changed the clouds into star-systems,

but then i got to the gravity, i used 0.0 gravity with the right memory address, it worked, but cars and planes cant move forward, its more like you said, as if there is too MUCH gravity

they just fall down, not all planes rely on gravity, some planes rely on air, too improve the pressure in the fuel-burning process and by doing so they get extra power

some planes just use normal engines(not propellers), which means they do not require air

bottom line, i dont plane to fall down, or move up, actually(the more acceleration you give them in handling.cfg, they just start to fly upwards instead of forward)

i just dont want there to be up and down in the game, i want the planes to move in a straight line, and if they stop their engines, i dont want them to fall down

and it too be the same if i land upside down, or normal...

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060146857
Share on other sites

Ugh.. why don't you just read the current amount of gravity.. reduce the value A LITTLE (0.01 a time, perhaps) and then write it.

 

Like with the other topic... reduce it to see what difference it makes and then decide whether you need more or less. You're not taking much of this in, maybe I should give you some homework.

 

And as I said.. no gravity would mean things would fly everywhere without stopping. Even space has gravity, just less than on Earth.

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060146904
Share on other sites

what does int32 means regarding to memory addresses?

it says in gtamodding

0x863984 - [int32] Gravity

i thought that obviously gravity would mean float...but what if it doesnt?

thats a new memory address

the last one i used is something i found here in gtaf, and at least it made a change, but this one doesnt

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060146958
Share on other sites

that didnt help alot, memory addresses should not go to C# and stuff like that, they should be just float, integer, char, and string, its just scm, not C#

im looking for a simple example of the usage of this memory address

 

0x863984 - [int32] Gravity

Are you fuvking joking? Do you think a Int32 in C# is something differnt as in ANSI C++??? suicidal.gif

 

geee....

 

 

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147029
Share on other sites

no, an Int32 is 32 bits long = 4 bytes

means it can store 10 decimals (signed/usigned)

 

an Int64 is 64 bits long = 8 bytes

can stor 19 decimals

 

thats the differnce so if you pass 10.000.000.000 to the gravity address you'll make the game throw an overflow exception

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147129
Share on other sites

 

what the heck does that mean!!! suicidal.gif

Shoot, shoot, please!

 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147183
Share on other sites

10.000.000.000

but its a float, shouldnt it be an integer?

 

 

Shoot, shoot, please! 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

 

hhh, would make your life easier, wouldnt it?

anyway, so i use it like that?

 

0A8C: write_memory 0x863984 size 4 value 0.1 virtual_protect 1

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147232
Share on other sites

Why don't you test it an frickin see? When you go out somewhere, do you have to call your mother to ask if it's okay to cross the road?

 

Yes.. but as I said, the value is not as simple as you may think. So do what I said in my last post and use read_memory, subtract float, write_memory to adjust the gravity according to the current value.

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147342
Share on other sites

10.000.000.000

but its a float, shouldnt it be an integer?

 

 

Shoot, shoot, please! 

BTW. if int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

 

hhh, would make your life easier, wouldnt it?

anyway, so i use it like that?

 

0A8C: write_memory 0x863984 size 4 value 0.1 virtual_protect 1

 

10.000.000.000

but its a float, shouldnt it be an integer?

 

your actually right tounge.gif I always mixx up european and english usage of comma and point

 

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147584
Share on other sites

 

If int32 == 4 bytes long, then what's a difference between dword and int32? tounge.gif

I think, saying that it's like making the comparison from u32 and int32, unsigned and signed integers. The farmer must be positive unlike the latter which doesn't take care about this limit. Both types reach 4 bytes (0xFFFFFFFF) but the last one takes only 4 bytes / 2 (0x7FFFFFF).

 

Gravity should be higher than or equal to 0. smile.gif

Edited by Wesser
Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060147864
Share on other sites

Okay.. let me freshen this topic.

 

Default Gravity: 0.008

 

Hopefully now you see how just "setting" the gravity value is a bad idea. It's better to add/take from it's default value.

 

Half Gravity: 0.004

Double Gravity: 0.016

Very High: 1.0

Very Low: 0.0001

 

Try not to goo too far from the actual value, or as I said.. the space time continuum will perform a gastric implosion.

Link to comment
https://gtaforums.com/topic/460021-no-gravity/#findComment-1060149326
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.