Tremulous Forum

Media => Mapping Center => Topic started by: Kaleo on June 27, 2007, 01:50:23 am

Title: Area Names
Post by: Kaleo on June 27, 2007, 01:50:23 am
You know how in Gloom2, for example, all the areas have names <pic *clicky-clicky*> (http://img204.imageshack.us/img204/1407/examplezf8.png). How do I do this? I have search fruitlessly...

Please help.
Title: Area Names
Post by: TRaK on June 27, 2007, 01:53:53 am
target_location

http://www.wemakemaps.com/targetlocation.htm
Title: Area Names
Post by: Kaleo on June 27, 2007, 02:08:59 am
Sweetz... Thaks TRaK

So biasically, If I put a target_location entity, it will name the room by a set radius (like the light entity) or will it name it by where the brushes are in the room?
Title: Area Names
Post by: LinuxManMikeC on June 27, 2007, 02:32:24 am
Quote from: "GtkRadiant"
Location marker used for team chats. The closest target_location in sight is used for the location. If none is in sight, the closest in distance is used.


"In sight" means there are no structural brushes between the player and the target_location.
Title: Area Names
Post by: Survivor on June 27, 2007, 09:50:39 am
Quote from: "LinuxManMikeC"
Quote from: "GtkRadiant"
Location marker used for team chats. The closest target_location in sight is used for the location. If none is in sight, the closest in distance is used.


"In sight" means there are no structural brushes between the player and the target_location.


Am actually not so sure about that. Might also be vis area.
Title: Area Names
Post by: Paradox on June 27, 2007, 04:31:18 pm
The engine will use the nearest target_location if it cannot directly "see" one. Still a good idea to double them up in some areas, ie a room with multiple rooms, so that it doesn't get confused. The first beta maps did this, but it doesn't seem to be done anymore.  You can have multiple ents with the same text.
Title: ...
Post by: player1 on June 27, 2007, 04:47:03 pm
Are they in all the default maps (I think they are not)? If not, could they be added to 1.2 to enable teamplay and communication? It's so much easier than typing while being shot at.

@Trak: great link!
Title: Area Names
Post by: LinuxManMikeC on June 27, 2007, 05:07:41 pm
Quote from: "Paradox"
The engine will use the nearest target_location if it cannot directly "see" one. Still a good idea to double them up in some areas, ie a room with multiple rooms, so that it doesn't get confused.


But as noted at that link posted by TRaK, it is best to try and keep it down to 1 per area.  Test your map with a singe target_location per area first.  If anything needs tweaking, try moving the entity first.  Play with distances between locations and line-of-sight.  Work with the algorithm instead of against it.  If all else fails and you really want the area labeling perfect, go ahead and add some redundant entities.  Remember though that even on todays hardware, performance could suffer.  That link also talks about increased network traffic with extra locations, so just be careful.
Title: Area Names
Post by: Survivor on June 27, 2007, 06:22:38 pm
Quote from: "LinuxManMikeC"
Quote from: "Paradox"
The engine will use the nearest target_location if it cannot directly "see" one. Still a good idea to double them up in some areas, ie a room with multiple rooms, so that it doesn't get confused.


But as noted at that link posted by TRaK, it is best to try and keep it down to 1 per area.  Test your map with a singe target_location per area first.  If anything needs tweaking, try moving the entity first.  Play with distances between locations and line-of-sight.  Work with the algorithm instead of against it.  If all else fails and you really want the area labeling perfect, go ahead and add some redundant entities.  Remember though that even on todays hardware, performance could suffer.  That link also talks about increased network traffic with extra locations, so just be careful.


Tbh unless you go nuts with them it's hardly a concern. Just imagine them as a conflict area with the entity as a dot centre of an expanding circle. <40 should be easily attainable on most maps while being far sufficient for most areas.
And since most maps are fairly straightforward in shapes you should be able to apply the half rule between these points where the halfdistance between them determines the switchpoint for the locationmessage.
Title: Area Names
Post by: Paradox on June 27, 2007, 08:26:29 pm
Or lets say you have a duct moving across a hallway.  The algorithm would say that the one in the hall is closer, but you wanted to share the same one. Stick one in the duct, and your fine.
Title: Area Names
Post by: Kaleo on June 28, 2007, 12:29:11 am
Awsome help. Thanks guys. :D