mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-05 18:24:12 +00:00
Imminuty updates (#925)
* WIP Immunities * Immunity getters * remove redundent variable replace it use with it's equivalent * remove unused lookups, fix typos * fix tests * added imunity test * address feedback * more immunity tests * explicit this
This commit is contained in:
@@ -268,7 +268,7 @@ namespace GameMessages {
|
||||
float leadOut = -1.0f, bool leavePlayerLocked = false);
|
||||
void HandleCinematicUpdate(RakNet::BitStream* inStream, Entity* entity, const SystemAddress& sysAddr);
|
||||
|
||||
void SendSetStunned(LWOOBJID objectId, eStunState stateChangeType, const SystemAddress& sysAddr,
|
||||
void SendSetStunned(LWOOBJID objectId, eStateChangeType stateChangeType, const SystemAddress& sysAddr,
|
||||
LWOOBJID originator = LWOOBJID_EMPTY, bool bCantAttack = false, bool bCantEquip = false,
|
||||
bool bCantInteract = false, bool bCantJump = false, bool bCantMove = false, bool bCantTurn = false,
|
||||
bool bCantUseItem = false, bool bDontTerminateInteract = false, bool bIgnoreImmunity = true,
|
||||
@@ -277,6 +277,35 @@ namespace GameMessages {
|
||||
bool bCantMoveOutChangeWasApplied = false, bool bCantTurnOutChangeWasApplied = false,
|
||||
bool bCantUseItemOutChangeWasApplied = false);
|
||||
|
||||
void SendSetStunImmunity(
|
||||
LWOOBJID target,
|
||||
eStateChangeType state,
|
||||
const SystemAddress& sysAddr,
|
||||
LWOOBJID originator = LWOOBJID_EMPTY,
|
||||
bool bImmuneToStunAttack = false,
|
||||
bool bImmuneToStunEquip = false,
|
||||
bool bImmuneToStunInteract = false,
|
||||
bool bImmuneToStunJump = false,
|
||||
bool bImmuneToStunMove = false,
|
||||
bool bImmuneToStunTurn = false,
|
||||
bool bImmuneToStunUseItem = false
|
||||
);
|
||||
|
||||
void SendSetStatusImmunity(
|
||||
LWOOBJID objectId,
|
||||
eStateChangeType state,
|
||||
const SystemAddress& sysAddr,
|
||||
bool bImmuneToBasicAttack = false,
|
||||
bool bImmuneToDamageOverTime = false,
|
||||
bool bImmuneToKnockback = false,
|
||||
bool bImmuneToInterrupt = false,
|
||||
bool bImmuneToSpeed = false,
|
||||
bool bImmuneToImaginationGain = false,
|
||||
bool bImmuneToImaginationLoss = false,
|
||||
bool bImmuneToQuickbuildInterrupt = false,
|
||||
bool bImmuneToPullToPoint = false
|
||||
);
|
||||
|
||||
void SendOrientToAngle(LWOOBJID objectId, bool bRelativeToCurrent, float fAngle, const SystemAddress& sysAddr);
|
||||
|
||||
void SendAddRunSpeedModifier(LWOOBJID objectId, LWOOBJID caster, uint32_t modifier, const SystemAddress& sysAddr);
|
||||
|
Reference in New Issue
Block a user