34 static const int SJ_DEBUG_GET_IN_CAR = 200;
48 pPlayer.SendSyncJuncture(SJ_DEBUG_GET_IN_CAR, ctx);
70 pPlayer.SendSyncJuncture(
SJ_DEATH, ctx);
75 if (!pCtx.
Read(pType))
77 if (!pCtx.
Read(pHitDir))
101 SyncHitInfo data =
new SyncHitInfo;
104 data.m_HitDir = pHitDir;
105 data.m_Fullbody = pFullbody;
106 data.m_HasSource = pSource != null;
107 if ( !pDamageResult )
109 data.m_HealthDamage = -1.0;
122 if (!pCtx.
Read(pType))
124 if (!pCtx.
Read(pHitDir))
126 if (!pCtx.
Read(pFullbody))
133 if (!pCtx.
Read(pData))
149 pPlayer.SendSyncJuncture(
SJ_INJURY, ctx);
154 if ( !pCtx.
Read(pEnable) )
156 if ( !pCtx.
Read(level) )
178 if ( !pCtx.
Read(enable) )
200 if ( !pCtx.
Read(type) )
213 ctx.
Write(state_type);
222 if ( !pCtx.
Read(type) )
236 ctx.
Write(state_type);
238 ctx.
Write(stance_mask);
247 if ( !pCtx.
Read(anim_id) )
249 if ( !pCtx.
Read(stance_mask) )
251 if ( !pCtx.
Read(duration) )
307 if ( !pCtx.
Read(amount) )
337 ctx.
Write(jamChance);
372 ctx.
Write(canPlaySound);
373 ctx.
Write(currentState);
374 ctx.
Write(localState);
381 if ( !pCtx.
Read(canPlaySound) )
383 if ( !pCtx.
Read(currentState) )
385 if ( !pCtx.
Read(localState) )
394 ctx.
Write(currentState);
401 if ( !pCtx.
Read(currentState) )
415 ctx.
Write(shockValue);
417 pPlayer.SendSyncJuncture(
SJ_SHOCK, ctx);
422 if ( !pCtx.
Read(shockValue) )
static bool ReadDeathParams(ParamsReadContext pCtx, out int pType, out float pHitDir)
static void SendDeleteItem(DayZPlayer pPlayer, EntityAI item)
static const int SJ_STAMINA
static const int SJ_INVENTORY_REPAIR
static const int SJ_PLAYER_STATES
static bool ReadBrokenLegsParamsEx(ParamsReadContext pCtx, out int currentState)
static bool ReadPlayerSymptomFBParams(ParamsReadContext pCtx, out DayZPlayerConstants anim_id, out int stance_mask, out float duration)
static bool ReadDamageHitParamsEx(ParamsReadContext pCtx, out SyncHitInfo pData)
static const int SJ_PLAYER_ADD_MODIFIER
static void SendInjury(DayZPlayer pPlayer, bool pEnable, eInjuryHandlerLevels level)
static void SendDeath(DayZPlayer pPlayer, int pType, float pHitDir)
static bool ReadPlayerSymptomADDParams(ParamsReadContext pCtx, out int type)
static const int SJ_WEAPON_LIFT
static const int SJ_GESTURE_REQUEST
static const int SJ_INVENTORY
static bool ReadInjuryParams(ParamsReadContext pCtx, out bool pEnable, out eInjuryHandlerLevels level)
static const int SJ_ADS_RESET
static const int SJ_WEAPON_ACTION_ACK_REJECT
static void SendWeaponActionAcknowledgment(DayZPlayer pPlayer, int AckID, bool accept)
static bool ReadBrokenLegsParams(ParamsReadContext pCtx, out bool canPlaySound, out eBrokenLegs currentState, out eBrokenLegs localState)
static const int SJ_KURU_REQUEST
static const int SJ_ACTION_ACK_ACCEPT
static const int SJ_STAMINA_MISC
static void SendPlayerSymptomADD(DayZPlayer pPlayer, int type, int state_type)
static void SendActionAcknowledgment(DayZPlayer pPlayer, int AckID, bool accept)
static void SendPlayerFBModifier(PlayerBase pPlayer, int type)
static bool ReadPlayerUnconsciousnessParams(ParamsReadContext pCtx, out bool enable)
static const int SJ_ACTION_INTERRUPT
static bool ReadDamageHitParams(ParamsReadContext pCtx, out int pType, out float pHitDir, out bool pFullbody)
static void SendDamageHitEx(DayZPlayer pPlayer, int pType, float pHitDir, bool pFullbody, TotalDamageResult pDamageResult, int pDamageType, EntityAI pSource, string pComponent, string pAmmoType, vector pModelPos)
static void SendPlayerUnconsciousness(DayZPlayer pPlayer, bool enable)
static const int SJ_INVENTORY_FAILURE
static void SendBrokenLegsEx(DayZPlayer pPlayer, int currentState)
static const int SJ_DAMAGE_HIT
static void SendKuruRequest(DayZPlayer pPlayer, float amount)
static const int SJ_UNCONSCIOUSNESS
static const int SJ_WEAPON_ACTION_ACK_ACCEPT
static void SendWeaponJamChance(DayZPlayer pPlayer, float jamChance)
static const int SJ_BROKEN_LEGS
static void SendBrokenLegs(DayZPlayer pPlayer, bool canPlaySound, eBrokenLegs currentState, eBrokenLegs localState)
static const int SJ_ACTION_ACK_REJECT
static void SendQuickbarSetShortcut(DayZPlayer pPlayer, EntityAI item, int index, bool force=false)
static const int SJ_WEAPON_RAISE_COMPLETED
static const int SJ_QUICKBAR_SET_SHORTCUT
static const int SJ_DELETE_ITEM
static bool ReadPlayerFBModifier(ParamsReadContext pCtx, out int type)
static void SendShock(DayZPlayer pPlayer, float shockValue)
static const int SJ_SHOCK
static const int SJ_INJURY
static const int SJ_WEAPON_SET_JAMMING_CHANCE
static bool ReadShockParams(ParamsReadContext pCtx, out float shockValue)
static const int SJ_DEATH
static bool ReadActionInterruptParams(ParamsReadContext pCtx)
static void SendPlayerSymptomFB(DayZPlayer pPlayer, DayZPlayerConstants anim_id, int state_type, int stance_mask, float duration)
static void SendActionInterrupt(DayZPlayer pPlayer)
static const int SJ_PLAYER_FB_MODIFIER
static bool ReadKuruRequest(ParamsReadContext pCtx, out float amount)
static void SendDamageHit(DayZPlayer pPlayer, int pType, float pHitDir, bool pFullbody)
Serialization general interface. Serializer API works with:
proto bool Write(void value_out)
proto bool Read(void value_in)
proto native float GetHighestDamage(string healthType)
DayZPlayerConstants
defined in C++