mirror of
https://github.com/DarkflameUniverse/DarkflameServer
synced 2024-08-30 18:43:58 +00:00
1fb086ccbd
fix bug where you would always look at self added to_angle handline
18 lines
448 B
C++
18 lines
448 B
C++
#pragma once
|
|
|
|
#include "Behavior.h"
|
|
#include <vector>
|
|
|
|
class ChangeOrientationBehavior final : public Behavior {
|
|
public:
|
|
explicit ChangeOrientationBehavior(const uint32_t behaviorId) : Behavior(behaviorId) {}
|
|
void Calculate(BehaviorContext* context, RakNet::BitStream* bitStream, BehaviorBranchContext branch) override;
|
|
void Load() override;
|
|
private:
|
|
bool m_orientCaster;
|
|
bool m_toTarget;
|
|
bool m_toAngle;
|
|
float m_angle;
|
|
bool m_relative;
|
|
};
|