Author Topic: Human/Alien Intermission in custom layout .dat file [SOLVED]  (Read 3562 times)

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Human/Alien Intermission in custom layout .dat file [SOLVED]
« on: December 14, 2010, 09:03:44 am »
UPDATE: I've come up with the mod. Thread for the release is here.

A while ago I was asking in the troubleshooting about
http://tremulous.net/forum/index.php?topic=14621.msg211407
whether such a mod exists already (apparently not).

Anyway, my idea is actually quite simple:

  • Add a couple of admin command that can be used in devmap mode to mark the angle/position of the camera for alien/human intermission based on the spectator's view. (perhaps as spectator go to the appropriate angle and: /set alien_intermission or /set human_intermission).
  • Server adds the information to the custom layout .dat file for that map when you do /rcon layoutsave customlayoutname.
  • When the map loads, the server will check against the current layout. If the layout file contains alien/human intermission, use that, otherwise use the values supplied by default in the .map file.

I would like to do this myself but i am not very familiar yet with the trem source code (not to mention busy work schedule). So if I were to take this on, it may take a while yet. Just thought I should put this idea down in this board for the record.

Edit: Could I do this by looking at the Domination mod code? How are the points a, b and c placed?
« Last Edit: January 06, 2011, 05:05:41 am by WoGoMo »
There is no sig...

Undeference

  • Tremulous Developers
  • *
  • Posts: 1254
  • Turrets: +122/-45
Something along these lines was discussed but there is currently no good way to do it with custom layouts and I guess there wasn't enough interest to do anything about it.

Custom layouts use buildable names (e.g., "reactor" for a Reactor), which intermission points do not have. You could probably change that to entity type (e.g., "team_human_reactor" for a Reactor and "info_alien_intermission" for what you want), which could also make custom layouts much more flexible, but you'd need to substantially change the file format to make full use of the change (look at the spawn code).
Need help? Ask intelligently. Please share solutions you find.

Thats what we need, helpful players, not more powerful admins.

WoGoMo

  • Posts: 95
  • Turrets: +6/-6
Custom layouts use buildable names (e.g., "reactor" for a Reactor), which intermission points do not have. You could probably change that to entity type (e.g., "team_human_reactor" for a Reactor and "info_alien_intermission" for what you want), which could also make custom layouts much more flexible, but you'd need to substantially change the file format to make full use of the change (look at the spawn code).

Thanks for that bit of info. I will look into the spawn code.

As for the layout file, I was thinking along these lines. Create new entities in the layout file called:

alienint
humanint
specint

I've currently added 3 admin commands with the same names (which do nothing yet except display the text "test command." until i understand how to get the camera angles and store it). That was the easy part i guess.

So what the an admin would need to do once this works is go spec and move/turn the angle of the camera to what they want aliens to see before spawning, then type /alienint (same for /humanint and /specint).

I still have some studying to do before I can make this do anything useful.
There is no sig...