DarkflameServer/dGame/dBehaviors/SwitchBehavior.h
David Markowitz 3a4e554da9
update switch behavior (#1503)
was using very old code from pre-foss that has not been updated with the new behavior knowledge.  The code has been updated accordingly to what the client expects.

Tested that ice shurikens can now destroy the legs of the skeleton towers in crux prime.  Tested that the following weapons can still do damage to enemies and objects in the world:
surikens of ice
serratorizer
Super Morning Star
Super Dagger
elite long barrel blaster (charge and normal)
Mosaic Wand
2024-03-24 14:01:12 -05:00

32 lines
596 B
C++

#pragma once
#include "Behavior.h"
class SwitchBehavior final : public Behavior
{
public:
Behavior* m_actionTrue;
Behavior* m_actionFalse;
uint32_t m_imagination;
bool m_isEnemyFaction;
int32_t m_targetHasBuff;
float m_Distance;
/*
* Inherited
*/
explicit SwitchBehavior(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;
};