Skip to content

Basic ai enemy only approaches the player#280

Open
libertus21 wants to merge 6 commits intoafritz1:mainfrom
libertus21:Basic-AI-enemy-only-approaches-the-player
Open

Basic ai enemy only approaches the player#280
libertus21 wants to merge 6 commits intoafritz1:mainfrom
libertus21:Basic-AI-enemy-only-approaches-the-player

Conversation

@libertus21
Copy link
Contributor

@libertus21 libertus21 commented May 23, 2025

A very basic AI to enemies. They just follow the player's current location and that's it.

Untitled.Made.with.FlexClip.mp4

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.
@afritz1
Copy link
Owner

afritz1 commented May 24, 2025

Thanks. I'm not looking at AI right now so may get to this some other time.

Copy link
Collaborator

@Thunderforge Thunderforge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Allofich
Copy link
Collaborator

Allofich commented Aug 10, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants