Development > Newbie Coding
Idea for visibility, black blocks
madrsihands:
I have an idea to reuse existing code to implement a visibility system. I'm thinking about using the smoke animation and replacing it with a black block slightly bigger than a tile. Then depending on where the solder looks and their sight range, these blocks are removed. For the sight detection, I'm thinking of some how hobbling together code related to enemy detection and line of fire. Where would be some places in the code to tweak these things, particularly the smoke animation? Is there any reason why trying to implement this is a bad idea. Are there already better ideas in the pipeline for implementing a visibility system?
geever:
Implementing a visibility system is much more complex than that IMHO. Here is the official "design":
http://ufoai.org/wiki/Gameplay_Proposals/Visibility
-geever
madrsihands:
Under the Mark I design, what is meant by using "a green circle displayed on each visible tile when the player clicks a button"? I noticed I pressed a shortcut key one time in-game and it gave a very minimalist display of troop position as green circles and enemies as red circles. Is this related to that? Or is this related to the green circles I see when in-game I ask for an outline of the dropship's rescue zone? Also it wasn't clear, but how much of this documentation refers to the Artificial Intelligence's ability to detect the player versus the actual rendering of poor visibility? Is the Mark I implementation an idea where only a select range of tiles are shown in the solder's field of view, or are their problems masking individual tile pieces? Do you have separate maps for the night and day version because of this reason? Or do you have conditions in place that indicate to the map how to adjust the lighting, but it can only be done at the beginning of the battle-scape render?
I noticed the game is able to remove the tiles above the current floor from the camera's view. Is their a way to do that for individual tile on or below the player's current floor?
ShipIt:
--- Quote from: madrsihands on March 16, 2015, 12:33:07 am ---Under the Mark I design, what is meant by using "a green circle displayed on each visible tile when the player clicks a button"?
--- End quote ---
In that case, it is the proposed way to provide the player feedback about the area the actor currently watches.
--- Quote from: madrsihands on March 16, 2015, 12:33:07 am ---I noticed I pressed a shortcut key one time in-game and it gave a very minimalist display of troop position as green circles and enemies as red circles. Is this related to that?
--- End quote ---
I think you are talking about battlescape radar. So the answer is no.
--- Quote from: madrsihands on March 16, 2015, 12:33:07 am ---Or is this related to the green circles I see when in-game I ask for an outline of the dropship's rescue zone?
--- End quote ---
When the proposal about the visibility system was written, there was no rescue zone. But the way to indicate the rescue zone definitely meets the requirements of Mark I.
--- Quote from: madrsihands on March 16, 2015, 12:33:07 am ---Is the Mark I implementation an idea where only a select range of tiles are shown in the solder's field of view,
--- End quote ---
No.
madrsihands:
It seems I'm in over my head. Could I implement a system where the map is covered with the smoke screen like that typically deployed with the smoke grenade? Then implement a system where depending on which way a solder is facing, smoke clouds are eliminated from the player's view? Of course I'll have to disable the new paralysis mechanism you have with smoke grenades now.
I've also noticed when a plasma pistol fires, the map goes slightly dark and you can actually see the plasma fire illuminate the ground as it travels to the target. Is this like an animation or is it a persistent effect where the map can remain illuminated in places?
What are the main roadblock for implementing a graphic visibility system? Is it within the game engine itself that limits a visibility system, or is it difficult to implement in a Quake game? I've seen Quake games where weapon fire illuminates the surroundings, but come to think of it I've never seen a Quake game where you can shine a flashlight around (unless its the modern engine).
Navigation
[0] Message Index
[#] Next page
Go to full version