Digital Paint Discussion Board

Development => Mapping => Topic started by: m7feettall on August 21, 2006, 04:39:07 PM

Title: setting player spawn locations through .ent
Post by: m7feettall on August 21, 2006, 04:39:07 PM
You all were quite helpful with the anti-grav issue, so here goes another.

I am changing the game mode default on a lot of the maps to DM.  I would like to change some of the spawn points too through ent files.

If I understand correctly it is this string that deals with spawns:

{
"teamnumber" "2"
"angle" "90"
"origin" "-2999 1348 89"
"classname" "info_player_deathmatch"
}

I was thinking that changing the origin coordinates should re-locate the spawns. Is that correct?

And what is the simplest way to find coordinates?

So far I tried loading the map in quark and then using the texture origin coordinates...not sure that is working though.

Thanks for any help you can give.
Title: Re: setting player spawn locations through .ent
Post by: jitspoe on August 21, 2006, 05:54:25 PM
The easiest way to do this is to go into the game and type "pos" at the console.  This will give you your current position.  You can then use that for origins on entities.  Another handy command is "condump".  You can dump everything in the console to a text file.  It's a bit easier to work with.
Title: Re: setting player spawn locations through .ent
Post by: m7feettall on August 21, 2006, 11:48:36 PM
Thanks! That is just what I was hoping existed but couldn't find!
Title: Re: setting player spawn locations through .ent
Post by: m7feettall on August 22, 2006, 12:19:42 AM
Tried it and it worked great, with the exception of one spawn that caused me to fall off the map into space and then apparently splat.

I guess fractions are important :)
Title: Re: setting player spawn locations through .ent
Post by: jitspoe on August 22, 2006, 04:36:43 AM
Well, the player origin isn't quite in the center.  I don't know the offset offhand.  It'll work well enough in open spaces, but if there's a low ceiling, you might have to tweak it a bit so players don't fall through the ground or get stuck.
Title: Re: setting player spawn locations through .ent
Post by: m7feettall on August 22, 2006, 12:47:46 PM
Ah ok, so should you use decimals in the code? Or just use the round numbers?

Also, assuming the third part of the coordinate is the vertical, I could look at the original spawn points for reference.

And thanks for taking the time. You all go the extra mile here :)

Title: Re: setting player spawn locations through .ent
Post by: jitspoe on August 22, 2006, 03:36:43 PM
Use round numbers.