Jump to content

Garganthropod's AI against range.


Recommended Posts

Garganthropod has a strange behavior quirk when attacked from range. He works perfectly fine when engaged in melee, but when at range, he has a proclivity to enter this idle/taunt animation. When hit with any form of damage from range, the animation will reset. As long as you keep hitting him at range before this animation completes, you can pretty much lock him in place harmlessly. Once you get close enough or you let him finish the animation (not hitting him for its full duration), he will resume moving and attacking normally. The only thing he sometimes manages to do when stuck like this is summon the Scorpions. I tried looking into his behavior.txt definition:

Spoiler

newBehaviour = {
  name         = "Enemy_boss_scorpion",
state0="name=cScorpionKingAI,moveprob=40",
state1="name=cSpecialMoveAI",
state2="name=cCreatureIdleAI",
defaultState="cCreatureIdleAI",
setState0="condition=onEnemyNear,if_state=cCreatureIdleAI,feasibility=1000,state=cScorpionKingAI,fear_state=cScorpionKingAI,range=500.0",
}
mgr.createBehaviour(newBehaviour);

He is the only creature in the game that uses the "moveprob" parameter in its behavior. Could that be the cause? Or is the behavior.txt even relevant and is AI just hardcoded somewhere?

EDIT:

Here is a video demonstrating what I mean:

https://www.dropbox.com/s/wmq1weuxlxtzm7f/Sacred 2 - Ice %26 Blood 2023-07-12 18-27-20.mp4?dl=0

Edited by idbeholdME
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...
Please Sign In or Sign Up