Re: multiple spawn areas
Posted by Liberal.Nyulism on
Mon Feb 21st 2005 at 6:40pm
67 posts
227 snarkmarks
Registered:
Jan 7th 2005
Occupation: exec
Location: USA
Is there a way to have mutiple sets of spawns?
For example, 10% of the time, I'd like to have an alternate set of spawn points for the CT's. I just can't see how to enable or disable spawn points.
Re: multiple spawn areas
Posted by Rof on
Mon Feb 21st 2005 at 7:38pm
Rof
member
210 posts
41 snarkmarks
Registered:
Dec 3rd 2004
I believe, though I haven't actually tested, that info_player_* entites
can take "Enable" and "Disable" inputs. However the .fgd files don't
contain these commands, so you'll have to enter them manually on the
output tab. Also, you'll have to enter a name for the spawnpoint
manually (turn off smartedit).
If you run a map after entering "developer 2" in the console, you'll
see all the entity i/o messages and it'll tell you if there's an
unhandled input.
So make an info_player_counterterrorist
Turn off smartedit, and add a property: targetname ctspawn
Make a func_button or something and add an output:
Output: OnPressed
target: ctspawn
Input: Disable (you'll have to type this in manually, and it'll probably show up red)
Compile that.
Now turn on developer 2, load the map, spawn and try pressing the
button. If it doesn't work, you should see an error printed at the top
of the screen or in the console.
If that seems to work, kill yourself and see if you can respawn at the CT spawnpoint.
You can also try adding another spawnpoint that you can enable with the press of a button, and see if that works also.
Re: multiple spawn areas
Posted by French Toast on
Mon Feb 21st 2005 at 8:53pm
3043 posts
304 snarkmarks
Registered:
Jan 16th 2005
Occupation: Kicking Ass
Location: Canada
Or if you say, make more spawn points then players on a team, then you will cycle through the various points, thus a small amount of the time you will end up in said area.
Re: multiple spawn areas
Posted by Liberal.Nyulism on
Tue Feb 22nd 2005 at 5:15am
67 posts
227 snarkmarks
Registered:
Jan 7th 2005
Occupation: exec
Location: USA
Wow. Thanks. Two really good ideas.
I'll give them a try. Thanks again.
This board is great. I couldn't have done my map without it.