mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-24 15:44:21 +00:00
feat: dragon instance script (#2012)
* feat: dragon instance script * Update FvDragonInstanceServer.h * feat: implement ronin script * Update CountdownDestroyAI.cpp * default initialize Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * remove unused handlers Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * use float Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * fixes * Update ScriptComponent.h --------- Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -521,6 +521,10 @@ void BaseCombatAIComponent::Serialize(RakNet::BitStream& outBitStream, bool bIsI
|
||||
|
||||
void BaseCombatAIComponent::SetAiState(AiState newState) {
|
||||
if (newState == this->m_State) return;
|
||||
GameMessages::NotifyCombatAIStateChange stateMsg;
|
||||
stateMsg.prevState = this->m_State;
|
||||
stateMsg.newState = newState;
|
||||
m_Parent->HandleMsg(stateMsg);
|
||||
this->m_State = newState;
|
||||
m_DirtyStateOrTarget = true;
|
||||
Game::entityManager->SerializeEntity(m_Parent);
|
||||
|
||||
Reference in New Issue
Block a user