Blockland Forums > Suggestions & Requests

Visibility effects how well AI can see you.

Pages: << < (2/4) > >>

Chrono:

Have the bot look for lights in dark maps and if there's any players within the light's radius, the player is spotted.

Kalphiter:


--- Quote from: MegaScientifical on May 13, 2010, 05:00:23 PM ---One can manually set up the bots AI to change if the map is named "Dark" or some specific variable is low.

--- End quote ---
No, shutup.
You can just use the level's lighting.

Also, just radius search for bricks with lights and check to see if you have a light on.

MegaScientifical:


--- Quote from: Chrono on May 13, 2010, 05:02:30 PM ---Have the bot look for lights in dark maps and if there's any players within the light's radius, the player is spotted.

--- End quote ---

Seems nice, although I feel kind of iffy about having to set up a cycling radius search for every light like that.


--- Quote from: Kalphiter on May 13, 2010, 05:02:39 PM ---No, shutup.
You can just use the level's lighting.

Also, just radius search for bricks with lights and check to see if you have a light on.

--- End quote ---

I only said that because some people make maps and set the default light differently... meh, never mind that part.

Chrono:


--- Quote from: MegaScientifical on May 13, 2010, 05:16:36 PM ---Seems nice, although I feel kind of iffy about having to set up a cycling radius search for every light like that.

--- End quote ---
If you feel uncomfortable with plenty of radius searches (I've used plenty in the past without too many problems), you could instead cycle through the list of clients and check the distance between their player's position and the light. The problem with this is that bots wont see other bots.

MegaScientifical:


--- Quote from: Chrono on May 13, 2010, 05:18:36 PM ---If you feel uncomfortable with plenty of radius searches (I've used plenty in the past without too many problems), you could instead cycle through the list of clients and check the distance between their player's position and the light. The problem with this is that bots wont see other bots.

--- End quote ---

Meh, they could if you also made a bot search.

Off Topic: HEY, I got my own AI problem. I've been too lazy to figure out how to make bots orbit players in a perfect circle. For years, to make them orbit, I'd just make them stop at four points around the player.

Pages: << < (2/4) > >>

Go to full version