- Port hit-order Lua stand-ins (unit tokens, tooltips, combat log filters and current entry, bags/containers, quest POI, minimap, titles, world states, trade, group roles, runes, mirror timers, saved-variable registration, Quit) - LoadAddOn: real add-on loading (Blizzard_CombatLog etc. now load) - CombatLogEntry::PushEvent: COMBAT_LOG_EVENT arguments - World map chain: SetMapToCurrentZone, SetMap, GetWorldPosition, landmarks, overlays, highlight, zones, dungeon levels, player position - OpenArchives: locale index was off by one (enUS read the koKR DBC slot, leaving zone/map names empty) - Zone/area sound chain, invisible units (spline mode read size), raid/bag crash fixes, stand-in console, waystone icon for all executables - Coding-rule cleanups: statics/includes at the top, event enums, Lua _Scripts layout Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
999 lines
50 KiB
C++
999 lines
50 KiB
C++
#ifndef WOW_SOURCE_OBJECT_OBJECTCLIENT_UNIT_C_H
|
|
#define WOW_SOURCE_OBJECT_OBJECTCLIENT_UNIT_C_H
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
#include <windows.h>
|
|
#include "Engine/Source/Storm/H/stpl.h"
|
|
#include "WoW/Source/Object/Movement.h"
|
|
#include "WoW/Source/Object/ObjectClient/Object_C.h"
|
|
#include "WoW/Source/Object/ObjectClient/UnitCombat_C.h"
|
|
#include "WoW/Source/Object/Unit.h"
|
|
#include "WoW/Source/Object/Combat.h"
|
|
#include "WoW/Source/Object/ObjectClient/AuraData.h"
|
|
#include "WoW/Source/Magic/MagicClient/SpellTable.h"
|
|
#include "WoW/Source/SoundInterface/SoundInterface2.h"
|
|
#include "WoW/Source/Net/Types.h"
|
|
#include "Engine/Source/Tempest/C3Vector.h"
|
|
#include "Engine/Source/Tempest/CAaBox.h"
|
|
#include "Engine/Source/Tempest/CImVector.h"
|
|
|
|
class CGPlayer_C;
|
|
class CGWorldFrame;
|
|
class CGPartyPetState;
|
|
class CGChatBubbleFrame;
|
|
class CGNamePlateFrame;
|
|
class CM2Model;
|
|
class CMovementShared;
|
|
class CCharacterComponent;
|
|
class CEffect;
|
|
struct CVar;
|
|
class CMissile;
|
|
class CMapEntity;
|
|
class C3Spline_CatmullRom;
|
|
class CClientMoveUpdate;
|
|
class CClientObjCreate;
|
|
class CGCorpse_C;
|
|
class SummonPropertiesRec;
|
|
struct MissileCollisionData;
|
|
class CVehicle_C;
|
|
class CVehicleCamera_C;
|
|
class CVehiclePassenger_C;
|
|
class ItemDisplayInfoRec;
|
|
class MountTransitionObject;
|
|
class SpellRec;
|
|
class CDataStore;
|
|
class CMovementStatus;
|
|
class C44Matrix;
|
|
class M2BoneSequenceInfo;
|
|
class PetPersonalityRec;
|
|
class FactionTemplateRec;
|
|
class VehicleRec;
|
|
class VehicleSeatRec;
|
|
class ChrClassesRec;
|
|
class ChrRacesRec;
|
|
class NameCache;
|
|
struct SpellCastTargetPoint;
|
|
class PendingSpellCastData;
|
|
class CreatureDisplayInfoExtraRec;
|
|
class CreatureDisplayInfoRec;
|
|
class CreatureModelDataRec;
|
|
class CreatureSoundDataRec;
|
|
class CreatureStats_C;
|
|
class UnitBloodLevelsRec;
|
|
|
|
struct AnimSlot {
|
|
/* 0000 */ uint32_t m_animId;
|
|
/* 0004 */ uint32_t m_variation;
|
|
/* 0008 */ uint32_t m_time;
|
|
/* 000C */ float m_speed;
|
|
/* 0010 */ uint32_t unk_0010;
|
|
/* 0014 */ uint32_t unk_0014;
|
|
/* 0018 */ uint32_t unk_0018;
|
|
/* 001C */ uint32_t unk_001C;
|
|
};
|
|
|
|
class CSmoothAngle {
|
|
public:
|
|
/* 0000 */ float m_value;
|
|
/* 0004 */ float m_velocity;
|
|
|
|
void Chase(const float* target, float rate, float elapsed);
|
|
};
|
|
|
|
struct QUESTGIVEREMOTENODE {
|
|
/* 0000 */ uint32_t m_delay;
|
|
/* 0004 */ int32_t m_emote;
|
|
};
|
|
|
|
struct DelayedSpellVisualKit {
|
|
/* 0000 */ int32_t m_spellId;
|
|
/* 0004 */ int32_t m_kitId;
|
|
/* 0008 */ int32_t m_kitType;
|
|
/* 000C */ C3Vector m_position;
|
|
/* 0018 */ WOWGUID m_targetGuid;
|
|
/* 0020 */ int32_t m_delay;
|
|
/* 0024 */ uint32_t m_flags;
|
|
/* 0028 */ int32_t unk_0028;
|
|
/* 002C */ int32_t unk_002C;
|
|
};
|
|
|
|
struct UnitThreat : public TSLinkedNode<UnitThreat>, public TSHashObject<UnitThreat, CHashKeyGUID> {
|
|
/* 0028 */ uint8_t m_status;
|
|
/* 0029 */ uint8_t m_percent;
|
|
/* 002A */ uint8_t unk_002A[2];
|
|
/* 002C */ int32_t m_threat;
|
|
};
|
|
|
|
class CGUnitVirtualItem {
|
|
public:
|
|
/* 0000 */ uint8_t m_classID;
|
|
/* 0001 */ uint8_t m_subclassID;
|
|
/* 0002 */ uint8_t m_soundOverrideSubclassID;
|
|
/* 0003 */ uint8_t m_material;
|
|
/* 0004 */ uint8_t m_inventoryType;
|
|
/* 0005 */ uint8_t m_sheatheType;
|
|
/* 0006 */ uint8_t m_pad [2];
|
|
};
|
|
|
|
class CGUnit_C : public CGObject_C, public CGUnit {
|
|
public:
|
|
int32_t InitializeExtendedDisplay(CGPlayer_C* player, int32_t hasDisplayInfo);
|
|
void ApplyComponentItemsFromEffects();
|
|
void AddHandItem(int32_t hand);
|
|
static void InitActiveMover(const WOWGUID& guid);
|
|
void VehiclePassengerUpdateWorldCameraState(uint32_t a1, VehicleSeatRec* seatRec, uint32_t startTime, uint32_t endTime);
|
|
void VehiclePassengerUpdateWorldCameraStateInstantly();
|
|
int32_t ClampRawAngleToLegalFacingRange(float& angle) const;
|
|
static void UpdateMissileTrajectoryTargeting();
|
|
void AuraVisionUpdated(uint8_t vision);
|
|
bool IsSpellKnown(int32_t spellId);
|
|
void SetLocalClientControl(bool control);
|
|
static void Initialize();
|
|
static void Shutdown();
|
|
static void PostShutdown();
|
|
static int32_t HandleMonsterMovePacket(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
static int32_t HandleMovementPacket(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
static int32_t HandleSpeedChangePacket(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
static void RegisterMirrorHandlers();
|
|
static void UnregisterMirrorHandlers();
|
|
static int32_t s_initialized;
|
|
static void StopMissileTrajectoryTargeting();
|
|
static void RenderMissileTrajectoryTargetingTexture();
|
|
static void UnitNameplatesReposition(CGWorldFrame* worldFrame);
|
|
static void UpdateAllSmoothFacing();
|
|
static void ClearNamePlateFocus();
|
|
static void SetNamePlateFocus(const C2Vector& position);
|
|
static WOWGUID s_activeMover;
|
|
static uint32_t s_trackingType;
|
|
static float s_trackingFacing;
|
|
static uint32_t s_namePlateFlags;
|
|
static uint32_t s_missileTrajectoryTargetingSpell;
|
|
static uint32_t s_pitchMissileTrajectoryTargetingNextFrame;
|
|
static CVar* s_cvShowFootPrintParticles;
|
|
static CVar* s_cvPathingDistTolerance;
|
|
static const uint32_t s_impactTypes[4];
|
|
static C3Vector s_trackingPosition;
|
|
static float s_trackingDirection;
|
|
static uint32_t s_vehiclePassengerCameraState[3];
|
|
static int32_t s_dismountSoundKitId;
|
|
static WOWGUID s_lastNPCSoundGUID;
|
|
static uint32_t s_flightStatusTime;
|
|
static CMapEntity* s_trajectoryWorldObjects[2];
|
|
static CM2Model* s_trajectoryModels[2];
|
|
static C3Vector* s_trajectoryPoints;
|
|
static WOWGUID s_deferredClientControlUpdateGUID;
|
|
static uint8_t s_deferredClientControlUpdateState;
|
|
static float s_unk_CA11D0;
|
|
static uint32_t s_unk_CA11D4;
|
|
static WOWGUID s_trackingGUID;
|
|
static uint32_t s_trackingFlags;
|
|
static CGNamePlateFrame* s_namePlateFocus;
|
|
|
|
static const char* GetDisplayClassNameFromRecord(const ChrClassesRec* rec, int32_t sex, int32_t* displaySex);
|
|
static const char* GetDisplayRaceNameFromRecord(const ChrRacesRec* rec, int32_t sex, int32_t* displaySex);
|
|
static const char* GetDisplayClassName(const CGUnit_C* unit, const NameCache* name);
|
|
static const char* GetDisplayRaceName(const CGUnit_C* unit, const NameCache* name);
|
|
static void ClientInitialize();
|
|
static void NamePlateSetResortAll(bool enable);
|
|
static void NamePlateUpdateLevels(bool enable);
|
|
static void NamePlateUpdateColor(bool enable);
|
|
static uint32_t GetTrackingType();
|
|
static float GetTrackingTurn();
|
|
static void PitchMissileTrajectoryTargetingNextFrame();
|
|
static void SetMissileTrajectoryTargetingSpell(uint32_t spellId);
|
|
static int32_t __stdcall GetRecordForTitle(int32_t maskId);
|
|
static int32_t __stdcall UnitCanGossip(CGUnit_C* unit);
|
|
static int32_t __stdcall IsTwoHanded(const CGUnitVirtualItem* item);
|
|
static bool FactionHasReputation(int32_t factionId);
|
|
static int32_t __stdcall MaybeDeferTeleport(const WOWGUID* transport);
|
|
static void VehiclePassengerInitWorldCameraState();
|
|
static bool __stdcall IsSpellAllowedInArena(const SpellRec* spell);
|
|
static void ApplyGuildTabard(int32_t guildId, const WOWGUID& guid, int32_t a3, bool apply);
|
|
static int32_t __stdcall Unk715D00(int32_t hand, const CGUnitVirtualItem* mainHand, const CGUnitVirtualItem* offHand);
|
|
static bool __stdcall IsAreaInAreaGroup(int32_t areaId, int32_t areaGroupId, int32_t* checked);
|
|
static float __fastcall ComputeTrackingElevationAngle(const C3Vector& position, const C3Vector& target);
|
|
static void InitMissileTrajectorySystem();
|
|
static void UpdateVehicleUISliders(CGUnit_C* unit, const VehicleRec* vehicleRec);
|
|
static void AnimEndCallback(CM2Model* model, uint32_t boneId, uint32_t sequenceId, int32_t interrupted, uint32_t time, uint64_t param);
|
|
static void AnimEventCallback(CM2Model* model, uint32_t boneId, uint32_t eventId, uint32_t data, const C3Vector* position, uint32_t time, uint64_t param);
|
|
|
|
/* 00DC */ TSList<void> m_unitMirrorLists [142];
|
|
/* 0784 */ float unk_0784;
|
|
/* 0788 */ CMovement_C m_movementData;
|
|
/* 08D0 */ float m_smoothFacing;
|
|
/* 08D4 */ float unk_08D4;
|
|
/* 08D8 */ float unk_08D8;
|
|
/* 08DC */ float m_smoothFacingTarget;
|
|
/* 08E0 */ int32_t unk_08E0;
|
|
/* 08E4 */ float unk_08E4 [3];
|
|
/* 08F0 */ int32_t m_splashSoundKitId;
|
|
/* 08F4 */ SE2SoundKitObject m_npcInteractSound;
|
|
/* 0908 */ SE2SoundKitObject m_npcSound;
|
|
/* 091C */ SE2SoundKitObject m_aiSound;
|
|
/* 0930 */ uint32_t unk_0930;
|
|
/* 0934 */ SE2SoundKitObject unk_0934;
|
|
/* 0948 */ uint32_t unk_0948 [4];
|
|
/* 0958 */ uint32_t m_animEffectStates [3];
|
|
/* 0964 */ CreatureStats_C* m_creatureCacheEntry;
|
|
/* 0968 */ CreatureDisplayInfoRec* m_displayInfo;
|
|
/* 096C */ CreatureDisplayInfoExtraRec* m_displayInfoExtra;
|
|
/* 0970 */ CreatureModelDataRec* m_modelData;
|
|
/* 0974 */ CreatureSoundDataRec* m_soundData;
|
|
/* 0978 */ CreatureSoundDataRec* m_soundDataOverride;
|
|
/* 097C */ UnitBloodLevelsRec* m_bloodlevels;
|
|
/* 0980 */ CEffect* m_fishingLineEffect;
|
|
/* 0984 */ CEffect* m_auraEffects;
|
|
/* 0988 */ CMissile* unk_0988;
|
|
/* 098C */ CM2Model* m_mountModel;
|
|
/* 0990 */ float m_mountScale;
|
|
/* 0994 */ uint8_t m_forceWorldModelAlpha;
|
|
/* 0998 */ uint32_t m_virtualItemDisplayId [3];
|
|
/* 09A4 */ CGUnitVirtualItem m_virtualItem [3];
|
|
/* 09BC */ uint32_t unk_09BC;
|
|
/* 09C0 */ int32_t m_mountDisplayId;
|
|
/* 09C4 */ const MountTransitionObject* m_mountTransition;
|
|
/* 09C8 */ CEffect* m_mountTransitionEffect;
|
|
/* 09CC */ uint32_t unk_09CC;
|
|
/* 09D0 */ uint32_t unk_09D0;
|
|
/* 09D4 */ int32_t m_displayId;
|
|
/* 09D8 */ C3Vector m_groundNormal;
|
|
/* 09E4 */ uint32_t m_targetChangeTime;
|
|
/* 09E8 */ uint32_t unk_09E8;
|
|
/* 09EC */ CMissile* m_missiles;
|
|
/* 09F0 */ CMissile* m_pendingMissiles;
|
|
/* 09F4 */ uint8_t m_shapeshiftSuppressed;
|
|
/* 09F8 */ uint32_t unk_09F8;
|
|
/* 09FC */ QUESTGIVEREMOTENODE m_emoteQueue [4];
|
|
/* 0A1C */ uint32_t unk_0A1C;
|
|
/* 0A20 */ CCombatClient m_combat;
|
|
/* 0A2C */ uint32_t m_stopAttackSent;
|
|
/* 0A30 */ uint32_t m_clientFlags;
|
|
/* 0A34 */ uint32_t unk_0A34;
|
|
/* 0A38 */ uint32_t m_animationState;
|
|
/* 0A3C */ int32_t m_footprintTextureId;
|
|
/* 0A40 */ int32_t m_terrainTypeId;
|
|
/* 0A44 */ float m_footprintLength;
|
|
/* 0A48 */ float m_footprintWidth;
|
|
/* 0A4C */ float unk_0A4C;
|
|
/* 0A50 */ float m_lastSentFacing;
|
|
/* 0A54 */ float m_lastSentPitch;
|
|
/* 0A58 */ uint32_t unk_0A58;
|
|
/* 0A5C */ uint8_t m_castCount;
|
|
/* 0A60 */ int32_t m_castSpellId;
|
|
/* 0A64 */ int32_t m_castSchoolImmunities;
|
|
/* 0A68 */ int32_t m_castImmunities;
|
|
/* 0A6C */ uint32_t m_castingSpellId;
|
|
/* 0A70 */ WOWGUID m_castingObject;
|
|
/* 0A78 */ uint32_t m_castStartTime;
|
|
/* 0A7C */ uint32_t m_castEndTime;
|
|
/* 0A80 */ uint32_t m_channelSpellId;
|
|
/* 0A84 */ uint32_t m_channelStartTime;
|
|
/* 0A88 */ uint32_t m_channelEndTime;
|
|
/* 0A8C */ uint32_t unk_0A8C;
|
|
/* 0A90 */ uint32_t unk_0A90;
|
|
/* 0A94 */ float m_renderFacing;
|
|
/* 0A98 */ float m_facingVelocity;
|
|
/* 0A9C */ float m_facingBlend;
|
|
/* 0AA0 */ CSmoothAngle m_smoothTarget;
|
|
/* 0AA8 */ float m_turnDelta [4];
|
|
/* 0AB8 */ float m_scriptedFacing;
|
|
/* 0ABC */ uint32_t m_lastTurnTimeMs;
|
|
/* 0AC0 */ uint32_t m_lootableTime;
|
|
/* 0AC4 */ SE2SoundKitObject m_loopSound;
|
|
/* 0AD8 */ int32_t m_mountFootprintTextureId;
|
|
/* 0ADC */ float m_mountFootprintLength;
|
|
/* 0AE0 */ float m_mountFootprintWidth;
|
|
/* 0AE4 */ uint32_t unk_0AE4 [3];
|
|
/* 0AF0 */ C3Vector m_animEventPosition;
|
|
/* 0AFC */ CEffect* m_procEffects;
|
|
/* 0B00 */ uint32_t unk_0B00 [3];
|
|
/* 0B0C */ float m_selectionRadius;
|
|
/* 0B10 */ uint32_t m_flashStartTime;
|
|
/* 0B14 */ CImVector m_flashColor;
|
|
/* 0B18 */ uint32_t m_flashDelay;
|
|
/* 0B1C */ uint32_t m_flashDuration;
|
|
/* 0B20 */ uint8_t m_proceduralFadeAlpha;
|
|
/* 0B21 */ uint8_t unk_0B21 [3];
|
|
/* 0B24 */ uint32_t m_proceduralFadeType;
|
|
/* 0B28 */ uint32_t m_proceduralFadeStart;
|
|
/* 0B2C */ uint32_t m_proceduralFadeDuration;
|
|
/* 0B30 */ uint32_t m_proceduralFadeEndAlpha;
|
|
/* 0B34 */ uint32_t unk_0B34 [2];
|
|
/* 0B3C */ float m_modelScale;
|
|
/* 0B40 */ CM2Model* unk_0B40;
|
|
/* 0B44 */ CM2Model* m_ammoModel;
|
|
/* 0B48 */ uint32_t m_ammoDisplayId;
|
|
/* 0B4C */ CCharacterComponent* m_characterComponent;
|
|
/* 0B50 */ uint32_t m_weaponTrails [2];
|
|
/* 0B58 */ uint32_t unk_0B58;
|
|
/* 0B5C */ uint32_t m_sheatheState;
|
|
/* 0B60 */ TSGrowableArray<WOWGUID> m_chainSpellTargets;
|
|
/* 0B70 */ C3Vector m_chainSpellLocation;
|
|
/* 0B7C */ int32_t m_mountAnimBehaviorId;
|
|
/* 0B80 */ int32_t m_animTier;
|
|
/* 0B84 */ int32_t m_torsoKeyBone;
|
|
/* 0B88 */ int32_t m_meleeAttackAnimId;
|
|
/* 0B8C */ int32_t m_pendingAnimId;
|
|
/* 0B90 */ int32_t m_awaitingEndAnimId;
|
|
/* 0B94 */ int32_t unk_0B94;
|
|
/* 0B98 */ ATTACKROUNDINFO m_lastAttackRound;
|
|
/* 0C38 */ CGNamePlateFrame* m_namePlateFrame;
|
|
/* 0C3C */ CGChatBubbleFrame* m_chatBubble;
|
|
/* 0C40 */ WOWGUID m_masterLooter;
|
|
/* 0C48 */ WOWGUID m_looter;
|
|
/* 0C50 */ TSCGrowableArray<AuraData, 16> m_auras;
|
|
/* 0DD4 */ TSCGrowableArray<SortedAuraInfo, 16> m_sortedAuras [2];
|
|
/* 0EDC */ TSCGrowableArray<uint32_t, 16> unk_0EDC;
|
|
/* 0F20 */ uint8_t m_auraEffectMask [40];
|
|
/* 0F48 */ TSGrowableArray<DelayedSpellVisualKit> m_delayedSpellVisualKits;
|
|
/* 0F58 */ uint32_t unk_0F58;
|
|
/* 0F5C */ CVehicle_C* m_vehicle;
|
|
/* 0F60 */ CVehiclePassenger_C* m_vehiclePassenger;
|
|
/* 0F64 */ CVehicleCamera_C* m_vehicleCamera;
|
|
/* 0F68 */ int32_t m_missileTrajectorySpell;
|
|
/* 0F6C */ uint32_t m_missileTrajectoryCastId;
|
|
/* 0F70 */ uint32_t m_missileTrajectoryStart;
|
|
/* 0F74 */ uint32_t m_missileTrajectoryEnd;
|
|
/* 0F78 */ uint8_t m_missileTrajectoryReleased;
|
|
/* 0F7C */ uint32_t m_wheelMask;
|
|
/* 0F80 */ float m_wheelAngles [8];
|
|
/* 0FA0 */ uint32_t unk_0FA0;
|
|
/* 0FA4 */ int32_t unk_0FA4;
|
|
/* 0FA8 */ CM2Model* m_precastMissileModel;
|
|
/* 0FAC */ uint8_t m_precastCastCount;
|
|
/* 0FB0 */ int32_t m_predictedHealth;
|
|
/* 0FB4 */ int32_t m_predictedPower [7];
|
|
/* 0FD0 */ uint32_t unk_0FD0;
|
|
/* 0FD4 */ uint32_t m_manaRegenInterruptTime;
|
|
/* 0FD8 */ uint32_t unk_0FD8 [2];
|
|
/* 0FE0 */ TSHashTable<UnitThreat, CHashKeyGUID> m_threats;
|
|
|
|
virtual void GetAFKText(char* buffer, uint32_t size) const;
|
|
virtual void GetDNDText(char* buffer, uint32_t size) const;
|
|
virtual void GetGMText(char* buffer, uint32_t size) const;
|
|
virtual void GetDevText(char* buffer, uint32_t size) const;
|
|
virtual void PlayUnitSound(uint32_t soundType, int32_t a2);
|
|
virtual void PlayFoleySound();
|
|
virtual uint32_t GetImpactType() const;
|
|
virtual const CGUnitVirtualItem* GetDefendingItem() const;
|
|
virtual bool IsDeadOrGhost() const;
|
|
virtual const CGUnitVirtualItem* GetVirtualItem(uint32_t slot, bool ignoreDisarm) const;
|
|
virtual int32_t GetVirtualItemDisplayRec(uint32_t slot, ItemDisplayInfoRec& rec) const;
|
|
virtual uint32_t GetVirtualItemDisplayID(uint32_t slot) const;
|
|
virtual uint32_t GetClientStandState() const;
|
|
virtual int32_t GetSpellRank(const SpellRec* spell) const;
|
|
virtual void GetDefenseSkillRank(int32_t& rank, int32_t& bonus) const;
|
|
virtual void GetAttackSkillRank(int32_t hand, int32_t& rank, int32_t& bonus) const;
|
|
virtual int32_t GetSpellCastingTime(const SpellRec* spell) const;
|
|
virtual float GetPitch() const;
|
|
int32_t ShouldFadeout() override;
|
|
C3Vector GetRawPosition() const override;
|
|
float GetRawFacing() const override;
|
|
uint64_t GetTransportGUID() const override;
|
|
int32_t CanBeTargetted() const override;
|
|
int32_t IsHighlightSuppressed() const override;
|
|
CM2Model* GetObjectModel() const override;
|
|
float GetBaseAlpha() const override;
|
|
int32_t IsQuestGiver() const override;
|
|
void UpdateInteractIcon() override;
|
|
void UpdateInteractIconAttach() override;
|
|
void UpdateInteractIconScale() override;
|
|
void ApplyAlpha(uint32_t time) override;
|
|
float GetTrueScale() const override;
|
|
C44Matrix GetMatrix() const override;
|
|
int32_t ShouldFadeIn() const override;
|
|
int32_t GetModelFileName(const char** name) const override;
|
|
C3Vector GetNamePosition() const override;
|
|
float GetFacing() const override;
|
|
float GetRenderFacing() const override;
|
|
int32_t AddPassenger(CPassenger* passenger, int32_t a2) override;
|
|
C3Vector GetPosition() const override;
|
|
void Disable() override;
|
|
void UpdateWorldObject(int32_t a2) override;
|
|
void PreAnimate(CGWorldFrame* frame) override;
|
|
void RefreshInteractIcon() override;
|
|
void ScaleChangeUpdate() override;
|
|
void ScaleChangeFinished() override;
|
|
void Render() override;
|
|
int32_t GetSelectionHighlightColor(CImVector* color) const override;
|
|
int32_t CanHighlight() const override;
|
|
void ObjectNameVisibilityChanged() override;
|
|
int32_t UpdateObjectNameString(int32_t a1, char* buffer, uint32_t size) override;
|
|
const char* GetObjectName() const override;
|
|
int32_t ShouldRenderObjectName(uint32_t flags) const override;
|
|
void OnRightClick() override;
|
|
void UpdateDisplayInfo(int32_t force) override;
|
|
int32_t Animate(float elapsed) override;
|
|
void ModelLoaded(CM2Model* model) override;
|
|
void ShouldRender(uint32_t flags, int32_t& culled, int32_t& hidden) override;
|
|
void Reenable() override;
|
|
void PostReenable() override;
|
|
|
|
bool IsActivePlayer();
|
|
CGUnit_C(uint32_t time, const CClientObjCreate& create);
|
|
void OnDeath();
|
|
void PostInit(uint32_t time, const CClientObjCreate& create, bool reenable);
|
|
void SetClientInitData(const CClientObjCreate& create, bool activeMover);
|
|
void SetStorage(uint32_t* storage, uint32_t* saved);
|
|
void SetUpdateInfo(const CClientMoveUpdate& update, int32_t activeMover);
|
|
int32_t IsActiveMover() const;
|
|
float GetDistanceToPos(const C3Vector& pos) const;
|
|
VehicleRec* GetVehicleRec() const;
|
|
uint32_t GetAuraCount() const;
|
|
int32_t GetAuraSpellId(uint32_t index);
|
|
int32_t IsMounted() const;
|
|
void UpdateFloodsafeMoveEvents(uint32_t time);
|
|
void PostAnimate(CGWorldFrame* worldFrame);
|
|
AuraData* GetAura(uint32_t index);
|
|
uint8_t GetAuraFlags(uint32_t index);
|
|
int32_t IsControllable() const;
|
|
VehicleSeatRec* GetVehicleSeatRec(uint8_t seat) const;
|
|
void PreStartUpdatingMissileTrajectory(int32_t spellId, uint32_t castId);
|
|
void StartUpdatingMissileTrajectory(int32_t spellId, uint32_t start, uint32_t end);
|
|
void StopUpdatingMissileTrajectory(int32_t spellId);
|
|
int32_t IsUpdatingMissileTrajectory() const;
|
|
int32_t IsMissileTrajectoryUpdateWaitingForMissileRelease() const;
|
|
bool IsLocalClientControlled() const;
|
|
void FreeComponent();
|
|
uint32_t GetCombatReadyAnim() const;
|
|
int32_t ChooseRangedLoadAnim(uint32_t flags, uint32_t* anim) const;
|
|
void RemoveMountModel();
|
|
void RotateFacing(float delta);
|
|
uint32_t GetCreatureFamily() const;
|
|
void SaveChainSpellLocation(const C3Vector* location);
|
|
void StartMountTransition(const MountTransitionObject* transition, CEffect* effect);
|
|
void StopMountTransition();
|
|
bool IsStandStateSplitBody() const;
|
|
const char* GetDisplayBakeName() const;
|
|
const char* GetPortraitTextureName() const;
|
|
void SetAnimEventPosition(const C3Vector* position);
|
|
void SetCastingSpell(uint8_t castCount, int32_t spellId);
|
|
void SetCastSchoolImmunities(int32_t immunities);
|
|
void SetCastImmunities(int32_t immunities);
|
|
void SetCastingAutoRepeat(bool enable);
|
|
void SetCastingAnim(bool enable);
|
|
bool IsBossMob() const;
|
|
bool IsLinkAll() const;
|
|
bool HasNoShadowBlob() const;
|
|
bool ShowFactionTooltip() const;
|
|
bool IsTreatAsRaidUnit() const;
|
|
bool IsForceGossip() const;
|
|
bool CanInteractWhileDead() const;
|
|
uint32_t GetSkinningType() const;
|
|
void GetCursorFile(int32_t unable, char* buffer, uint32_t size) const;
|
|
bool MountedCombatAllowed() const;
|
|
bool CanAidPlayers() const;
|
|
uint64_t GetLooter() const;
|
|
uint64_t GetMasterLooter() const;
|
|
void InitWheels();
|
|
int32_t GetPredictedHealth() const;
|
|
void SetPredictedHealth(int32_t health);
|
|
float GetMaxCameraHeight() const;
|
|
uint32_t GetCreatureClassification() const;
|
|
int32_t IsDeepInLiquid() const;
|
|
bool DoNotLogDeath() const;
|
|
CGUnit_C* GetControllingPlayer();
|
|
int32_t IsDisarmed(int32_t hand) const;
|
|
CreatureSoundDataRec* GetMountSoundDataRec() const;
|
|
const char* GetUnitTitle() const;
|
|
int32_t IsSplashing(const C3Vector& position) const;
|
|
int32_t HasBakedNpcTexture() const;
|
|
uint32_t GetDisplayRace() const;
|
|
uint32_t GetDisplaySex() const;
|
|
uint32_t GetShapeshiftForm() const;
|
|
int32_t IsInMelee() const;
|
|
int32_t IsInCombat() const;
|
|
void UnRootEffects();
|
|
uint64_t GetCreatorGuid() const;
|
|
bool CanGainXP() const;
|
|
int32_t IsPVPLeader() const;
|
|
uint32_t GetBasePowerForType(int32_t powerType) const;
|
|
uint32_t GetCanFly() const;
|
|
int32_t IsInMeleeRange(CGUnit_C* target) const;
|
|
bool IsClientControlled() const;
|
|
void OnCollideFallReset(uint32_t time);
|
|
int32_t OnCollideFallLandNotify(uint32_t time, uint32_t oldFlags, uint32_t oldFlags2, int32_t jumping);
|
|
void SendSplineDone(uint32_t time, uint32_t splineId);
|
|
void RequestMirrorImageData();
|
|
int32_t ChooseSpecialIdleAnim(uint32_t flags, uint32_t* anim) const;
|
|
int32_t ChooseEmoteAnim(uint32_t flags, uint32_t* anim) const;
|
|
uint32_t GetCurrentTorsoAnimId() const;
|
|
uint32_t GetCurrentBaseAnimId() const;
|
|
uint32_t GetCurrentMountAnimId() const;
|
|
void GetCurrentAnimationInfo(M2BoneSequenceInfo* mount, M2BoneSequenceInfo* base, M2BoneSequenceInfo* torso, int32_t keepFinished) const;
|
|
int32_t FindDefaultAnimForTier(int32_t tier, uint32_t* anim) const;
|
|
CreatureModelDataRec* GetModelData() const;
|
|
int32_t CanBeLooted(uint32_t time) const;
|
|
void ModifyPredictedHealth(int32_t delta);
|
|
void InitPredictedPower();
|
|
void SetManaRegenInterrupt();
|
|
int32_t UsesNpcBakedTexture() const;
|
|
int32_t OverrideAnimForFlying(uint32_t* anim) const;
|
|
int32_t GetCreatureType() const;
|
|
PetPersonalityRec* GetPetPersonality() const;
|
|
void GetFootprintInfo(int32_t* textureId, float* size) const;
|
|
int32_t IsControlledByViewer() const;
|
|
bool CanAttack(const CGUnit_C* unit) const;
|
|
int32_t CanEquipItemsInThisForm() const;
|
|
uint32_t GetVoiceSex() const;
|
|
bool IsShapeShifted() const;
|
|
void PreemptivelyCancelShapeshift();
|
|
bool IsCancelShapeshiftAtFlightMaster() const;
|
|
int32_t IsAutoTracking() const;
|
|
bool IsActiveMoverTracking(uint32_t typeMask) const;
|
|
void TrackingMakeRelativeTo(const C44Matrix* transform, float facing);
|
|
const char* GetFrameScriptText(const char* token, int32_t count) const;
|
|
uint64_t GetAuraCaster(uint32_t index);
|
|
void KillCreatureLoopSound();
|
|
bool GetWeaponSwingType(bool offhand, int32_t* swingType) const;
|
|
void PlayStandSound();
|
|
int32_t GetNewNPCSoundCount(int32_t count, int32_t* soundKitId, int32_t* soundIndex) const;
|
|
void PlayEmoteStateSound(const C3Vector* position);
|
|
int32_t GetUnitSoundKitIndex(uint32_t soundType) const;
|
|
void VehiclePassengerOnUninit();
|
|
int32_t HasVehicleTransport() const;
|
|
int32_t IsSeatedInVehicle() const;
|
|
uint32_t IsStrafingDisabled() const;
|
|
uint32_t IsVehicleCurrentlyUnstoppable() const;
|
|
const CGUnitVirtualItem* GetParryingItem(bool offhand) const;
|
|
int32_t GetUnitSize() const;
|
|
const CGUnitVirtualItem* GetAttackingWeapon(int32_t hand, bool requireLoadedModel) const;
|
|
void StopAttack();
|
|
bool IsInVehicle() const;
|
|
float GetTorsoAnimProgress() const;
|
|
void BuildSmoothMatrix(C44Matrix& matrix) const;
|
|
void GetSwimMatrix(C44Matrix& matrix) const;
|
|
int32_t IsLooting() const;
|
|
void ClearPrecastMissileModel(uint8_t castCount);
|
|
uint64_t GetCameraRelativeTo() const;
|
|
void SetMaxAlpha(float alpha);
|
|
void PlaySplashSound(const C3Vector* position);
|
|
void PlayAISound(int32_t soundKitId);
|
|
void PlayDismountSound();
|
|
void Dismount();
|
|
CGUnit_C* FindRootVehicle(CGUnit_C* stop);
|
|
CGUnit_C* FindRootVehicleOfPassengerChain(CGUnit_C* stop);
|
|
int32_t VehiclePassengerIsTransitionAllowed(const VehicleSeatRec* seat, int32_t checkSeat) const;
|
|
int32_t ShouldUseVehicleSeatExitAnimation(const VehicleSeatRec* seat) const;
|
|
int32_t IsRunning() const;
|
|
int32_t ChooseMovementAnim(uint32_t flags, uint32_t* anim) const;
|
|
float GetStandHeight() const;
|
|
C3Vector BuildSmoothPosition() const;
|
|
C3Vector GetMissileFirePosition() const;
|
|
void StartProceduralFade(uint8_t alpha, uint32_t type, uint32_t time, uint32_t hold, uint32_t endAlpha);
|
|
bool AnimSuppressesMovement() const;
|
|
int32_t ChooseSubmergeAnim(uint32_t flags, uint32_t* anim) const;
|
|
CAaBox GetStandBox() const;
|
|
uint32_t GetHappinessIndex() const;
|
|
bool DoNotPlayWoundAnim() const;
|
|
void CreateFishingLineEffect();
|
|
int32_t ChooseFallAnim(uint32_t* anim) const;
|
|
void SaveChainSpellTargets(const TSStackArray<WOWGUID>& targets);
|
|
bool HasAuraBySpellId(int32_t spellId);
|
|
bool HasAuraActive(int32_t spellId);
|
|
int32_t GetAuraIndex(int32_t spellId);
|
|
bool IsVehiclePreventingTurning() const;
|
|
bool IsAlteredFormTransitionPreventingMovement() const;
|
|
void SetImpactKitEffect(bool offhand, const ATTACKROUNDINFO* info, const C3Vector* position);
|
|
bool IsPetBarUsed() const;
|
|
void ConvertVehicleCameraRelativeFacingToTransportRelativeFacing(float& facing);
|
|
void ResetSmoothFacing();
|
|
float GetSmoothFacing() const;
|
|
void UpdateSmoothFacing(float* facingOffset);
|
|
void ChooseDefaultAnim(uint32_t& anim, int32_t force) const;
|
|
void UpdateSelectionRadius();
|
|
void OnRemoteMissileTrajectoryCollision(MissileCollisionData* data);
|
|
int32_t UnitReaction(const CGCorpse_C* corpse) const;
|
|
CreatureSoundDataRec* GetSoundData() const;
|
|
void PlayNPCSound(bool greeting);
|
|
bool CanCurrentFormMount() const;
|
|
SummonPropertiesRec* GetSummonProperties() const;
|
|
bool CanTurnWhileCasting() const;
|
|
void UpdateAmmoModel(uint32_t displayId, uint32_t invType);
|
|
void PlayFidgetSound(uint32_t index);
|
|
void PlayDeathThud();
|
|
void HandlePlayStandSound(uint32_t eventId, int32_t a3);
|
|
void HandleFootfallAnimEvent(const C3Vector& position);
|
|
void OnFlightLocal(uint32_t eventTime, int32_t flying);
|
|
void OnMoveStartLocal(uint32_t eventTime, int32_t forward);
|
|
void OnMoveStopLocal(uint32_t eventTime);
|
|
void OnStrafeStartLocal(uint32_t eventTime, int32_t left);
|
|
void OnStrafeStopLocal(uint32_t eventTime);
|
|
void OnTurnStartLocal(uint32_t eventTime, int32_t left);
|
|
void OnTurnStopLocal(uint32_t eventTime);
|
|
void OnPitchStartLocal(uint32_t eventTime, int32_t up);
|
|
void OnPitchStopLocal(uint32_t eventTime);
|
|
void OnAscendDescendStartLocal(uint32_t eventTime, int32_t ascend);
|
|
void OnAscendDescendStopLocal(uint32_t eventTime);
|
|
void OnFallLocal(uint32_t eventTime);
|
|
void ChangeStandState(uint32_t standState);
|
|
void TryJumpOrAscend(uint32_t eventTime);
|
|
int32_t ProcessLocalMoveEvent(uint32_t eventTime, uint32_t msgId, bool send, float value, uint32_t index, uint64_t transport, uint8_t seat);
|
|
int32_t SendMovementUpdate(uint32_t time, uint32_t msgId, float value, uint32_t index, uint64_t transport, uint8_t seat);
|
|
int32_t BuildMovementUpdate(uint32_t time, uint32_t msgId, CDataStore* msg, float value, uint32_t index);
|
|
int32_t IsAllowedToSendMessage(uint32_t msgId) const;
|
|
void SendTimeSkip(uint32_t skip);
|
|
int32_t HandleFloodsafeTurnEvent(uint32_t time, uint32_t msgId);
|
|
int32_t HandleFloodsafePitchEvent(uint32_t time, uint32_t msgId);
|
|
int32_t FlushFloodsafeMoveEvents(uint32_t time);
|
|
int32_t IsBelowHalfBaseSpeed() const;
|
|
void CancelRangedMode();
|
|
bool CanAutoInteract() const;
|
|
bool CanAutoStand() const;
|
|
int32_t VerifyAttackIconPressed(const WOWGUID& target, int32_t a3, int32_t a4, int32_t a5, bool a6);
|
|
void SetTrackingDirection(const C3Vector& direction);
|
|
void MoveEventHappened(uint32_t msgId);
|
|
void HandlePendingTrackEvents();
|
|
void ToggleRunModeLocal(uint32_t eventTime);
|
|
bool CanAssist(const CGCorpse_C* corpse) const;
|
|
void CheckLoopSound();
|
|
C3Vector GetAttachmentPosition(uint32_t attachId, const C3Vector* offset);
|
|
void UpdateAuraEffectMask();
|
|
void UpdateObjectEffectAnimationStates();
|
|
bool HasAuraEffect(int32_t auraType) const;
|
|
void Unk716040();
|
|
C3Spline_CatmullRom* GetSpline();
|
|
float GetSplineElapsedTime();
|
|
float GetSplineDuration();
|
|
int32_t HasAttachmentForEffect(uint32_t id, int32_t raw) const;
|
|
C3Vector GetAttachmentPositionForEffect(uint32_t id, const C3Vector& offset, int32_t raw);
|
|
bool Unk71A9A0(uint32_t time, CImVector& color);
|
|
int32_t Unk71AE80() const;
|
|
bool ShouldKneelForLoot() const;
|
|
void SetVehicleExitVoluntary(int32_t enable);
|
|
void OnDismissControlledVehicleLocal(uint32_t eventTime);
|
|
void SetEmoteQueue(const QUESTGIVEREMOTENODE* nodes, uint32_t count);
|
|
DelayedSpellVisualKit* DelaySpellVisualKit(int32_t spellId, int32_t kitId, int32_t kitType, const C3Vector* position, WOWGUID targetGuid, int32_t a7, int32_t a8, int32_t delay, int32_t a10, int32_t a11);
|
|
C3Vector GetGroundNormal() const;
|
|
bool Unk71BC50(CGObject_C* target) const;
|
|
int32_t ChooseLootAnim(uint32_t flags, uint32_t* animId);
|
|
void OnChangeSeatsOnControlledVehicleLocal(uint32_t eventTime, WOWGUID transport, uint8_t seat);
|
|
int32_t IsInFrontOfTargetWithGuid(const WOWGUID& guid) const;
|
|
void UpdateWorldTransform(float elapsed);
|
|
void SetKeyBoneSequenceSpeed(CM2Model* model, uint32_t boneId, float speed, int32_t force);
|
|
void ReleaseEffectsBySpell(int32_t spellId);
|
|
void SetKeyBoneSequence(CM2Model* model, uint32_t boneId, uint32_t sequenceId, uint32_t variation, uint32_t time, float speed, int32_t blend, int32_t primary, int32_t force);
|
|
int32_t UnsetKeyBoneSequence(CM2Model* model, uint32_t boneId, int32_t blend, int32_t primary, int32_t force);
|
|
void SetBoneSequenceTimeRecursive(CM2Model* model, uint32_t boneId, uint32_t time, int32_t force);
|
|
void UpdateBoneSequenceFlags(CM2Model* model, int32_t freeze, int32_t force);
|
|
void Unk738440();
|
|
void OnCollideFalling();
|
|
void CreateVehicleData(const CClientObjCreate* create, int32_t vehicleId);
|
|
void RefreshDataPointers();
|
|
void InitializeActivePlayerComponent();
|
|
void PlayBaseAnimation(uint32_t animId, int32_t flags);
|
|
void SetAnimType(uint8_t animTier);
|
|
void RegisterScript(uint32_t flags);
|
|
void UnregisterScript(uint32_t flags);
|
|
void StopNamePlateSpellbar();
|
|
bool IsCastNotInterruptible() const;
|
|
bool CanAutoDismount() const;
|
|
bool ProcessCastNotInterruptible(const SpellRec* spell);
|
|
bool IsNotHostileTo(const CGUnit_C* unit) const;
|
|
bool CanAssist(const CGUnit_C* unit, bool ignoreFlags) const;
|
|
bool CanAttackNow(const CGUnit_C* unit) const;
|
|
bool CanCooperate(const CGUnit_C* unit) const;
|
|
void HandleNPCFeedback();
|
|
void CreateVehicleCamera();
|
|
bool IsOutdoors() const;
|
|
int32_t GetPredictedPower(int32_t powerType) const;
|
|
bool IgnoresAuraState(const SpellRec* spell) const;
|
|
bool CheckStealthRules(const SpellRec* spell, int32_t* reason) const;
|
|
bool CheckShapeshiftRules(const SpellRec* spell, int32_t* reason);
|
|
bool CanAutoCancelShapeshift() const;
|
|
bool AffectedByAura(int32_t auraType, const SpellRec* spell) const;
|
|
bool HasAura(int32_t spellId) const;
|
|
bool IsInMyPartyOrRaid(const CGUnit_C* unit) const;
|
|
bool IsInMyParty(const CGUnit_C* unit) const;
|
|
static uint8_t GetThreatSituation(const WOWGUID& guid);
|
|
bool CalculateThreat(const WOWGUID& guid, uint8_t* status, float* rawPercent, float* percent, int32_t* threat);
|
|
char* GetUnitChosenTitle(char* buffer, uint32_t size, int32_t showTitle, int32_t* lines);
|
|
void RequestTalkEmote(int32_t animation);
|
|
void ChatBubbleShow(int32_t type, const char* text);
|
|
void PlayTextEmoteSound(uint32_t emote, uint32_t emoteNum);
|
|
SkillLineAbilityRec* LookupAbility(int32_t spellId);
|
|
void SignalPlayerGainsVehicleDataEvent();
|
|
const char* GetUnitName(const char** realm, int32_t a2);
|
|
void SetCharacterModel(CM2Model* model);
|
|
float GetModelScale(uint32_t displayId);
|
|
float GetModelScale(const CreatureDisplayInfoRec* displayInfo, const CreatureModelDataRec* modelData);
|
|
void OnMoveUpdate(uint32_t time, int32_t a3, int32_t a4);
|
|
void UpdateFlightStatus(uint32_t time);
|
|
void UpdateSwimmingStatus(uint32_t time, int32_t a3);
|
|
void VehiclePassengerInit();
|
|
void DestroyVehicleCamera();
|
|
void OnVehicleCameraPossiblyNeeded();
|
|
void UpdateDisplay(uint32_t time);
|
|
void UpdateMissileTrajectory();
|
|
void OnVehicleCameraPossiblyUnneeded();
|
|
void UpdateUnitCollisionBox(int32_t a2, int32_t a3);
|
|
void CreateUnitMount(int32_t a2, int32_t a3);
|
|
void Unk717BA0();
|
|
void UpdateReaction(bool a1);
|
|
void ApplyModelFade();
|
|
void ComputeSmoothedSwimMatrix(C44Matrix* matrix, float elapsed, int32_t a3);
|
|
int32_t InitializeComponent();
|
|
void MountTransitionSetCharacterTransform(float elapsed);
|
|
void Unk71FBF0();
|
|
int32_t DisplayInfoNeedsUpdate();
|
|
int32_t IsDeadOrAttachmentDying();
|
|
void RecreateNamePlate();
|
|
void ScanAuraSpellsOnDisplayUpdate();
|
|
void OnCollideFallLand(uint32_t a1, int32_t a2);
|
|
void VehiclePassengerOnUpdateTransport(WOWGUID transport, uint8_t seat, int32_t a3);
|
|
void HandleBloodPool(uint32_t time);
|
|
void NamePlateAddOrUpdate(const C3Vector& position, CGWorldFrame* worldFrame);
|
|
void ReleaseMissiles();
|
|
void ReleaseMissiles(const C3Vector& position);
|
|
int32_t ShouldShowNamePlate(CGWorldFrame* worldFrame, C3Vector* position);
|
|
void Unk72E270();
|
|
void CheckApplyPeriodicClientTriggers();
|
|
void DestroyNamePlate();
|
|
void HandleScaleUpdate(float scale);
|
|
void NPCFlagChanged(uint32_t oldFlags);
|
|
void OnChannelObjectChanged(WOWGUID oldObject, int32_t oldSpell);
|
|
void OnChannelSpellChanged(int32_t oldSpell);
|
|
void OnDynamicFlagsChanged(uint32_t oldFlags);
|
|
void OnFlag2Changed(uint32_t oldFlags);
|
|
void OnFlagChanged(uint32_t oldFlags);
|
|
void OnLevelChange();
|
|
void OnLife(bool a1);
|
|
void OnMountDisplayChanged(int32_t displayId);
|
|
void OnPvPFlagChanged(uint8_t oldFlags);
|
|
void OnVirtualItemChanged(uint32_t slot, int32_t oldItemId);
|
|
void OnVisFlagChanged(uint8_t oldFlags);
|
|
void SetPredictedPower(int32_t powerType, int32_t value);
|
|
void SetSheatheState(uint32_t showWeapons, int32_t a2, int32_t a3);
|
|
void UpdateClientStandState(uint32_t standState);
|
|
void UpdateModelScale(const CreatureModelDataRec* modelRec);
|
|
void UpdateScriptRegistration();
|
|
void UpdateBreathState(uint32_t time);
|
|
void Unk720DB0(uint32_t time);
|
|
void ProcessEmoteQueue();
|
|
void CreateRipple(uint32_t a2);
|
|
void SmoothFacingAngle(float facing);
|
|
void RotateWheels();
|
|
int32_t Unk71DE90();
|
|
void UpdateDelayedSpellVisualKits();
|
|
void PlayFallLandAnimation(uint32_t oldFlags, int32_t jumping);
|
|
void HandleEnvironmentDamage(uint32_t type, int32_t damage, int32_t absorbed, int32_t resisted);
|
|
bool CheckSelfResurrect();
|
|
uint32_t ChooseAnimation(uint32_t mask, uint32_t* animFlags, int32_t* usedDefault);
|
|
int32_t ChooseDeathAnim(uint32_t mask, uint32_t* anim, uint32_t* animFlags);
|
|
int32_t ChooseSpellVisualKitAnim(uint32_t mask, uint32_t* anim, uint32_t* animFlags);
|
|
int32_t ChooseCombatAnim(uint32_t mask, uint32_t* anim, uint32_t* animFlags);
|
|
int32_t ChooseShuffleAnim(uint32_t mask, uint32_t* anim);
|
|
int32_t ChooseStandStateAnim(uint32_t mask, uint32_t* anim);
|
|
int32_t HasAnim466();
|
|
int32_t GetSpellVisualKitAnim(uint32_t* anim, uint32_t* kitFlags);
|
|
uint32_t ResolveAnimForModel(uint32_t animId, CM2Model* model);
|
|
void ClearLockedTarget();
|
|
void PlayDeathAnimation(int32_t force);
|
|
static int32_t UnitReaction(int32_t factionTemplate, const CGUnit_C* unit);
|
|
bool IsFriendly(const CGUnit_C* unit) const;
|
|
bool IsHatedTowards(const CGUnit_C* unit) const;
|
|
uint64_t GetComboPointTarget() const;
|
|
bool IsVehiclePassengerSeated() const;
|
|
const VehicleSeatRec* GetPassengerSeatRec() const;
|
|
void UpdateWeaponTrails(const uint32_t* a2, uint32_t a3);
|
|
int32_t ApplyAttachmentAnimOverride(const M2BoneSequenceInfo* mount, const M2BoneSequenceInfo* base, const M2BoneSequenceInfo* torso, int32_t hasTorso, M2BoneSequenceInfo* mountOut, M2BoneSequenceInfo* baseOut, M2BoneSequenceInfo* torsoOut, int32_t* keepBase, int32_t* keepTorso);
|
|
void ProcessAnimationEvent(M2BoneSequenceInfo* slot, uint32_t currentAnim, int32_t torso, uint32_t previousAnim, int32_t blend, int32_t keepVariation);
|
|
int32_t ShouldSplitTorsoAnimation(uint32_t animId, uint32_t currentAnim);
|
|
void UpdateHandItemAnimEffects(bool force);
|
|
void ShowHandItemSpellEffects(int32_t a1, int32_t a2);
|
|
void SetHandItemSpellEffectsVisible(int32_t visible);
|
|
void PropagateSmoothFacing(float facing);
|
|
static int32_t UpdateObjectNameStringForUnit(CGUnit_C* unit, int32_t a1, char* buffer, uint32_t size, uint32_t a5);
|
|
void RenderAutoTrackCursor();
|
|
void UpdateChannelEffects();
|
|
void CreateOrDestroyObjectEffectManager();
|
|
void UpdateBaseAnimation(uint32_t animFlags, int32_t mask);
|
|
void UpdatePartyMemberPetState();
|
|
void ExecuteClientControlUpdate(WOWGUID guid, uint8_t state);
|
|
int32_t UnitReaction(const CGUnit_C* unit) const;
|
|
void SetAttacking(WOWGUID guid);
|
|
void UpdateObjectEffectMovementStates();
|
|
void DestroyUnitMount(int32_t a2);
|
|
void OnDeathAnimate();
|
|
void Unk71EE70();
|
|
void ClearTrackingTarget(bool a2, bool a3);
|
|
void HandleTracking(float drunkness, float turnOffset);
|
|
void OnSetPitchLocal(uint32_t eventTime, float pitch);
|
|
void OnPitchToAngleLocal(uint32_t eventTime, float pitch);
|
|
void OnTurnToAngleLocal(uint32_t eventTime, float facing);
|
|
void OnSetRawFacingLocal(uint32_t eventTime, float facing);
|
|
void UpdatePetReaction();
|
|
void ClearThreatList();
|
|
bool IsDuelingWith(CGUnit_C* unit);
|
|
void PlayEmoteAnimation(uint32_t emote);
|
|
int32_t OnMoveEvent(NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t OnSpeedChangeEvent(NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t OnMoveModePacket(uint32_t time, NETMESSAGE msgId, CDataStore* msg);
|
|
int32_t OnSplineMoveEffectPacket(NETMESSAGE msgId);
|
|
int32_t OnSplineSpeedChange(NETMESSAGE msgId, float value);
|
|
int32_t OnTurnStart(uint32_t time, const CMovementStatus& status, int32_t left);
|
|
int32_t OnPitchStart(uint32_t time, const CMovementStatus& status, int32_t up);
|
|
int32_t OnMoveUnRoot(uint32_t time, const CMovementStatus& status);
|
|
int32_t OnUnitMoveEvent(uint32_t time, const CMovementStatus& status);
|
|
int32_t OnKnockBack(uint32_t time, const CMovementStatus& status, CDataStore* msg);
|
|
void OnTeleportAck(uint32_t time, uint32_t ackCounter, CDataStore* msg);
|
|
void OnKnockBackLocal(uint32_t time, uint32_t ackCounter, CDataStore* msg);
|
|
void OnMovementInitiated(bool clearTracking, bool keepLoot);
|
|
int32_t SendMovementUpdate(uint32_t msgId);
|
|
static void SetActiveMover(uint64_t guid);
|
|
static void StartMissileTrajectoryTargeting(CGUnit_C* unit, const VehicleRec* vehicleRec);
|
|
int32_t VehiclePassengerStartWaitingForVehicleTransitionAnim(uint64_t transport, uint8_t seat);
|
|
void ClearAttackRound();
|
|
void SetUICastingSpell(int32_t spellId, const WOWGUID& target, int32_t castTime);
|
|
bool SetTrackingTarget(const WOWGUID& target, int32_t type);
|
|
void ClearCastingSpell(int32_t spellId, bool clearChannel, bool a4);
|
|
void ApplySpellVisualTrail(const SpellVisualRec* visual, int32_t a3);
|
|
void SpellInterrupted(uint8_t castCount, int32_t spellId);
|
|
void ResetUICastingSpell();
|
|
void OnKeyBoneAnimEnd(CM2Model* model, uint32_t boneId, uint32_t sequenceId);
|
|
int32_t OnAttackIconPressed(WOWGUID target, int32_t a3);
|
|
void AddAuraSlot(uint8_t slot);
|
|
void AddAuraEffect(uint32_t index, const SpellRec* spell);
|
|
void RemoveAuraEffect(uint32_t index, const SpellRec* spell);
|
|
void OnAuraAdded(uint32_t index, uint8_t a3, AuraData* aura, int32_t spellId);
|
|
void OnAuraRemoved(uint32_t index, uint8_t a3, AuraData* aura, int32_t spellId);
|
|
bool IsPlayingWeaponAnim() const;
|
|
void SetSheatheStateInstant();
|
|
void SetSheatheStateAnimate();
|
|
int32_t SheatheHandItem(uint32_t hand, int32_t sheathe);
|
|
int32_t ShowRangedWeapon(bool sheathed, bool* rightHand);
|
|
int32_t UnsheatheRightWeapon();
|
|
int32_t UnsheatheLeftWeapon();
|
|
void AnimEndHandler(CM2Model* model, uint32_t boneId, uint32_t sequenceId, int32_t interrupted, uint32_t time);
|
|
void OnBaseAnimEnd(CM2Model* model, uint32_t boneId, uint32_t sequenceId);
|
|
void ExchangeSheathedWeapon(const C3Vector* position, uint32_t hand, uint32_t flag);
|
|
int32_t GetPrecastStartAnim();
|
|
static void BowModelLoaded(CM2Model* model, void* arg);
|
|
void PlayWoundAnimKit(int32_t crit);
|
|
void ShowBloodSpurt(const WOWGUID& attacker, int32_t a3);
|
|
void ModifyPredictedPower(int32_t powerType, int32_t delta);
|
|
void AddWorldText(const WOWGUID& source, int32_t reason, const SpellRec* spell, bool periodic);
|
|
void PlayCombatSpellMissEffects(uint32_t reason, const WOWGUID& source);
|
|
void CreateMissile(const TSStackArray<SpellCastTargetPoint>& points, PendingSpellCastData* data, uint32_t ammoDisplayId, uint32_t ammoInventoryType, const SpellVisualRec* visual, int32_t spellId, uint32_t delay);
|
|
void OnAuraUpdate(CDataStore* msg, bool updateAll);
|
|
void OnAttackStop(uint64_t target, int32_t faceTarget);
|
|
void PlayAttackerRound(const ATTACKROUNDINFO& info);
|
|
void PlayVictimRound(const ATTACKROUNDINFO& info);
|
|
void PlayVictimWorldFeedback(const ATTACKROUNDINFO& info);
|
|
void OnMonsterMove(CDataStore* msg, NETMESSAGE msgId, uint64_t transport, uint8_t seat, int32_t flush);
|
|
void FaceTarget(const WOWGUID& target, int32_t flush);
|
|
int32_t DeferVehicleTransitionSpline(CDataStore* msg, uint64_t transport, uint8_t seat);
|
|
int32_t VehiclePassengerShouldWaitForVehicleTransitionAnim(uint64_t transport, uint8_t seat) const;
|
|
void AddWorldDamageText(const WOWGUID& source, int32_t amount, const SpellRec* spell, bool crit, bool periodic, bool spellColor);
|
|
void UpdateSpellCastBars(uint32_t time);
|
|
void FillPartyMemberPetState(CGPartyPetState* state);
|
|
void Unk71AEE0(uint32_t time);
|
|
};
|
|
|
|
void CreatureQueryCallback(int32_t id, const WOWGUID& guid, void* param, bool success);
|
|
int32_t FactionTemplateReaction(const FactionTemplateRec* faction, const FactionTemplateRec* other);
|
|
int32_t Packet_SMSG_MULTIPLE_PACKETS(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_UNKNOWN_1240(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_PET_DISMISS_SOUND(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_MOUNTSPECIAL_ANIM(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
float CopySign(float value, float sign);
|
|
int32_t AnimTierChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t TargetChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t HoverHeightChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t AuraStateUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t ChannelSpellOrObjectChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t DisplayIDUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t DynamicFlagsChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t EmoteStateUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t MountDisplayIDUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t NPCFlagsHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t PetNameChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t PetNumberChangeHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitScaleUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t SheatheStateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t StandStateUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitCharmedUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitDisplayPowerUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitFactionUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitFlag2UpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitFlagUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitHealthUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitLevelUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitMaxPowerUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitModeUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitPowerUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitPvPFlagUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t UnitVisFlagUpdateHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t VirtualItemIDMirrorHandler(WOWGUID guid, uint32_t fieldOffset, uint32_t fieldSize, const void* oldValue, void* param);
|
|
int32_t Packet_AuraUpdate(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_MoveMode(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_MSG_MOVE_TIME_SKIPPED(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_AI_REACTION(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_CANCEL_AUTO_REPEAT(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_CLIENT_CONTROL_UPDATE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_COMPRESSED_MOVES(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_DISMOUNT(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_FLIGHT_SPLINE_SYNC(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_FORCE_DISPLAY_UPDATE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_HEALTH_UPDATE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_LOOT_LIST(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_MIRRORIMAGE_DATA(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_MULTIPLE_MOVES(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_PET_ACTION_SOUND(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_PLAYER_VEHICLE_DATA(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_POWER_UPDATE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_PRE_RESURRECT(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_STANDSTATE_UPDATE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_THREAT_CLEAR(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SMSG_THREAT_REMOVE(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SplineMoveEffect(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_SplineSpeedChange(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
int32_t Packet_ThreatUpdate(void* param, NETMESSAGE msgId, uint32_t time, CDataStore* msg);
|
|
|
|
extern int32_t g_environmentalDamageVisualKits[6];
|
|
int32_t GetAnimBehaviorId(uint32_t animId);
|
|
int32_t IsBirthAnim(uint32_t animId);
|
|
int32_t IsSubmergedDeathAnim(uint32_t animId);
|
|
int32_t IsCorpseAnim(uint32_t animId);
|
|
int32_t IsAirborneAnim(uint32_t animId);
|
|
int32_t IsDyingAnim(uint32_t animId);
|
|
int32_t IsSpecialIdleAnim(uint32_t animId);
|
|
int32_t IsDeadOrDyingAnim(uint32_t animId);
|
|
int32_t IsEmoteAnim(uint32_t animId);
|
|
int32_t IsSpellCastAnim(uint32_t animId);
|
|
int32_t IsThrownWeaponAnim(uint32_t animId);
|
|
int32_t IsBowAnim(uint32_t animId);
|
|
int32_t IsRifleAnim(uint32_t animId);
|
|
int32_t IsMeleeAttackAnim(uint32_t animId);
|
|
void ApplyKitAnimFlags(uint32_t kitFlags, uint32_t* animFlags);
|
|
int32_t IsFullBodyAnim(uint32_t animId);
|
|
int32_t IsLocomotionAnimId(uint32_t animId);
|
|
int32_t IsMeleeOrReadyAnim(uint32_t animId);
|
|
int32_t IsSpellCastOrPrecastAnim(uint32_t animId);
|
|
int32_t IsSpellPrecastAnim(uint32_t animId);
|
|
int32_t IsUpperBodyAnim(uint32_t animId);
|
|
int32_t IsWeaponReadyAnim(uint32_t animId);
|
|
int32_t IsWeaponSpecialAnim(uint32_t animId);
|
|
int32_t IsJumpAnim(uint32_t animId);
|
|
int32_t IsJumpLandAnim(uint32_t animId);
|
|
int32_t IsFishingAnim(uint32_t animId);
|
|
int32_t IsRangedWeaponAnim(uint32_t animId);
|
|
void WeaponTrailSetDrawTrail(uint32_t trail, const uint32_t* a2, uint32_t a3);
|
|
|
|
namespace AnimationData {
|
|
int32_t FindIdByBehaviorAndTier(uint32_t behavior, int32_t tier, uint32_t* anim);
|
|
}
|
|
|
|
class CAnimKitManager {
|
|
public:
|
|
/* 0000 */ uint32_t unk_0000;
|
|
/* 0004 */ uint8_t unk_0004[2944];
|
|
/* 0B84 */ uint32_t unk_0B84;
|
|
};
|
|
|
|
struct ClickToMoveActionInfo {
|
|
/* 0000 */ uint8_t unk_0000;
|
|
/* 0001 */ uint8_t unk_0001[3];
|
|
/* 0004 */ float unk_0004;
|
|
/* 0008 */ uint8_t unk_0008;
|
|
/* 0009 */ uint8_t unk_0009;
|
|
/* 000A */ uint8_t unk_000A[2];
|
|
};
|
|
|
|
class ClickToMove {
|
|
public:
|
|
/* 0000 */ uint32_t unk_0000;
|
|
};
|
|
|
|
void NameQueryCallback(int32_t id, const WOWGUID& guid, void* param, bool success);
|
|
float CalculateFacingTo(const C3Vector* from, const C3Vector* to);
|
|
void WeaponTrailClose(uint32_t trail);
|
|
|
|
void WeaponTrailsInitialize();
|
|
void WeaponTrailsShutdown();
|
|
|
|
const char* GetObjectNameFromGuid(const WOWGUID& guid);
|
|
|
|
#endif
|