mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
d8ac148cee
* Re-write AOE behavior for new filter targets Update Tacarc to use new filter targets Added dev commands for skill and attack debugging * Get all entities by detroyable rather than controllable physics Since destroyables are what can be hit * Re-work filter targets to be 100% live accurate reduce memory usage by only using one vector and removing invalid entries get entities in the proximity rather than all entities with des comps in the instance, as was done in live * remove debuging longs and remove oopsie * address feedback * make log more useful * make filter more flat * Add some more checks to filter targets add pvp checks to isenemy * fix typing * Add filter target to TacArc and update filter target * fix double declaration * Some debugging logs * Update TacArc reading * make log clearer * logs * Update TacArcBehavior.cpp * banana * fix max targets * remove extreanous parenthesesuuesdsds * make behavior slot use a real type --------- Co-authored-by: David Markowitz <EmosewaMC@gmail.com>
27 lines
786 B
C++
27 lines
786 B
C++
#pragma once
|
|
#include "Behavior.h"
|
|
#include <forward_list>
|
|
|
|
class AreaOfEffectBehavior final : public Behavior
|
|
{
|
|
public:
|
|
explicit AreaOfEffectBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {}
|
|
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
void Load() override;
|
|
private:
|
|
Behavior* m_action;
|
|
uint32_t m_maxTargets;
|
|
float m_radius;
|
|
bool m_useTargetPosition;
|
|
bool m_useTargetAsCaster;
|
|
NiPoint3 m_offset;
|
|
|
|
std::forward_list<int32_t> m_ignoreFactionList {};
|
|
std::forward_list<int32_t> m_includeFactionList {};
|
|
bool m_targetSelf;
|
|
bool m_targetEnemy;
|
|
bool m_targetFriend;
|
|
bool m_targetTeam;
|
|
};
|