Basic ai enemy only approaches the player#280
Open
libertus21 wants to merge 6 commits intoafritz1:mainfrom
Open
Basic ai enemy only approaches the player#280libertus21 wants to merge 6 commits intoafritz1:mainfrom
libertus21 wants to merge 6 commits intoafritz1:mainfrom
Conversation
1) The enemy had the flash speed. 2) The enemy went through walls in its path. 3) The enemy could send you flying to the ceiling when colliding with the player with his flash speed.
…m a thousand times, he would never enter the dead state. Love runs faster than death, no more.
Owner
|
Thanks. I'm not looking at AI right now so may get to this some other time. |
… to here for when afritz1 decides to review it.
Collaborator
Thunderforge
left a comment
There was a problem hiding this comment.
I think it would be good to make the enemy AI more modular. Different enemies will need to behave differently (some just attacking, some casting spells, etc) and with this code I think it might be a bit difficult to swap out behaviors.
Collaborator
|
I put up some preliminary analysis of the original game's AI. It doesn't include movement yet, and some other stuff isn't understood yet. https://github.com/afritz1/OpenTESArena/wiki/NPCs#ai Edit: Some movement logic added. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A very basic AI to enemies. They just follow the player's current location and that's it.
Untitled.Made.with.FlexClip.mp4