I'm going to make a suggestion and you guys can let me know whether or not you think it's a good idea.
I think we should start over-riding action states while in combat. Setting no action state, I'm fairly sure they do this on live. Currently if I have a spawn that has an animation such a mining or something, the spawn will continue that animation during combat which doesn't look right. Which means you have to handle every spawn like this through spawn script.
Basically what I'm saying is, visual state should stay as is, but action states should be changed during combat.
The reason I bring this up now is we have more people starting to work on content, so if we make this change would rather everybody deving content keep this in mind when setting spawn states, rather than going back to change it later.
I can look at setting this up myself just want approval before I do anything.
Action States
Moderator: Team Members
- John Adams
- Retired
- Posts: 9684
- Joined: Thu Jul 26, 2007 6:27 am
- EQ2Emu Server: EQ2Emulator Test Center
- Characters: John
- Location: Arizona
- Contact:
Re: Action States
I definitely do not think it should be handled in scripting. Lethal fixed this for Hailing a spawn when they were an armorer (for example) years ago. I had never noticed that a mining/forging NPC still did those actions once engaged in combat. If they do (now), then it must have gotten broken more recently.
Unless the way LE implemented it was to stop the states in any interactive scripting like Hail or Attack? Check out his code around the Hail functions, maybe you can determine what he did. Or if it no longer works.
Unless the way LE implemented it was to stop the states in any interactive scripting like Hail or Attack? Check out his code around the Hail functions, maybe you can determine what he did. Or if it no longer works.
- thefoof
- Retired
- Posts: 630
- Joined: Wed Nov 07, 2012 7:36 pm
- Location: Florida
Re: Action States
Just posting this to say I implimented this check today with a couple minor bug fixes as well. I wasn't able to find the code you mentioned so it must have got written over at some point. (Or I just didn't see it
)
I put this check in NPC code where the incombat bool value gets triggered, it seems to work pretty well.
So, anyone deving content, if an npc has a persistent animation you want to stop in combat just set it as an action state. And if you want it to persist through combat set it as a visual
I put this check in NPC code where the incombat bool value gets triggered, it seems to work pretty well.
So, anyone deving content, if an npc has a persistent animation you want to stop in combat just set it as an action state. And if you want it to persist through combat set it as a visual
Who is online
Users browsing this forum: No registered users and 0 guests