Tremulous Forum

Media => Mapping Center => Topic started by: Zero Ame on March 07, 2008, 04:39:48 am

Title: defined areas on a map
Post by: Zero Ame on March 07, 2008, 04:39:48 am
on some of the new maps coming out people have made it that when your in a room and you talk, next to your name the rooms name has been added. I cant figure out how its done so can someone help me out?
Title: Re: defined areas on a map
Post by: Taiyo.uk on March 07, 2008, 04:47:28 am
target_location entities.
Title: this is what I was able to pry out of them
Post by: player1 on March 07, 2008, 04:54:31 am
I asked about this quite a while back, but maybe/probably/Idontmeantosuggestanythinginsulting/whoknowsidk you weren't here at that time. You may find it informative, or not (http://tremulous.net/forum/index.php?topic=5444.0).

Cheers!
Title: Re: defined areas on a map
Post by: Zero Ame on March 07, 2008, 05:00:32 am
thanks for te help
Title: now that I know what it's called, I can find it again
Post by: player1 on March 07, 2008, 05:06:49 am
I also went back and found this (http://qworkshop3.planetquake.gamespy.com/tutorials/target_location/index.html): Further Design Tips from the Radiant Manual: The target locations are "line-of-sight." If a player can "see" it, and that target is the closest to the player, then that location message is displayed. Be conservative in placing location markers. Because of the way the location code is implemented, it causes a large amount of data to be transmitted regularly. It has been explained that the game serrver has to constantly keep track of, and update to the clients, a data table equal to all the location markers multiplied by all the players. Not only that, but it must calculate line of sight from players to location markers and calculate the distance from the location marker. Place the target locations in such a way that the entity can be "seen" from most, if not all, the positions that a player can stand in when it is inside that area. Fewer are better, even if it means that occasionally, a team mate is in an unknown location.

Enjoy...
Title: Re: defined areas on a map
Post by: Lava Croft on March 07, 2008, 04:04:00 pm
Generally, the target_location ents you use, the better.
Title: Re: defined areas on a map
Post by: Survivor on March 07, 2008, 04:13:34 pm
insert less in a certain spot in your favorite moderator's post.
Title: Re: defined areas on a map
Post by: Lava Croft on March 08, 2008, 12:58:42 am
insert less in a certain spot in your favorite moderator's post.
(http://satgnu.net/upload/smilies/coffee.gif)
Title: Re: defined areas on a map
Post by: Redman on March 13, 2008, 08:26:24 pm
target_location with message key.
Player activate the closest location name.
Title: Re: defined areas on a map
Post by: blood2.0 on March 31, 2008, 05:49:01 am
does anyone really care about this because i really don't wont to put them in my map to much work  :P.
Title: Re: defined areas on a map
Post by: player1 on March 31, 2008, 07:17:54 am
Generally, the target_location ents you use, the better.
Title: Re: defined areas on a map
Post by: Amtie on March 31, 2008, 06:17:46 pm
Generally, the target_location ents you use, the better.

Why, performance wise, do less target_locations mean better?
Title: Re: defined areas on a map
Post by: Survivor on March 31, 2008, 06:48:44 pm
Server has to keep track of position of all players in relation to most if not all target_locs. Still, on current day hardware, unless you go really overboard there should be no problem. On larger maps it certainly helps to include them if for mere team coordination, looks at kazior.
Title: Re: defined areas on a map
Post by: player1 on March 31, 2008, 06:58:51 pm
Generally, the target_location ents you use, the better.

Why, performance wise, do less target_locations mean better?

Quote from: tutorial
Be conservative in placing location markers. Because of the way the location code is implemented, it causes a large amount of data to be transmitted regularly. It has been explained that the game serrver has to constantly keep track of, and update to the clients, a data table equal to all the location markers multiplied by all the players. Not only that, but it must calculate line of sight from players to location markers and calculate the distance from the location marker.
Title: Re: defined areas on a map
Post by: Amtie on April 01, 2008, 03:14:57 pm
Thanks player1 and survivor.
Title: Re: defined areas on a map
Post by: techhead on April 01, 2008, 08:44:37 pm
If only there was an option to make it done using reigons, so that you could just do it by which loc_entity you were standing inside...
Saves valuable processing time, yes?
Title: Re: defined areas on a map
Post by: Survivor on April 02, 2008, 12:14:02 pm
Aye, coder's work though.
Title: Re: defined areas on a map
Post by: Amtie on April 02, 2008, 08:49:46 pm
Can't troy code this into his patch?