F4MP/tiltedcode/Code/client/Games/Skyrim/Misc/ActorState.h

20 lines
485 B
C
Raw Normal View History

#pragma once
#include <Misc/IMovementState.h>
struct ActorState : IMovementState
{
virtual ~ActorState();
uint32_t flags1;
uint32_t flags2;
bool IsWeaponDrawn() const noexcept { return (flags2 >> 5 & 7) >= 3; }
bool IsWeaponFullyDrawn() const noexcept { return (flags2 >> 5 & 7) == 3; }
bool IsBleedingOut() const noexcept { return (flags1 & 0x1E00000) == 0x1000000 || (flags1 & 0x1E00000) == 0xE00000; }
bool SetWeaponDrawn(bool aDraw) noexcept;
};