From 3d6b21942cc0d26a44c0d1b586fc5e81617fa84d Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 29 Apr 2017 00:32:23 +0300 Subject: [PATCH] [Server] Add OnActorStatsDynamic script callback --- apps/openmw-mp/Script/ScriptFunctions.hpp | 1 + apps/openmw-mp/processors/actor/ProcessorActorAnimFlags.hpp | 2 -- apps/openmw-mp/processors/actor/ProcessorActorAnimPlay.hpp | 2 -- apps/openmw-mp/processors/actor/ProcessorActorAttack.hpp | 2 -- apps/openmw-mp/processors/actor/ProcessorActorSpeech.hpp | 2 -- apps/openmw-mp/processors/actor/ProcessorActorStatsDynamic.hpp | 2 +- 6 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/openmw-mp/Script/ScriptFunctions.hpp b/apps/openmw-mp/Script/ScriptFunctions.hpp index 206c54c64..01b51d7c9 100644 --- a/apps/openmw-mp/Script/ScriptFunctions.hpp +++ b/apps/openmw-mp/Script/ScriptFunctions.hpp @@ -126,6 +126,7 @@ public: {"OnPlayerJournalChange", Function()}, {"OnActorList", Function()}, {"OnActorCellChange", Function()}, + {"OnActorStatsDynamic", Function()}, {"OnActorTest", Function()}, {"OnObjectPlace", Function()}, {"OnObjectDelete", Function()}, diff --git a/apps/openmw-mp/processors/actor/ProcessorActorAnimFlags.hpp b/apps/openmw-mp/processors/actor/ProcessorActorAnimFlags.hpp index 7381ac311..0b0a8c10e 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorAnimFlags.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorAnimFlags.hpp @@ -20,8 +20,6 @@ namespace mwmp if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); - - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; } diff --git a/apps/openmw-mp/processors/actor/ProcessorActorAnimPlay.hpp b/apps/openmw-mp/processors/actor/ProcessorActorAnimPlay.hpp index d763982ab..924f5df31 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorAnimPlay.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorAnimPlay.hpp @@ -20,8 +20,6 @@ namespace mwmp if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); - - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; } diff --git a/apps/openmw-mp/processors/actor/ProcessorActorAttack.hpp b/apps/openmw-mp/processors/actor/ProcessorActorAttack.hpp index 903434ec5..896370645 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorAttack.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorAttack.hpp @@ -20,8 +20,6 @@ namespace mwmp if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); - - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; } diff --git a/apps/openmw-mp/processors/actor/ProcessorActorSpeech.hpp b/apps/openmw-mp/processors/actor/ProcessorActorSpeech.hpp index 6028d76b3..f1e10ff39 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorSpeech.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorSpeech.hpp @@ -20,8 +20,6 @@ namespace mwmp if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); - - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; } diff --git a/apps/openmw-mp/processors/actor/ProcessorActorStatsDynamic.hpp b/apps/openmw-mp/processors/actor/ProcessorActorStatsDynamic.hpp index b0f4f3e44..8a32ead06 100644 --- a/apps/openmw-mp/processors/actor/ProcessorActorStatsDynamic.hpp +++ b/apps/openmw-mp/processors/actor/ProcessorActorStatsDynamic.hpp @@ -21,7 +21,7 @@ namespace mwmp if (serverCell != nullptr) serverCell->sendToLoaded(&packet, &actorList); - //Script::Call(player.getId(), actorList.cell.getDescription().c_str()); + Script::Call(player.getId(), actorList.cell.getDescription().c_str()); } }; }