Change gravity in new maps? help please

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
XenoPHoXx
Private
Posts: 2
Joined: Tue Nov 29, 2005 3:14 pm
Location: Netherlands

Change gravity in new maps? help please

Post by XenoPHoXx »

Hi there

I build maps for about two years now
and i was wondering how i could change the gravity in a mpmap
without the result that all my maps have 0 gravity..

Im building a On the Moon map thats why....
and my gravity must be that good that people still be able too jump
but higher than normal and don't when they hit the ground break the're legs
hope someone can help me

greetzz XenoPHoXx
Can't Win The Game? Change The Rules
PKM
General
Posts: 1888
Joined: Tue Aug 09, 2005 4:43 pm
Location: Philadelpia but stuck in San Antonio TX (hell)

Post by PKM »

it's the manual way but in the server pull up your console and type the following:

Code: Select all

set sv_gravity0
(you won't be able to jump)

the above change will only last the duration of the map you type it in. to change it back type :

Code: Select all

set sv_gravity800
i'm not f****** angry, i'm from philadelphia .
Image
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

in your map set a key for world like so

$world gravity 650

doesnt have to be 650. This will only effect your map unlike a cvar:)

you can also put that in the map script. above waittill prespawn somewhere.
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Increasing the jump height involves state files, though, and removing falling damage needs setting the dmflags cvar to 8.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Elgan
Site Admin
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

prob get the better moon feeling just changing gravity, maybe 750 , i dunno what the moon feels like or what its gravity is or what earths gravity and quakes has in common.
User avatar
LeadHead
Sergeant Major
Posts: 115
Joined: Sun Apr 04, 2004 8:13 pm
Location: New York
Contact:

Post by LeadHead »

I would say that the easiest way to change the gravity would to add

$world gravity [variable]

to your map script like Elgan said, or you can change it in MOHRadiant. With nothing selected, press "n" and scroll down to "worldspawn" and enter the key/value pairs of

key: gravity
value: [variable]

Both work just as equally though.

FYI, the default gravity is 800. You probably already know that, but I know that when I first started mapping for MOHAA I didn't.
Image
XenoPHoXx
Private
Posts: 2
Joined: Tue Nov 29, 2005 3:14 pm
Location: Netherlands

Post by XenoPHoXx »

thanks guys i will do the last thing
Can't Win The Game? Change The Rules
Post Reply