Digital Paint Discussion Board
Development => Mapping => Topic started by: jitspoe on March 01, 2004, 05:48:06 PM
-
Since there has been quite a bit of talk about maps being too big or too small for the number of players on the server, I thought I'd point out an old, poorly documented feature: DSM's.
Make a brush that closes off an area of the map and make it a "func_dsm" entity.
Use the key "open_pcount_all" to specify the minimum number of players that are needed before the said brush is removed.
Use "close_pcount_all" to specify what the player count must drop down to before the brush reappears.
Example:
"classname" "func_dsm"
"open_pcount_all" "4"
"close_pcount_all" "2"
When there are 4 or more players, a new path is opened. When it drops down to 2 or less, the path is closed.
Edit: "spawnflags" "1" inverts this behavior if you want a path to close instead of open.
-
Post removed
-
yeah, the trapping could be a problem...what would u do?
-
That's right, IronFist. It only does it at the beginning of the round.
-
History of DSM: DSM was first implimented by Cyberdog in QTeam. I dont recall any maps that used it that actually got played.
I included it in PB2 mainly for 4 team maps, allowing areas to be closed off if no one was on that team at the start of the round. It makes for some interesting gameplay.... an interesting use for it would be to widen chokepoints when teams are larger.
And I apololgize for not documenting any of the cool things in PB2. =P
-
wow...only 21 posts for a developer...
...
-
eiii should have Clan HOMO status.. just a thought.
-
yep. hehe
-
I was taking a look at the code and noticed that spawnflags 1 "inverts" the behavior. I updated the original post to reflect this.
-
OLD THREAD REVIVED!
-
USLESS POST MADE!
-
QUITE!
But, I was commenting on your strange revival of this very old thread. It was even back when I said 'u'. That must be, 10 years, or something.
-
I was just adding a note so that if people tried to use the DSM feature, they'd know the behavior can be changed by setting the spawnflags.
-
See, no one knew about this thread, and thus, woudln't have used it. You should have started a new thread. :P
-
Then the bump served two purposes. Now they know about the thread AND know about the spawnflags. I don't like starting a new thread when the exact same thing already exists. Better to keep everything in one place, especially since I've linked to this thread a couple of times, and people might search for it as well.
-
You win this time.