Added HOOK_PROJECTILE_HIT_ENTITY
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
// Implements the cProjectileEntity class representing the common base class for projectiles, as well as individual projectile types
|
||||
|
||||
#include "Globals.h"
|
||||
#include "../Bindings/PluginManager.h"
|
||||
#include "ProjectileEntity.h"
|
||||
#include "../ClientHandle.h"
|
||||
#include "Player.h"
|
||||
@@ -148,6 +149,11 @@ public:
|
||||
|
||||
// TODO: Some entities don't interact with the projectiles (pickups, falling blocks)
|
||||
// TODO: Allow plugins to interfere about which entities can be hit
|
||||
if (cPluginManager::Get()->CallHookProjectileHitEntity(*m_Projectile, *a_Entity))
|
||||
{
|
||||
// A plugin disagreed.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (LineCoeff < m_MinCoeff)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user