project-navigation
Personal tools

Author Topic: Visibility plans  (Read 8114 times)

Offline criusmac

  • Squad Leader
  • ****
  • Posts: 168
    • View Profile
Visibility plans
« on: May 15, 2009, 04:04:44 pm »
Ok, without any suggestions forthcoming from the "Searching C++ Programmers" post, I'll assume I'm supposed to do whatever as I see fit. Maybe this is the way open source projects are supposed to work? I have no idea really.

Is there any way to see what features have been agreed upon as "need to do" at least?

It took me a long time to refind the todo lists, but they are rather uninformative, and general for me to do anything about.

I did not find the UFORadiant code, only gktRadiant, so I'll assume UFORadiant got canned due to its problems, and no longer exists. In that case, I'll assume nothing needs to be done about this C++ code then. These posts are obviously too old now.

I looked at some of the translation information, but there doesn't appear to be enough of a concept of what people want to have said. From what I can tell, what is wanted is someone to invent a story or piece of one and type it up. I'm not a storyteller, so this is beyond me.

Since the Feature Requests do not contain information on whether or not the feature requested was accepted, I'll assume they are in the discussion phase until they appear on the todo list, at which point somewhere, somehow, the information is kept, just not where I can see it.

I have been unable to find any information on how people want visibility to be implemented.

I will try to implement visibility without any outside information, even though it isn't on the todo list since I feel this game should have it. Since I have no information written down anywhere, I will come up with arbitrary random numbers and ideas, and tweak them until it works somewhat. Since I don't have any information on the alien's capabilities except for the text in the research panels, I will go completely off the research information, and try to set their powers of sight based on that. This basis will be as if all aliens are humans with today's level of technology for whatever detection methods they have. IE: Aliens with infrared sight will act as if they are humans with infra goggles permanently attached to their eyes.

It's a poor way of doing it, but with no information or knowledge on what is wanted, it's the best I can come up with. Without any raytrace information suggested that I can find, I will assume I don't know what is wanted about this, and will thus not do it.

In short, if you want me to try to do it a certain way, post a link to what you want, or how you want it done, otherwise I'll assume it's up to me, and just do it however I see fit (which may not be a bad thing really, just not a well thought out one).

So, here is what I plan to do currently:
1) During debug mode, enemies will be completely visible as they currently are, but their popup will include your chance of seeing them in your current positions. There will be 1 row for each living soldier to indicate his/her chance of seeing the alien. This chance will be 0% if there is no line of sight.
2) During any movement by an alien, each soldier will roll a random number to indicate their percentage chance of noticing the alien. I will not deal with decimals in the percentage currently, so everything will have a 0-100% chance of detection.
3) Once an alien is detected, it will not become undetected until it leaves *all* soldier's line of sights at the same time.
4) During any movement or facing changes by a soldier, that soldier will get a chance to see any of the aliens he or she has line of sight to. This means standing in 1 place and constantly changing facing is a good way to pick up on any aliens that you may not have spotted initially. I'm assuming the soldier is taking the time to look around.
5) If a soldier is fired upon either via melee or ranged attack, and they get hit by the shot, they will not have an increased chance of detecting where the alien is since they will be in pain/unconscious/panicky/whatever happens when you get hit by serious firepower. They will still have their normal base chance of seeing the alien if they are not dead though.
6) If they are not hit by the alien, they will be granted some random number bonus to detecting the enemy. For now, I will assume this random number is based on mind, and I will go with (mind-25) (that can not become negative, since 25 seems to be average mind) increased detection chance since that seems like a good starting point. This means if you have a soldier with 124 mind, they will have a 100% chance of detecting any enemy they have line of sight to assuming they have at least a 1% base detection chance.
7) This means any alien that has a 0% detection chance can not be seen no matter what they do. They can scream and shout, poke people, stab people, shoot people, and there's no way to detect them. Chances are this will only happen in very dark places, or with cloaking technology, or no line of sight, or at least, I'll tweak it until it only happens for those times. (assuming no infra goggles or other detection methods that might make it possible anyways)
8) There will be a -10% chance of detecting any enemy (can not decrease below 1% if it started at higher than 0%) for each 5 foot level difference between the observer and the observee. This makes stairs very dangerous since you have very little chance of seeing anyone above or below you, even if they are generally right in front of you. This level disadvantage does not apply if they are shooting at you, whether or not they hit. I'm not going to make an exception for stairs or areas being narrow since I have no idea how one might want to come up with those rules, so I'll just assume they are no matter what. Feel free to change the code if I actually manage to get this working though.

