34 static const int SJ_DEBUG_GET_IN_VEHICLE = 200;
48 pPlayer.SendSyncJuncture(SJ_DEBUG_GET_IN_VEHICLE, ctx);
53 if (!pCtx.
Read(vehicle))
71 pPlayer.SendSyncJuncture(
SJ_DEATH, ctx);
76 if (!pCtx.
Read(pType))
78 if (!pCtx.
Read(pHitDir))
102 SyncHitInfo data =
new SyncHitInfo;
105 data.m_HitDir = pHitDir;
106 data.m_Fullbody = pFullbody;
107 data.m_HasSource = pSource != null;
108 if ( !pDamageResult )
110 data.m_HealthDamage = -1.0;
123 if (!pCtx.
Read(pType))
125 if (!pCtx.
Read(pHitDir))
127 if (!pCtx.
Read(pFullbody))
134 if (!pCtx.
Read(pData))
150 pPlayer.SendSyncJuncture(
SJ_INJURY, ctx);
155 if ( !pCtx.
Read(pEnable) )
157 if ( !pCtx.
Read(level) )
179 if ( !pCtx.
Read(enable) )
201 if ( !pCtx.
Read(type) )
214 ctx.
Write(state_type);
223 if ( !pCtx.
Read(type) )
237 ctx.
Write(state_type);
239 ctx.
Write(stance_mask);
248 if ( !pCtx.
Read(anim_id) )
250 if ( !pCtx.
Read(stance_mask) )
252 if ( !pCtx.
Read(duration) )
308 if ( !pCtx.
Read(amount) )
338 ctx.
Write(jamChance);
373 ctx.
Write(canPlaySound);
374 ctx.
Write(currentState);
375 ctx.
Write(localState);
382 if ( !pCtx.
Read(canPlaySound) )
384 if ( !pCtx.
Read(currentState) )
386 if ( !pCtx.
Read(localState) )
395 ctx.
Write(currentState);
402 if ( !pCtx.
Read(currentState) )
416 ctx.
Write(shockValue);
418 pPlayer.SendSyncJuncture(
SJ_SHOCK, ctx);
423 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)
Injury.
static void SendDeath(DayZPlayer pPlayer, int pType, float pHitDir)
Death.
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)
Additive Symptoms.
static void SendActionAcknowledgment(DayZPlayer pPlayer, int AckID, bool accept)
Action Acknowledgment.
static void SendPlayerFBModifier(PlayerBase pPlayer, int type)
Full body.
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)
Conscious / Unconscious.
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)
BrokenLegs.
static const int SJ_ACTION_ACK_REJECT
static void SendQuickbarSetShortcut(DayZPlayer pPlayer, EntityAI item, int index, bool force=false)
Quickbar.
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)
Shock.
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)
Full body Symptoms.
static void SendActionInterrupt(DayZPlayer pPlayer)
Action interrupt.
static const int SJ_PLAYER_FB_MODIFIER
static bool ReadKuruRequest(ParamsReadContext pCtx, out float amount)
Kuru Disease Shake.
static void SendDamageHit(DayZPlayer pPlayer, int pType, float pHitDir, bool pFullbody)
DamageHit.
proto bool Write(void value_out)
proto bool Read(void value_in)
proto native float GetHighestDamage(string healthType)
DayZPlayerConstants
defined in C++
Serializer ParamsReadContext