Digital Paint Discussion Board

Development => Mapping => Topic started by: m7feettall on August 07, 2006, 09:51:20 PM

Title: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: m7feettall on August 07, 2006, 09:51:20 PM
Is there a way to edit the map itself to set the gravity, rather than using sv_gravity all of the time?  For instance, I would like to make an anti-grav propaint map, etc. just for playing on my own server at home with the family, etc.

It might also make anti-grav more common on public servers (if anyone likes it).

Thanks in advance for any help.



Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: Cobo on August 07, 2006, 09:55:33 PM
I think you can set it on the worldspawn entity.
There is a map with low gravity, made by Jitspoe I think, Spacecrates?
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: Eiii on August 07, 2006, 09:57:58 PM
setting gravity to be extremely low can make it impossible for players to move. Unless the map is designed specifically with low gravity in mind, I'd suggest sticking to the normal gravity.
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: m7feettall on August 07, 2006, 10:18:09 PM
I think you can set it on the worldspawn entity.
There is a map with low gravity, made by Jitspoe I think, Spacecrates?

Worldspawn entity?

Sorry, a bit confused with the terminology. Just started playing the game a week or so ago.

....

As to setting gravity low on certain maps, it seems to work fine with the server setting, so assumedly editing it to that from the map itself should not hurt.
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: Cobo on August 07, 2006, 10:24:35 PM
When you make a map there is an entity called worldspawn, that entity controls what color are the teams, the sky of the map, how many teams there are on the map, etc. I'm not sure about this but i think you can change the gravity there.
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: Smokey on August 07, 2006, 10:44:13 PM
http://upload.arena-zone.com/290507

propaint1 with low gravity... also note that the lighting isnt done correctly. But other than that it should have no problems.

Edit: ohh ya, the gravity level is at 300
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: m7feettall on August 07, 2006, 11:13:43 PM
Thanks!
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: Smokey on August 08, 2006, 11:31:37 AM
No problem, also note dont jump up when leaving spawns, you WILL get stuck.
Title: _
Post by: Dirty_Taco on August 09, 2006, 03:46:09 PM
Post removed
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: jitspoe on August 09, 2006, 07:26:09 PM
The worldspawn key to change the gravity in your map is simply "gravity".  The default value is 800.  Something like 400 or 200 would be "low gravity".  You can create .ent files for existing maps if you don't want to compile new ones.
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: m7feettall on August 21, 2006, 05:01:15 AM
The worldspawn key to change the gravity in your map is simply "gravity".  The default value is 800.  Something like 400 or 200 would be "low gravity".  You can create .ent files for existing maps if you don't want to compile new ones.

Thanks. That worked great for the most part. .ent's seem to work on those maps that include the gravity string. Then I just modify the string. But if I try to add the string it still loads the map, but doesn't do low grav.

Any way to do it on those that don't include the string in the original map? Or am I placing it in the wrong spot somewhow?

Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: jitspoe on August 21, 2006, 03:24:18 PM
If you add it, it shouldn't make a difference if the string was there or not.  I just tested it with the arenaball.ent, and it worked fine:

Code: [Select]
{
"gamemode" "70"
"sky" "pbsky4"
"team2" "blue"
"team1" "red"
"classname" "worldspawn"
"Message" "ArenaBall\n\nBy jitspoe"
"gravity" "100"
}
...
Title: Re: Easy way to set a map's gravity level (so you don't have to change in game)
Post by: m7feettall on August 21, 2006, 04:45:55 PM

Doh...ok, got some sleep and it worked fine now. Thanks!







If you add it, it shouldn't make a difference if the string was there or not.  I just tested it with the arenaball.ent, and it worked fine:

Code: [Select]
{
"gamemode" "70"
"sky" "pbsky4"
"team2" "blue"
"team1" "red"
"classname" "worldspawn"
"Message" "ArenaBall\n\nBy jitspoe"
"gravity" "100"
}
...