`.*_pos_intermission` improvements
Currently, the game wants several "intermission camera" (one per actual team):
- spectator
- alien
- human
Those are nice... as long as the mapper built the map only for tremulous (and updated it for unvanquished I guess, cf deprecating of stuff) and as long as nobody builds a layout to change position of starting bases.
I see several (partial and additive) solutions to this:
- stop warning for missing team-specific intermissions
- allow layouts to (re)place intermission positions (all of those: neutral, alien and human)
- generate intermission positions depending on where the spawn clusters for a team are. The game already handles some clustering, so this should be reasonably doable, but currently there's only 2 kind of clusters: main (base, where the unique is), and secondary (outposts, where anything is). This would require some changes in that policy, that is, I think it would make sense to have 3 kinds of clusters: main-base, alt-base, defenses.
IMO the last idea is the ideal situation, because it's the most generic one. But I also think that when mappers placed team-specific intermission cameras, they should be obeyed, if and only if the layout is the default one.
Of course, if I had a clear idea of the problem, I would be working on it instead of filing an issue, so any comment on the topic is welcome.
I've found this part of the code to be fairly ugly, with somewhat different handling between teams and spect.
What I'd like to do would be to have only one map intermission entities (pos_player_intermission, with the old team ones being aliases for backward compat) and choose between two intermissions based on the number of interesting things of your team being placed. A mapper would then place such pos_player_intermission entities everywhere for suggestion, and the game would choose the one it thinks is adequate.
@sweet235 or @cu-kai do any of you know of a map that does the missing pos_intermission warnings? I want to get rid of the warnings.
@sweet235 or @cu-kai do any of you know of a map that does the missing pos_intermission warnings? I want to get rid of the warnings.
So far I found sector51. I probably wouldn't have included a team intermission for alien bases on my recent PvE maps had this warning not been present.
covid, too.
Seems like a clear improvement, though not super critical. Moving to post-beta.