Hi guys

I was going to show you the cover system today, however me, Darkcoder, and Eoin got into a argument about it last night.
For example my idea was to to use a cover system that you don't have to prgoram in for the ai, and it's very flexible & dynamic. The cover system would get the whole world of vertexes, and if the vertex is a certain height then the ai. The ai would use this as cover.
So for example here is some persuadeo code
vertexRange = 50.0
obstacleHeight = 3
if distance < vertexRange
if vertex(i).Y > obstacleHeight
AI_Use_Cover()
endif
endif
Now to me this sounded good, because you could throw in smoke bombs, walls,,hallways, a cave, grass etc, and the ai would automatically use any object you throw in the level without having to write code for it.
Anyways Darkcoder said
Quote: "Darkcoder checking the Y height only is amazingly retarded, what if you have a pole across the room?"
Too me all you got to do is make the ai shoot under the pipe if the bad guys are there.
Now Eoin said
Quote: "Eoin it would be doing 500 distance checks for each ai bot."
If we do have a massive world with lots of details I could see this being a problem, however I can fix this though, so there is less checking going on.
So for example here is some persuadeo code
obstacleHeight = 3
objectPosition = 50
vertexRange = 5
if distance1 < objectPosition and distance1 > vertexRange
if distance2 < vertexRange and distance2 < objectPosition
if vertex(i).Y > obstacleHeight
AI_Use_Cover()
endif
endif
endif
Now useing that code it should only do maybe 20 distance checks for each ai bot if the 3d model is really detailed.
Anyways that's what i'm working right now on to fix the 500 distance checks problem.
Now you maybe wondering what about terrain blending with building?
All I do is get the terrain vertexes at the start, and use this.
obstacleHeight = obstacleHeight + terrainHeight
Anyways I see no problems myself with this idea.
I also think this is still a real good idea to by the way.

What does everyone else think?
Hi BMacZero
Yes! After this is done you can start implementing in the game.
darkvee