-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,948 changed files
with
60,397 additions
and
36,370 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#pragma once | ||
|
||
enum EAIActorRelationshipType : __int32 | ||
enum EAIActorRelationshipType | ||
{ | ||
AIART_Boss = 0x0 | ||
AIART_Boss = 0 | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
#pragma once | ||
|
||
#include "ZGameTime.h" | ||
|
||
struct SAISharedEvent | ||
{ | ||
unsigned int m_start; | ||
unsigned int m_end; | ||
unsigned int m_start; | ||
unsigned int m_end; | ||
|
||
SAISharedEvent() = default; | ||
~SAISharedEvent() = default; | ||
float GetAge() const; | ||
float GetExpired() const; | ||
bool IsExpired() const; | ||
static bool IsCurrent(SAISharedEvent* pEvent); | ||
void SetStartTime(ZGameTime startTime); | ||
void SetEndTime(ZGameTime endTime); | ||
ZGameTime GetStartTime() const; | ||
ZGameTime GetEndTime() const; | ||
static unsigned int GameTimeToEventTime(ZGameTime gameTime); | ||
static ZGameTime EventTimeToGameTime(unsigned int eventTime); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#pragma once | ||
|
||
class SActorCounts | ||
struct SActorCounts | ||
{ | ||
public: | ||
int nAlerted; | ||
int nAlertedArmed; | ||
int nEngaged; | ||
int nInCombat; | ||
int nAlertableActorOnScreen; | ||
int nAlertableGuardOnScreen; | ||
int nAlerted; | ||
int nAlertedArmed; | ||
int nEngaged; | ||
int nInCombat; | ||
int nAlertableActorOnScreen; | ||
int nAlertableGuardOnScreen; | ||
|
||
SActorCounts() = default; | ||
~SActorCounts() = default; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
#pragma once | ||
|
||
#include "TEntityRef.h" | ||
#include "ZActor.h" | ||
|
||
class SClosestActorInfo | ||
class ZActor; | ||
|
||
struct SClosestActorInfo | ||
{ | ||
public: | ||
TEntityRef<ZActor> m_pMaxFacingAlertableActor; | ||
TEntityRef<ZActor> m_pClosestAlertableActor; | ||
TEntityRef<ZActor> m_pClosestAlertableGuard; | ||
TEntityRef<ZActor> m_pClosestEngagedActor; | ||
float m_fMaxFacingAlertableActor; | ||
float m_fClosestAlertableActor; | ||
float m_fClosestAlertableGuard; | ||
float m_fClosestEngagedActor; | ||
float m_fMaxFacingAlertablePan; | ||
float m_fClosestAlertablePan; | ||
float m_fClosestAlertableGuardPan; | ||
float m_fClosestEngangedPan; | ||
TEntityRef<ZActor> m_pMaxFacingAlertableActor; | ||
TEntityRef<ZActor> m_pClosestAlertableActor; | ||
TEntityRef<ZActor> m_pClosestAlertableGuard; | ||
TEntityRef<ZActor> m_pClosestEngagedActor; | ||
float m_fMaxFacingAlertableActor; | ||
float m_fClosestAlertableActor; | ||
float m_fClosestAlertableGuard; | ||
float m_fClosestEngagedActor; | ||
float m_fMaxFacingAlertablePan; | ||
float m_fClosestAlertablePan; | ||
float m_fClosestAlertableGuardPan; | ||
float m_fClosestEngangedPan; | ||
|
||
SClosestActorInfo() = default; | ||
~SClosestActorInfo() = default; | ||
SClosestActorInfo& operator=(const SClosestActorInfo& __that); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,56 @@ | ||
#pragma once | ||
|
||
#include "ZGameStatsEntityBase.h" | ||
#include "ZAIGameState.h" | ||
#include "EGameEventArgType.h" | ||
#include "SComponentMapEntry.h" | ||
#include "SGameEventArgs.h" | ||
#include "ZVariantRef.h" | ||
|
||
class ZAIGameState; | ||
class ZComponentCreateInfo; | ||
class ZString; | ||
struct STypeID; | ||
|
||
class ZAIEventEmitterEntity : public ZGameStatsEntityBase | ||
{ | ||
public: | ||
float m_AlertableActorOnScreenCooldown; | ||
float m_AlertableGuardOnScreenCooldown; | ||
enum | ||
{ | ||
COPYABLE = 0, | ||
ASSIGNABLE = 0 | ||
}; | ||
|
||
float m_AlertableActorOnScreenCooldown; | ||
float m_AlertableGuardOnScreenCooldown; | ||
|
||
static SComponentMapEntry s_componentMap[0]; | ||
static const unsigned int s_pinidSoundTensionAmbient; | ||
static const unsigned int s_pinidSoundTensionUpToYellow; | ||
static const unsigned int s_pinidSoundTensionDownToYellow; | ||
static const unsigned int s_pinidSoundTensionUpToOrange; | ||
static const unsigned int s_pinidSoundTensionDownToOrange; | ||
static const unsigned int s_pinidSoundTensionUpToRed; | ||
|
||
~ZAIEventEmitterEntity() override = default; | ||
ZVariantRef GetVariantRef() const override; | ||
int AddRef() override; | ||
int Release() override; | ||
void* QueryInterface(STypeID* iid) override; | ||
void Activate(const ZString& sSubset) override; | ||
void Deactivate(const ZString& sSubset) override; | ||
void Init() override; | ||
virtual void SendSignals(const ZAIGameState& oldState, const ZAIGameState& newState); | ||
|
||
void ProcessGameEvent(const SGameEventArgs& args) override; | ||
EGameEventArgType GetArgType() const override; | ||
|
||
virtual void SendSignals(const ZAIGameState*, const ZAIGameState*); | ||
ZAIEventEmitterEntity() = default; | ||
static void RegisterType(); | ||
ZAIEventEmitterEntity(ZComponentCreateInfo& info); | ||
void SignalSoundTensionAmbient(); | ||
void SignalSoundTensionUpToYellow(); | ||
void SignalSoundTensionDownToYellow(); | ||
void SignalSoundTensionUpToOrange(); | ||
void SignalSoundTensionDownToOrange(); | ||
void SignalSoundTensionUpToRed(); | ||
}; |
Oops, something went wrong.