Author Topic: defined areas on a map  (Read 6407 times)

Zero Ame

  • Posts: 329
  • Turrets: +33/-15
    • NOS
defined areas on a map
« 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?

Taiyo.uk

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Re: defined areas on a map
« Reply #1 on: March 07, 2008, 04:47:28 am »
target_location entities.

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
this is what I was able to pry out of them
« Reply #2 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.

Cheers!

Zero Ame

  • Posts: 329
  • Turrets: +33/-15
    • NOS
Re: defined areas on a map
« Reply #3 on: March 07, 2008, 05:00:32 am »
thanks for te help

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
now that I know what it's called, I can find it again
« Reply #4 on: March 07, 2008, 05:06:49 am »
I also went back and found this: 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...

Lava Croft

  • Guest
Re: defined areas on a map
« Reply #5 on: March 07, 2008, 04:04:00 pm »
Generally, the target_location ents you use, the better.

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Re: defined areas on a map
« Reply #6 on: March 07, 2008, 04:13:34 pm »
insert less in a certain spot in your favorite moderator's post.
I’m busy. I’ll ignore you later.

Lava Croft

  • Guest
Re: defined areas on a map
« Reply #7 on: March 08, 2008, 12:58:42 am »
insert less in a certain spot in your favorite moderator's post.

Redman

  • Posts: 103
  • Turrets: +6/-6
Re: defined areas on a map
« Reply #8 on: March 13, 2008, 08:26:24 pm »
target_location with message key.
Player activate the closest location name.

blood2.0

  • Guest
Re: defined areas on a map
« Reply #9 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.


Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: defined areas on a map
« Reply #11 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?
Meow.

Can an admin set my name to Amtie please?

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Re: defined areas on a map
« Reply #12 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.
I’m busy. I’ll ignore you later.

player1

  • Posts: 3062
  • Turrets: +527/-401
    • My Avatar! (if they were enabled) [by mietz]
Re: defined areas on a map
« Reply #13 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.

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: defined areas on a map
« Reply #14 on: April 01, 2008, 03:14:57 pm »
Thanks player1 and survivor.
Meow.

Can an admin set my name to Amtie please?

techhead

  • Posts: 1496
  • Turrets: +77/-73
    • My (Virtually) Infinite Source of Knowledge (and Trivia)
Re: defined areas on a map
« Reply #15 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?
I'm playing Tremulous on a Mac!
MGDev fan-club member
Techhead||TH
/"/""\"\
\"\""/"/
\\:.V.://
Copy and paste Granger into your signature!

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Re: defined areas on a map
« Reply #16 on: April 02, 2008, 12:14:02 pm »
Aye, coder's work though.
I’m busy. I’ll ignore you later.

Amtie

  • Posts: 430
  • Turrets: +19/-20
    • <(*) Homepage / Forumz
Re: defined areas on a map
« Reply #17 on: April 02, 2008, 08:49:46 pm »
Can't troy code this into his patch?
Meow.

Can an admin set my name to Amtie please?