Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.
As requested in FS 418.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include "Player.h"
|
||||
#include "World.h"
|
||||
#include "CommandOutput.h"
|
||||
#include "Mobs/Monster.h"
|
||||
|
||||
|
||||
|
||||
@@ -478,6 +479,50 @@ bool cPlugin::OnPreCrafting(const cPlayer * a_Player, const cCraftingGrid * a_Gr
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnSpawnedEntity(cWorld & a_World, cEntity & a_Entity)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
UNUSED(a_Entity);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnSpawnedMonster(cWorld & a_World, cMonster & a_Monster)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
UNUSED(a_Monster);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnSpawningEntity(cWorld & a_World, cEntity & a_Entity)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
UNUSED(a_Entity);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnSpawningMonster(cWorld & a_World, cMonster & a_Monster)
|
||||
{
|
||||
UNUSED(a_World);
|
||||
UNUSED(a_Monster);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
bool cPlugin::OnTakeDamage(cEntity & a_Receiver, TakeDamageInfo & a_TakeDamageInfo)
|
||||
{
|
||||
UNUSED(a_Receiver);
|
||||
|
||||
Reference in New Issue
Block a user