Creating a room dynamically off the map
Basically I'd like to create a room that I could teleport players to...
But I want to be able to create the room for any given map (so make sure the room isn't planted somewhere where the map is in use) Is this possible? Thanks, Josh |
Re: Creating a room dynamically off the map
Pick some random location, then scan upward and check PointContents each time. Once you hit a good spot, scan around it and if there's anything around it pick a new point.
Once you find enough space, make a bunch of func_walls or something to make a small room. |
Re: Creating a room dynamically off the map
Think there is a code example anywhere?
|
Re: Creating a room dynamically off the map
Quote:
Code:
|
Re: Creating a room dynamically off the map
Awesome thanks, this will get me started :P Is there a downside to going off the map ??
|
Re: Creating a room dynamically off the map
Quote:
Code:
|
Re: Creating a room dynamically off the map
I'd simply trace a few lines instead of looping.
|
Re: Creating a room dynamically off the map
Quote:
|
Re: Creating a room dynamically off the map
Quote:
If it does though that's a good idea. |
| All times are GMT -4. The time now is 08:02. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.