mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 21:47:24 +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>
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#pragma once
|
|
#include "Behavior.h"
|
|
#include "dCommonVars.h"
|
|
#include "NiPoint3.h"
|
|
#include <forward_list>
|
|
|
|
class TacArcBehavior final : public Behavior {
|
|
public:
|
|
explicit TacArcBehavior(const uint32_t behavior_id) : Behavior(behavior_id) {}
|
|
void Handle(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
void Load() override;
|
|
private:
|
|
float m_maxRange;
|
|
float m_height;
|
|
float m_distanceWeight;
|
|
float m_angleWeight;
|
|
float m_angle;
|
|
float m_minRange;
|
|
NiPoint3 m_offset;
|
|
uint32_t m_method;
|
|
float m_upperBound;
|
|
float m_lowerBound;
|
|
bool m_usePickedTarget;
|
|
bool m_useTargetPostion;
|
|
bool m_checkEnv;
|
|
bool m_useAttackPriority;
|
|
Behavior* m_action;
|
|
Behavior* m_missAction;
|
|
Behavior* m_blockedAction;
|
|
uint32_t m_maxTargets;
|
|
float m_farHeight;
|
|
float m_farWidth;
|
|
float m_nearHeight;
|
|
float m_nearWidth;
|
|
|
|
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;
|
|
};
|