I've forgotten a lot of what I planned since this post is long, so I'll just modify this post as I come up with them, or people give me suggestions I decide to try to implement too.
By the way, this won't actually happen for a long while since I haven't look at any of the code yet, and have no idea if these things are doable without other major changes. I'll assume it'll be fairly easy though since there is already line of sight detection somewhere, and all I'm doing is modifying that function to roll random numbers based on my own criteria for detection.

Sound good?


1st Edit:
On my first initial look at the code, I have identified int G_CheckVisTeam (int team, edict_t * check, qboolean perish) as the likely place to implement this code.
I have confirmed this function is already called in static int G_DoTurn (edict_t * ent, byte toDV), and int G_CheckVis (edict_t * check, qboolean perish), so assuming these functions aren't spammed a lot constantly, this seems like a good place to start.
« Last Edit: May 15, 2009, 04:34:57 pm by criusmac »

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #1 on: May 15, 2009, 05:22:29 pm »
Ok, without any suggestions forthcoming from the "Searching C++ Programmers" post, I'll assume I'm supposed to do whatever as I see fit. Maybe this is the way open source projects are supposed to work? I have no idea really.

More or less. There are some basic ideas of what needs to be done, but not on how it needs to be done. That part is essentially up to you.

Quote
Is there any way to see what features have been agreed upon as "need to do" at least?

It took me a long time to refind the todo lists, but they are rather uninformative, and general for me to do anything about.

I'm not sure exactly what you want here - the TODO lists are general, as you said. If you want detailed concepts of features to be implemented, they're either on this wiki page, or we don't have any yet. In the latter case, you should discuss it in the IRC channel. It may be that there is some general idea of how to do things, but nothing that has been fleshed out yet.

Quote
I did not find the UFORadiant code, only gktRadiant, so I'll assume UFORadiant got canned due to its problems, and no longer exists. In that case, I'll assume nothing needs to be done about this C++ code then. These posts are obviously too old now.

No, the gtkradiant source is in fact the uforadiant code. uforadiant is built on the gtkradiant 1.5 code base, and it still uses many of the names and such.

Quote
I looked at some of the translation information, but there doesn't appear to be enough of a concept of what people want to have said. From what I can tell, what is wanted is someone to invent a story or piece of one and type it up. I'm not a storyteller, so this is beyond me.

That's not a problem, the story and writing is done by Winter, and we don't want anyone to interfere with that anyway.

Quote
Since the Feature Requests do not contain information on whether or not the feature requested was accepted, I'll assume they are in the discussion phase until they appear on the todo list, at which point somewhere, somehow, the information is kept, just not where I can see it.

Like I said, the Proposals page is pretty much the best we have in terms of worked-out feature design. It's true, though, that there are some plans and ideas that aren't specifically written down. That's a bit of a problem, but since it's all far from defined it's hard to write it down.

Quote
I have been unable to find any information on how people want visibility to be implemented.

This is how we want it implemented. I'm pretty sure you've read it since you mentioned it before. I don't understand what you mean when you say there is no information. If anything is unclear, put it on the talk page and/or ask me about it. The same is true if you think you have a better idea.

Quote
I will try to implement visibility without any outside information, even though it isn't on the todo list since I feel this game should have it. Since I have no information written down anywhere, I will come up with arbitrary random numbers and ideas, and tweak them until it works somewhat. Since I don't have any information on the alien's capabilities except for the text in the research panels, I will go completely off the research information, and try to set their powers of sight based on that. This basis will be as if all aliens are humans with today's level of technology for whatever detection methods they have. IE: Aliens with infrared sight will act as if they are humans with infra goggles permanently attached to their eyes.

The important thing is that these values should be scripted so we can tweak them later for balancing. That way all you have to worry about is the basic system, and if something is off it can easily be corrected.

