mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 22:47:25 +00:00
157a05239e
* Add speed base readling and writing to the level prograssion component Add retroactive fix to the world transfer TODO: see about versioning charxml fixes to make them not run every time * version all current changes * cleanup speed behavior add calculate for future use in scripts make < 1 speed multiplier possible tested wormholer and it plays anims correctly * cap the lower end of the speed multiplier until the ending the behavior on hit properly works * address feedback add emun for character version make set ignore multipliers consistent in speed behavior switch case for char version upgrades * remove the ability to stack speed boosts * update value on level ups
29 lines
686 B
C++
29 lines
686 B
C++
#pragma once
|
|
#include "Behavior.h"
|
|
|
|
class SpeedBehavior final : public Behavior
|
|
{
|
|
public:
|
|
|
|
/*
|
|
* Inherited
|
|
*/
|
|
explicit SpeedBehavior(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 Timer(BehaviorContext* context, BehaviorBranchContext branch, LWOOBJID second) override;
|
|
|
|
void End(BehaviorContext* context, BehaviorBranchContext branch, LWOOBJID second) override;
|
|
|
|
void Load() override;
|
|
|
|
private:
|
|
float m_RunSpeed;
|
|
|
|
bool m_AffectsCaster;
|
|
};
|