Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

1.06 Modified Bot AI

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
28 views
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 12, 2011

1.06 Modified Bot AI, bot's normally have three AActor* pointers called 'dest', 'enemy' and 'missile'. The pointer 'dest' points to destinations like health, enemies, weapons, etc... The pointer 'enemy' points to a player or bot that is the current Bot's target to attack. And finally the pointer 'missile' points to the latest missile that is headed toward the Bot (so it can avoid it). Normally when a Bot encounters a new destination or enemy or missile, the old pointer is overwritten with the new one. In other words, a Bot has a cross between a short term memory span and near sightedness.

What I have done is extended these to a list instead of just one pointer so that a Bot can have more than one destination, or target more than one enemy or dodge more than one missile at the same time.

Destinations: When a Bot is headed to a destination, if he encounters something of interest along the way (be it a new item, an enemy, etc...), it will completely forget about the old destination and head to the new one. Once it's finally reached a destination, it will set 'dest' to NULL and enter "roam mode" which causes the Bot to roam around looking for new destinations. Now with more than one destination possible, while en-route to a destination if it encounters a new destination it will still have the old destination in a list, and once it's finished reaching it's current destination it will start heading to the next one in the list, and so on. The result is it will roam around less than your normal Bot and head to areas of interest it had encountered within the current spawn.

Enemies: When a Bot is attacking an enemy, normally if another player attacks it, the bot will continue to attack the old enemy until the enemy dies or the Bot dies. Now it can track several enemies and attack the closest enemy with the least amount of health to attack.

Missiles: When a bot has a missile fired at him (Plasma ball or Rocket, etc..) normally he will dodge out of the way of the missile, however if there is another missile from another player headed at him, he will not dodge it even if it's plainly obvious from it's perspective that it will hit the Bot. Now a Bot can track several missiles and dodge them all, so when multiple missiles from multiple enemies are fired at it, the Bot will dodge the closest of all the missiles which results in much better Bot missile dodging.

Category:

Gaming

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (0)

Sign In or Sign Up now to post a comment!
Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more