Quote
1) During debug mode, enemies will be completely visible as they currently are, but their popup will include your chance of seeing them in your current positions. There will be 1 row for each living soldier to indicate his/her chance of seeing the alien. This chance will be 0% if there is no line of sight.
2) During any movement by an alien, each soldier will roll a random number to indicate their percentage chance of noticing the alien. I will not deal with decimals in the percentage currently, so everything will have a 0-100% chance of detection.
3) Once an alien is detected, it will not become undetected until it leaves *all* soldier's line of sights at the same time.
4) During any movement or facing changes by a soldier, that soldier will get a chance to see any of the aliens he or she has line of sight to. This means standing in 1 place and constantly changing facing is a good way to pick up on any aliens that you may not have spotted initially. I'm assuming the soldier is taking the time to look around.
5) If a soldier is fired upon either via melee or ranged attack, and they get hit by the shot, they will not have an increased chance of detecting where the alien is since they will be in pain/unconscious/panicky/whatever happens when you get hit by serious firepower. They will still have their normal base chance of seeing the alien if they are not dead though.
6) If they are not hit by the alien, they will be granted some random number bonus to detecting the enemy. For now, I will assume this random number is based on mind, and I will go with (mind-25) (that can not become negative, since 25 seems to be average mind) increased detection chance since that seems like a good starting point. This means if you have a soldier with 124 mind, they will have a 100% chance of detecting any enemy they have line of sight to assuming they have at least a 1% base detection chance.
7) This means any alien that has a 0% detection chance can not be seen no matter what they do. They can scream and shout, poke people, stab people, shoot people, and there's no way to detect them. Chances are this will only happen in very dark places, or with cloaking technology, or no line of sight, or at least, I'll tweak it until it only happens for those times. (assuming no infra goggles or other detection methods that might make it possible anyways)
8) There will be a -10% chance of detecting any enemy (can not decrease below 1% if it started at higher than 0%) for each 5 foot level difference between the observer and the observee. This makes stairs very dangerous since you have very little chance of seeing anyone above or below you, even if they are generally right in front of you. This level disadvantage does not apply if they are shooting at you, whether or not they hit. I'm not going to make an exception for stairs or areas being narrow since I have no idea how one might want to come up with those rules, so I'll just assume they are no matter what. Feel free to change the code if I actually manage to get this working though.

Sound good?

I've only given it a quick look-over, but my first impression is that it's very complicated, both in terms of abstract rules and codewise. I'd prefer a simple system, as with everything. Especially the randomness is a problem for me - the more random something is, the less predictable, and in case of visibility I think it pays to be predictable because then the player can more reliably make it part of his tactics.

Offline criusmac

  • Squad Leader
  • ****
  • Posts: 168
    • View Profile
Re: Visibility plans
« Reply #2 on: May 15, 2009, 06:27:59 pm »
I'm not sure exactly what you want here - the TODO lists are general, as you said. If you want detailed concepts of features to be implemented, they're either on this wiki page, or we don't have any yet. In the latter case, you should discuss it in the IRC channel. It may be that there is some general idea of how to do things, but nothing that has been fleshed out yet.

Thank you! Numerous searches could not find the Proposals page for some reason, but that contains the information I wanted!

The important thing is that these values should be scripted so we can tweak them later for balancing. That way all you have to worry about is the basic system, and if something is off it can easily be corrected.

I've only given it a quick look-over, but my first impression is that it's very complicated, both in terms of abstract rules and codewise. I'd prefer a simple system, as with everything. Especially the randomness is a problem for me - the more random something is, the less predictable, and in case of visibility I think it pays to be predictable because then the player can more reliably make it part of his tactics.

I'm unsure what you mean by scripted. Do you mean to create definitions in the source code so you can change the values more easily? Or do you mean it should read the values from an external file somehow?

As for randomness, Hmm. You do make a good point. It feels like you are saying given any set of circumstances, you will either always see the alien, or never see them, with no random possibilities of maybe seeing them. If this is indeed what you mean, it means you will need a lot more balance testing until you get it just right. That is another way to go about this, just not one I'm used to. I will give the visibility proposal a look over, and see what I can come up with then, thank you.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #3 on: May 15, 2009, 06:30:17 pm »
Thank you! Numerous searches could not find the Proposals page for some reason, but that contains the information I wanted!

Unfortunately, it appears the wiki search is pretty shit.

Quote
I'm unsure what you mean by scripted. Do you mean to create definitions in the source code so you can change the values more easily? Or do you mean it should read the values from an external file somehow?

