Jump to content

Home

Dynamic Map Generation - Possible?


Dreadlord

Recommended Posts

I was wondering - is it possible to make it so that every time a map is loaded, a trigger runs that determines the height randomly of say, blocks on a 20x20 grid? Say, for a maze?

 

 

I was thinking that it would be...using something to move brushes dynamically...

Link to comment
Share on other sites

Originally posted by Dreadlord

How do I make a random factor in this? Specifically, I've got doors - and I want the doors to either go up or down, and by a specified amount....random for up or down, random for amount. How do I do this? :confused:

 

As of right now, you can't.

 

Or how do I make a platform continusly move? (I reaaaly don't want to have to use an up-down train)

You will have to. Sorry.

Link to comment
Share on other sites

Nope sorry mate but levels are static. You may be able to write some code that generates spawning of enemys in a random fasion but as for moving brushes and stuff it's going to be the same every time.

 

The reason for this is once you compile your map the map structure is set in stone. It cannot be changed. Changing maps is what the editor is for. If you wanted to change the map each time you play then you would have to recompile after each change.

 

One other idea is you could have a bunch of func_doors that make the walls to your maze and then create some kind of series of triggers that open some doors and close others.

 

Just a thought.

 

Sorry again. Nice idea though

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...