Tremulous Forum

Community => Mod Ideas and Desires => Topic started by: WoGoMo on December 14, 2010, 09:03:44 am

Title: Human/Alien Intermission in custom layout .dat file [SOLVED]
Post by: WoGoMo on December 14, 2010, 09:03:44 am
UPDATE: I've come up with the mod. Thread for the release is here (http://tremulous.net/forum/index.php?topic=14818.0).

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

Anyway, my idea is actually quite simple:


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?
Title: Re: Human/Alien Intermission (Camera position/angle) in custom layout .dat file
Post by: Undeference on December 15, 2010, 03:53:48 am
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).
Title: Re: Human/Alien Intermission (Camera position/angle) in custom layout .dat file
Post by: WoGoMo on December 16, 2010, 05:31:49 am
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.