The latter.

Offline criusmac

  • Squad Leader
  • ****
  • Posts: 168
    • View Profile
Re: Visibility plans
« Reply #4 on: May 17, 2009, 02:11:06 am »
I have created cl_visibility.h and .c in the ufo client code, and modified the stable version of cl_main.c's CL_ParseClientData to parse the new visibility.ufo in the 0ufos.pk3 package. I'll assume you can merge patch these changes when they are complete.
The visibility proposal lists an example indicating the visibility values for a Hovernet. Since this creature does not exist in the stable version, I'll assume it is an odd translation of Bloodspider, and go from there.

Re: Stealth
The stealth section of the visibility proposal does not make sense to me.
Quote
  Stealth

A target's visibility (though, given the counter-intuitive values in this section, a better term would be "stealth factor") should be influenced by:

    * The lighting of the space the target is on. A square in full daylight will have stealth factor 0, and a square right underneath a street light will have a stealth factor of -10 (since these squares are especially noticeable in the darkness), while a square in a deep shadow at night could have stealth factor 20.
    * The stance of the target. See partial obscurity.
    * Any stealth bonuses the target receives from camouflage or other cloaking methods, such as smoke screens.
    * Aliens could get small stealth bonuses or maluses as a result of the difficulty setting.

If the unit's visibility is equal to or less than the actor's detection value at that range, and the conditions mentioned at the start of this article are met, the target is spotted. Otherwise, the target remains hidden.

I am assuming this stealth factor is written from a human's point of view, instead of from, for example, a Taman's point of view.
Because Taman can see better in darkness as compared to light (for some reason, possibly due to infraseeing, but no idea) a human standing under a street light would be harder for a Taman to see in the night. Due to the example given in the visibility proposal, since every other alien creature can see as well in the day or night, standing under a street light would make no difference for them. Therefore, it is better for humans to stand under a street light whenever they can since it will make them harder to spot for Taman, and make no difference for other aliens.
For humans though, an alien will be easier to spot under a street light because it simulates day, which is when humans can see better (according to the proposal). I don't see why there should be a bonus or detriment for this however.

What I plan is only the target square's lighting has any impact on the visibility of the target. This means, standing under a street light means the target square is more or less day, and thus can be seen from further away using day vision. Night vision would not have any effect on a target in a day square.

Night vision will only have an effect if the square is darkened, or in shadow. Day vision will have no effect on a square that is pitch black.

Re: Light strength
I will find the light value of the square, and placing night vision value at 0%, and day vision value at 100%, the ability to see the target in a certain strength of light will be strength % of the light in that square, and where the actual value of said percentage falls.
So, for example, humans have 25 night range vision, and 50 day range vision, and the target they are looking at is in say, 20% light as compared to daytime. 25 (30) 35 40 45 50. They could see the target from 30 feet away.
If a Taman were looking, 75 (65) 55 45 35 25, a Taman could see the target from 65 feet away.

At present, I'm unsure of how to handle technologies and items.

(From research.ufo)
Code: [Select]
tech rs_irgoggles
{
type weapon
mdl_top weap_irgoggles

up_chapter equipment
description {
default "_irgoggles_txt"
}
// pre_description "_irgoggles_pre_txt"

require_AND
{
tech rs_skill_mind
}
provides irgoggles
time 0
producetime 80
}

Due to the provides line, I will try to add a modifier as seen in the following visibility.ufo.

I propose we modify the visibility of humans so that humans can see 0 feet in absolute darkness since that seems to be how well we see (unmodified) today. I don't know if this holds true in the future as depicted in the game, so you'll have to let me know.

Due to the way infravision is explained in the tech description (being able to see through walls), I have to assume it is a different type of sight altogether, and not based on day or night vision. Since I am considering infravision as separate from night vision, we may need to look at some of the alien races, like the Taman, and ensure the values are entered correctly, or we need to rethink how night vision works by assuming night vision can always see through walls, and day vision can not. Please let me know how you want that to be.

With the currently planned visibility.ufo, there is room to add new methods of detection as time goes on, like a type of motion detector like some of the XCom games had (if I recall right). For now, the only value required for any new detection type is how easily it can penetrate a wall. There may need to be others if, for example, someone invents a device that scans the x axis better than it scans the y axis (like radar might).

Warning: This post was rapidly typed and may not have been thought through very well. Please let me know of any problems you see with it.

I am basing visibility.ufo on the team name files, so the visibility.ufo file will look something like this (subject to random changes):

Code: [Select]
//========================================================================
// VISIBILITY - List of visibility and modifiers
//========================================================================
// Description:
// TEAM DESCRIPTIONS
// day Team's unmodified ability to see using day structure
// night Team's unmodified ability to see using night structure
// infra Team's unmodified ability to see using infravision structure
// psionic Team's unmodified ability to see using psionic structure
//========================================================================
// STRUCTURE DESCRIPTIONS
// wall How many feet are added to range for each foot of wall. 0 = infinite
//========================================================================

team human
{
day 50
night 25
infra 0
psionic 0
}

team taman
{
day 25
night 75
infra 0
psionic 0
}

team ortnok
{
day 60
night 60
infra 0
psionic 0
}

team shevaar
{
day 50
night 50
infra 0
psionic 0
}

team bloodspider
{
day 75
night 75
infra 0
psionic 0
}

day
{
wall 0
}

night
{
wall 0
}

infra
{
wall 5
}

psionic
{
wall 1
}

tech irgoggles
{
day -15
night 0
infra 25
psionic 0
}
« Last Edit: May 17, 2009, 08:02:34 am by Mattn »

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #5 on: May 17, 2009, 03:48:00 am »
The visibility proposal lists an example indicating the visibility values for a Hovernet. Since this creature does not exist in the stable version, I'll assume it is an odd translation of Bloodspider, and go from there.

You need to stop assuming things, because the hovernet isn't the bloodspider. They're two completely different aliens. The hovernet is a 2x2 flying robot type alien, which explains why it isn't in 2.2.1.

Quote
I am assuming this stealth factor is written from a human's point of view, instead of from, for example, a Taman's point of view.
Because Taman can see better in darkness as compared to light (for some reason, possibly due to infraseeing, but no idea) a human standing under a street light would be harder for a Taman to see in the night. Due to the example given in the visibility proposal, since every other alien creature can see as well in the day or night, standing under a street light would make no difference for them. Therefore, it is better for humans to stand under a street light whenever they can since it will make them harder to spot for Taman, and make no difference for other aliens.
For humans though, an alien will be easier to spot under a street light because it simulates day, which is when humans can see better (according to the proposal). I don't see why there should be a bonus or detriment for this however.

Maybe we can drop that part then. Give everyone the same detection range and impose an artificial bonus to CPU teams? The main thing to consider here is multiplayer, where players can pick an alien team.

Quote
Re: Light strength
I will find the light value of the square, and placing night vision value at 0%, and day vision value at 100%, the ability to see the target in a certain strength of light will be strength % of the light in that square, and where the actual value of said percentage falls.
So, for example, humans have 25 night range vision, and 50 day range vision, and the target they are looking at is in say, 20% light as compared to daytime. 25 (30) 35 40 45 50. They could see the target from 30 feet away.
If a Taman were looking, 75 (65) 55 45 35 25, a Taman could see the target from 65 feet away.

I don't understand this part. How do you arrive from 25/50 vision and 20% light to 30 squares?

Offline criusmac

  • Squad Leader
  • ****
  • Posts: 168
    • View Profile
Re: Visibility plans
« Reply #6 on: May 17, 2009, 06:46:43 am »
Maybe we can drop that part then. Give everyone the same detection range and impose an artificial bonus to CPU teams? The main thing to consider here is multiplayer, where players can pick an alien team.

Hmmm. Multiplayer. Since you seem to want it to be identical for each player, perhaps I should add another section to visibility.ufo to handle multiplayer exclusively. <Trying hard to not say any assumptions>..... <failed> I take it the server sends the .ufo configuration to each client then?

I don't understand this part. How do you arrive from 25/50 vision and 20% light to 30 squares?
25 range vision at night.
50 range vision at day.
20% light, so I take 50 (day) - 25 (night) = 25 (total difference). 25 (total range difference between day and night) * 20% (effective light) = 5 (range difference at 20% light). 25 (night visibility range) + 5 (range difference at 20% light) = 30 (range at 20% light).

During my stable version game, I observed light in different squares had different strengths. This proposal allows people in low light to hide better than people in bright light. This proposal also means people in low light hide worse than people in total darkness.
No randomness involved, and a (I believe) simple calculation assuming there is no light brighter than the sun, or darker than pitch black... Which may not actually be true in this game.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #7 on: May 17, 2009, 11:16:27 am »
Hmmm. Multiplayer. Since you seem to want it to be identical for each player, perhaps I should add another section to visibility.ufo to handle multiplayer exclusively. <Trying hard to not say any assumptions>..... <failed> I take it the server sends the .ufo configuration to each client then?

No, the clients all use their own, local data, but you can't engage in multiplayer unless all the clients have the same data checksums, so it comes down to the same thing anyway.

Quote
25 range vision at night.
50 range vision at day.
20% light, so I take 50 (day) - 25 (night) = 25 (total difference). 25 (total range difference between day and night) * 20% (effective light) = 5 (range difference at 20% light). 25 (night visibility range) + 5 (range difference at 20% light) = 30 (range at 20% light).

During my stable version game, I observed light in different squares had different strengths. This proposal allows people in low light to hide better than people in bright light. This proposal also means people in low light hide worse than people in total darkness.
No randomness involved, and a (I believe) simple calculation assuming there is no light brighter than the sun, or darker than pitch black... Which may not actually be true in this game.

Ah, that makes it a little clearer. As you say, it's simple enough, but the only thing that bothers me is that you use both day and night visibility for any visibility check, be it day or night. But maybe that's just a matter of relabling it, because I do like how it allows you to extend the longer (day) visibility while still keeping your shorter (night) visibility at base, and that means you can theoretically give a boost that doesn't really affect people hiding in darkness that much, or one that ONLY affects people hiding in darkness.
« Last Edit: May 17, 2009, 11:18:05 am by BTAxis »

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Visibility plans
« Reply #8 on: May 17, 2009, 11:50:35 am »
No, the clients all use their own, local data, but you can't engage in multiplayer unless all the clients have the same data checksums, so it comes down to the same thing anyway.

That's not 100% correct. For some values the server is giving the data. The visibility check would be done only server side anyway, no? (or at least it should be)

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #9 on: May 17, 2009, 11:55:17 am »
You're right. The logic would be server side, and the server would only use its own local data, so technically it would be the server feeding the clients the relevant information. But given that visibility parameters are scripted and the algorithm is deterministic, it doesn't matter either way from the player's standpoint.

Offline criusmac

  • Squad Leader
  • ****
  • Posts: 168
    • View Profile
Re: Visibility plans
« Reply #10 on: May 28, 2009, 04:18:43 pm »
Did we want a way for the players to know exactly which squares are visible to their soldiers? For example, by colouring every square they can clearly see a different colour or something?

Also, a random thought led me to believe there are some circumstances where you can't see an individual, but you know they are there via sight. For example, if someone is too far for you to see, but there is a light shining on a wall behind them some distance. Your vision of that part of the wall would be obscured by the individual. Not sure how to handle such a situation, any suggestions?

Under my current proposal, it would have been completely ignored and you wouldn't have seen them.

Unfortunately, if we allow people to see them, it creates almost a cheat where since eyes are above ground and most creatures are standing on the ground, an individual could see things that are out of range just via the light hitting the ground alone. We could raytrace lines through every target to see if they obscure a light source hitting something behind them, so, uh... What should I do?

This also creates an imbalance in multiplayer since 2 different players can be staring at each other, and only 1 of them might be visible via the light behind them. Let me know how you want this handled.

Lastly, I have decided to place all the visibility parsing data into CL_ParseClientData. This means any visibility changes related to equipment or tech will need to be added to the tech or equipment directly, since the cl_visibility.c will have no knowledge of what equipment or tech exists.

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Visibility plans
« Reply #11 on: May 28, 2009, 04:27:18 pm »
Did we want a way for the players to know exactly which squares are visible to their soldiers? For example, by colouring every square they can clearly see a different colour or something?

Nope.

Quote
Also, a random thought led me to believe there are some circumstances where you can't see an individual, but you know they are there via sight. For example, if someone is too far for you to see, but there is a light shining on a wall behind them some distance. Your vision of that part of the wall would be obscured by the individual. Not sure how to handle such a situation, any suggestions?

Ignore it. It's pointless micro-realism that doesn't benefit gameplay.