178 #ifdef DIAG_DEVELOPER
179 int m_IsInsideTrigger;
180 bool m_CanBeTargetedDebug;
182 bool m_PresetSpawned;
183 ref CameraToolsMenuClient m_CameraToolsMenuClient;
184 protected PluginTargetTemperature m_TargetTemperatureDiag;
191 #ifdef DIAG_DEVELOPER
327 m_PlayerSelected =
false;
354 #ifdef DIAG_DEVELOPER
355 m_CanBeTargetedDebug =
true;
394 if (!
GetGame().IsDedicatedServer())
419 PluginConfigDebugProfileFixed m_ConfigDebugProfileFixed = PluginConfigDebugProfileFixed.Cast(
GetPlugin(PluginConfigDebugProfileFixed));
421 PluginDeveloper m_Developer = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
428 if (player && default_preset !=
"")
431 m_ConfigDebugProfileFixed.GetPresetItems(default_preset, preset_array);
433 bool is_preset_fixed =
true;
434 if (preset_array.Count() == 0)
437 is_preset_fixed =
false;
440 if (preset_array.Count() > 0)
442 m_Developer.ClearInventory(player);
444 for (
int i = 0; i < preset_array.Count(); i++)
450 health = m_ConfigDebugProfileFixed.GetItemHealth(default_preset, i);
451 quantity = m_ConfigDebugProfileFixed.GetItemQuantity(default_preset, i);
458 m_Developer.SpawnEntityInPlayerInventory(player, preset_array.Get(i), health, quantity);
505 RegisterNetSyncVariableInt(
"m_LifeSpanState", LifeSpanState.BEARD_NONE, LifeSpanState.COUNT);
506 RegisterNetSyncVariableInt(
"m_BloodType", 0, 128);
509 RegisterNetSyncVariableInt(
"m_SoundEventParam", 0, ((EPlayerSoundEventParam.ENUM_COUNT - 1) * 2) - 1);
510 RegisterNetSyncVariableInt(
"m_StaminaState",0, eStaminaState.COUNT - 1);
511 RegisterNetSyncVariableInt(
"m_BleedingBits");
515 RegisterNetSyncVariableInt(
"m_MixedSoundStates", 0,
eMixedSoundStates.COUNT - 1);
517 RegisterNetSyncVariableInt(
"m_RefreshAnimStateIdx",0,3);
518 RegisterNetSyncVariableInt(
"m_BrokenLegState", -
eBrokenLegs.BROKEN_LEGS_SPLINT,
eBrokenLegs.BROKEN_LEGS_SPLINT);
519 RegisterNetSyncVariableInt(
"m_SyncedModifiers", 0, ((
eModifierSyncIDs.LAST_INDEX - 1) * 2) - 1);
520 RegisterNetSyncVariableInt(
"m_HasBloodyHandsVisible", 0,
eBloodyHandsTypes.LAST_INDEX - 1);
521 RegisterNetSyncVariableInt(
"m_ActionSoundCategoryHash");
522 RegisterNetSyncVariableInt(
"m_PerformedAnimActionID", -1, 2048);
523 RegisterNetSyncVariableInt(
"m_ActivePrimarySymptomID", 0, SymptomIDs.LAST_INDEX);
526 RegisterNetSyncVariableFloat(
"m_HeatBufferDynamicMax", 0.0, 1.0, 2);
528 RegisterNetSyncVariableBool(
"m_IsUnconscious");
529 RegisterNetSyncVariableBool(
"m_IsRestrained");
530 RegisterNetSyncVariableBool(
"m_IsInWater");
531 RegisterNetSyncVariableBool(
"m_InsideEffectArea");
533 RegisterNetSyncVariableBool(
"m_HasBloodTypeVisible");
534 RegisterNetSyncVariableBool(
"m_IsRestrainStarted");
535 RegisterNetSyncVariableBool(
"m_IsRestrainPrelocked");
536 RegisterNetSyncVariableBool(
"m_HasHeatBuffer");
537 RegisterNetSyncVariableBool(
"m_IsInColdArea");
539 RegisterNetSyncVariableFloat(
"m_CurrentShock");
594 m_ActionSoundCategoryHash = hash;
749 if (waterLevel > 0.5)
752 timeSpent += timeSlice;
766 timeSpent += timeSlice;
814 EntityAI item_EAI = this.GetInventory().FindAttachment(slot_id);
817 if (item_EAI && !item_IB)
819 string str =
"Warning! GetItemOnSlot() >> found item on slot " + slot_type +
" can't be cast to ItemBase! Found item is " + item_EAI.GetType() +
" and the player is " +
GetType() +
"!";
843 if (GetInventory().HasInventoryReservation(item, null))
850 if (GetHumanInventory().GetEntityInHands() == item)
869 int bit_mask_remove = ~state;
1065 if (!
GetGame().IsDedicatedServer())
1083 super.EEKilled(killer);
1088 super.EEHitBy(damageResult, damageType, source,
component, dmgZone, ammo, modelPos, speedCoef);
1095 if (damageResult != null && damageResult.
GetDamage(dmgZone,
"Shock") > 0)
1101 if (
GetGame().ConfigIsExisting(
"cfgAmmo " + ammo +
" unconRefillModifier"))
1113 if (damageType ==
DamageType.EXPLOSION && ammo ==
"FlashGrenade_Ammo")
1122 float dmg = damageResult.
GetDamage(dmgZone,
"Blood");
1127 #ifdef DIAG_DEVELOPER
1129 Print(
"EEHitBy() | " +
GetDisplayName() +
" hit by " + source.GetDisplayName() +
" to " + dmgZone);
1131 PluginRemotePlayerDebugServer plugin_remote_server = PluginRemotePlayerDebugServer.Cast(
GetPlugin(PluginRemotePlayerDebugServer));
1132 if (plugin_remote_server)
1134 plugin_remote_server.OnDamageEvent(
this, damageResult);
1138 if (
GetGame().IsDebugMonitor())
1144 int transferShockToDamageCoef =
g_Game.ConfigGetInt(
string.Format(
"%1 %2 DamageApplied transferShockToDamage",
CFG_AMMO, ammo));
1145 if (transferShockToDamageCoef == 1)
1149 if (dmgZone !=
"Head")
1150 AddHealth(dmgZone,
"Health", -damageResult.
GetDamage(dmgZone,
"Shock"));
1155 if (GetHealth(
"RightLeg",
"Health") <= 1 || GetHealth(
"LeftLeg",
"Health") <= 1 || GetHealth(
"RightFoot",
"Health") <= 1 || GetHealth(
"LeftFoot",
"Health") <= 1)
1164 if (ammo ==
"Bullet_CupidsBolt" && IsAlive())
1166 DamageSystem.ResetAllZones(
this);
1213 super.EEHitByRemote(damageType, source,
component, dmgZone, ammo, modelPos);
1215 if (m_MeleeFightLogic.IsInBlock())
1236 return super.ConvertNonlethalDamage(damage, damageType);
1246 float shakeStrength =
Math.
InverseLerp(0, 500, hitData.m_InSpeed.Length());
1251 if (hitData.m_AmmoType ==
"Bullet_CupidsBolt")
1252 Ammo_CupidsBolt.PlayOnHitParticle(hitData.m_Position);
1259 if (m_MeleeFightLogic.IsInBlock())
1311 return GetSelectionPositionMS(pSelection);
1328 super.EEItemAttached(item, slot_name);
1332 Param1<PlayerBase> p =
new Param1<PlayerBase>(
this);
1333 item.SwitchItemSelectionTextureEx(EItemManipulationContext.ATTACHING, p);
1344 if (!
GetGame().IsDedicatedServer())
1346 if (clothing.GetEffectWidgetTypes())
1351 if (clothing.GetGlassesEffectID() > -1)
1359 else if (
GetGame().IsServer())
1361 if (clothing.IsGasMask())
1367 clothing.UpdateNVGStatus(
this,
true);
1376 super.EEItemDetached(item, slot_name);
1379 item.SwitchItemSelectionTextureEx(EItemManipulationContext.DETACHING);
1389 if (!
GetGame().IsDedicatedServer())
1391 if (clothing.GetEffectWidgetTypes())
1396 if (clothing.GetGlassesEffectID() > -1)
1404 if (clothing.IsGasMask())
1410 clothing.UpdateNVGStatus(
this,
false,
true);
1418 string slot = slot_name;
1420 boo = item.IsWeapon();
1422 if (slot ==
"Melee")
1427 else if (slot ==
"Shoulder")
1436 super.SwitchItemSelectionTexture(item,slot_name);
1439 EntityAI armband = FindAttachmentBySlotName(
"Armband");
1440 if (slot_name ==
"Body" && armband)
1442 Param1<PlayerBase> p =
new Param1<PlayerBase>(
this);
1443 armband.SwitchItemSelectionTextureEx(EItemManipulationContext.UPDATE,p);
1453 for (
int i = 0; i < itemsArray.Count(); i++)
1456 if (item && !item.IsInherited(SurvivorBase)) GetInventory().LocalDestroyEntity(item);
1472 if (ConfigGetBool(
"woman") != 1)
1481 int voice_type = ConfigGetInt(
"voiceType");
1483 if (voice_type == 0)
1529 AddAction(ActionLockedDoors, InputActionMap);
1579 if (IsControlledPlayer())
1610 if (IsControlledPlayer())
1620 if (IsControlledPlayer())
1625 actions.InsertAll(bcActions);
1645 InputActionMap.Insert(ai, action_array);
1647 action_array.Insert(action);
1663 for (
int i = 0; i < action_array.Count(); i++)
1665 if (action == action_array.Get(i))
1667 action_array.Remove(i);
1671 InputActionMap.Insert(ai, action_array);
1673 action_array.Insert(action);
1729 if (gloves && gloves.GetHealthLevel() < 4)
1762 string surface;
int liquid;
1766 if (shoes && shoes.GetHealthLevel() < 4)
1778 if (pUserInt % 2 == 0)
1816 #ifdef DIAG_DEVELOPER
1817 void SetStaminaDisabled(
bool value)
1875 if (GetThrowing() && GetThrowing().IsThrowingModeEnabled())
1944 if (IsControlledPlayer())
1953 return super.CanReleaseAttachment(attachment);
1958 return super.CanReleaseCargo(cargo);
1963 return super.CanReceiveItemIntoCargo(item);
1968 return super.CanSwapItemInCargo(child_entity, new_entity);
1979 return super.CanReceiveItemIntoHands(item_to_hands);
2114 float add_health_coef = 0.33;
2118 AddHealth(
"LeftLeg",
"Health", (GetMaxHealth(
"LeftLeg",
"Health") - GetHealth(
"LeftLeg",
"Health") ) * add_health_coef );
2119 AddHealth(
"RightLeg",
"Health", (GetMaxHealth(
"RightLeg",
"Health") - GetHealth(
"RightLeg",
"Health")) * add_health_coef );
2120 AddHealth(
"RightFoot",
"Health", (GetMaxHealth(
"RightFoot",
"Health") - GetHealth(
"RightFoot",
"Health")) * add_health_coef );
2121 AddHealth(
"LeftFoot",
"Health", (GetMaxHealth(
"LeftFoot",
"Health") - GetHealth(
"LeftFoot",
"Health")) * add_health_coef );
2131 PPERequester_Drowning req = PPERequester_Drowning.Cast(PPERequesterBank.GetRequester(PPERequesterBank.REQ_DROWNING));
2225 int attcount = this.GetInventory().AttachmentCount();
2227 for (
int att = 0; att < attcount; att++)
2229 attachment = GetInventory().GetAttachmentFromIndex(att);
2230 if (attachment.IsItemBase())
2232 item_name = attachment.GetType();
2233 if (
GetGame().IsKindOf(item_name, searched_item))
2248 PluginSceneManager scene_editor = PluginSceneManager.Cast(
GetPlugin(PluginSceneManager));
2249 scene_editor.InitLoad();
2271 if (IsControlledPlayer())
2277 m_Hud.UpdateBloodName();
2283 m_Hud.ShowQuickbarUI(
true);
2284 m_Hud.UpdateQuickbarGlobalVisibility();
2285 m_Hud.InitHeatBufferUI(
this);
2286 m_Hud.OnPlayerLoaded();
2290 if (!
GetGame().IsDedicatedServer())
2297 m_CharactersHead = Head_Default.Cast(GetInventory().FindPlaceholderForSlot(slotId));
2307 wpn.DelayedValidateAndRepair();
2311 wpn.ValidateAndRepair();
2370 EntityAI entityInHands = GetHumanInventory().GetEntityInHands();
2381 else if (entityInHands && entityInHands.HasEnergyManager())
2383 if (entityInHands.GetCompEM().IsPlugged())
2384 entityInHands.OnPlacementCancelled(
this);
2396 EntityAI entityInHands = GetHumanInventory().GetEntityInHands();
2397 if (entityInHands && entityInHands.HasEnergyManager())
2399 if (entityInHands.GetCompEM().IsPlugged())
2400 entityInHands.OnPlacementCancelled(
this);
2450 if (IsControlledPlayer())
2452 PPERequester_Drowning req = PPERequester_Drowning.Cast(PPERequesterBank.GetRequester(PPERequesterBank.REQ_DROWNING));
2463 if (IsControlledPlayer())
2465 PPERequester_Drowning req = PPERequester_Drowning.Cast(PPERequesterBank.GetRequester(PPERequesterBank.REQ_DROWNING));
2487 m_ProcessResetADS =
true;
2490 else if (!
GetGame().IsMultiplayer())
2504 m_ProcessResetADS =
false;
2526 foreach (
string t: disallowedUndergroundTypes)
2528 if (item.IsKindOf(t))
2689 if (!IsPlayerSelected() || !IsAlive())
2706 if (heldItem && heldItem.HasEnergyManager() && heldItem.GetCompEM().IsPlugged())
2712 placed_entity.GetCompEM().UpdatePlugState();
2720 if (!m_DeathSyncSent && m_KillerData)
2723 m_DeathSyncSent =
true;
2736 if (m_PlayerSoundEventHandler)
2737 m_PlayerSoundEventHandler.OnTick(delta_time);
2754 #ifdef DIAG_DEVELOPER
2757 m_WeaponDebug.OnCommandHandlerUpdate();
2770 if (m_ProcessResetADS)
2812 super.EEItemIntoHands(item);
2816 MiscGameplayFunctions.RemoveAllAttachedChildrenByTypename(item, {
Bolt_Base});
2821 w.ResetWeaponAnimState();
2827 GetMeleeFightLogic().SetBlock(
false);
2832 if (item.IsHeavyBehaviour() && IsRaised())
2841 SurrenderDummyItem dummyItem;
2851 super.EEItemOutOfHands(item);
2866 override void CommandHandler(
float pDt,
int pCurrentCommandID,
bool pCurrentCommandFinished)
2868 EvaluateDamageHit(pCurrentCommandID);
2871 super.CommandHandler(pDt,pCurrentCommandID,pCurrentCommandFinished);
2873 vector playerPosition = PhysicsGetPositionWS();
2968 HandleDamageHit(pCurrentCommandID);
2972 mngr.Update(pCurrentCommandID);
2977 if (!m_UnconsciousDebug)
2980 if (m_ShouldBeUnconscious && m_IsUnconscious)
2985 m_Swimming.m_bWasSwimming |= hcu.
IsInWater();
2988 if (m_Swimming.m_bWasSwimming)
2996 else if (m_ShouldBeUnconscious)
3005 m_IsUnconscious =
true;
3013 m_LastCommandBeforeUnconscious = pCurrentCommandID;
3021 m_TransportCache = null;
3025 m_JumpClimb.CheckAndFinishJump();
3026 StartCommand_Unconscious(0);
3027 SetFallYDiff(playerPosition[1]);
3031 else if (m_IsUnconscious)
3044 if (m_Swimming.m_bWasSwimming || m_LastCommandBeforeUnconscious ==
DayZPlayerConstants.COMMANDID_VEHICLE)
3047 hcu.
WakeUp(wakeUpStance);
3049 m_IsUnconscious =
false;
3058 m_IsUnconscious =
false;
3067 if (quickBarSlot && IsAlive())
3095 bool isSwimmingOrClimbing = GetCommand_Swim() || GetCommand_Climb() || GetCommand_Ladder();
3096 bool isStaminaLimitAppliable = hcm || isSwimmingOrClimbing;
3098 if (isStaminaLimitAppliable)
3107 if (!
GetGame().IsDedicatedServer())
3128 #ifdef DIAG_DEVELOPER
3130 m_Bot.OnUpdate(pDt);
3140 TryGetInVehicleDebug();
3147 void SetGetInVehicleDebug(
EntityAI ent)
3149 m_GetInVehicleTransportDebug =
Transport.Cast(ent);
3152 void TryGetInVehicleDebug()
3154 if (m_GetInVehicleTransportDebug)
3156 HumanCommandVehicle vehCommand = StartCommand_Vehicle(m_GetInVehicleTransportDebug, 0, 0);
3159 vehCommand.
SetVehicleType(m_GetInVehicleTransportDebug.GetAnimInstance());
3161 m_GetInVehicleTransportDebug = null;
3196 else if (!
GetGame().IsMultiplayer())
3203 m_hac.InternalCommand(command_ID);
3209 if (!
GetGame().IsDedicatedServer())
3216 m_Hud.ShowQuickbarPlayer(
true);
3257 if (
GetUApi().GetInputByID(UADefaultAction).LocalPress() ||
GetUApi().GetInputByID(UAUIMenu).LocalPress() ||
GetUApi().GetInputByID(UAGear).LocalPress())
3326 if (super.IsLanded(pCurrentCommandID))
3334 bool wasFalling = m_IsUnconsciousFalling;
3335 m_IsUnconsciousFalling = PhysicsIsFalling(
false);
3336 return wasFalling && !m_IsUnconsciousFalling;
3346 if (super.OnLand(pCurrentCommandID, fallDamageData))
3359 if (super.IsAlreadyInFallingCommand(pCurrentCommandID))
3379 EntityAI entity_in_hands = GetHumanInventory().GetEntityInHands();
3395 if (m_TransportCache)
3396 m_TransportCache.MarkCrewMemberUnconscious(m_TransportCache.CrewMemberIndex(
this));
3408 if (GetMeleeFightLogic())
3410 GetMeleeFightLogic().SetBlock(
false);
3414 SetMasterAttenuation(
"UnconsciousAttenuation");
3432 PPERequester_UnconEffects requester = PPERequester_UnconEffects.Cast(PPERequesterBank.GetRequester(PPERequester_UnconEffects));
3433 requester.FadeOutEffect();
3435 if (
GetGame().GetUIManager().IsDialogVisible())
3459 SetMasterAttenuation(
"");
3480 PluginAdminLog adm = PluginAdminLog.Cast(
GetPlugin(PluginAdminLog));
3481 adm.PlayerKilledByDrowningUncon(
this);
3483 SetHealth(
"",
"",-100);
3494 float sin_normalized = (sin + 1) / 2;
3495 if (sin_normalized < 0.05)
3501 PPERequesterBank.GetRequester(PPERequester_UnconEffects).Start(
m_UnconParam);
3525 return m_IsUnconscious;
3530 #ifdef DIAG_DEVELOPER
3531 if (!m_CanBeTargetedDebug)
3537 return super.CanBeTargetedByAI(ai) && !
IsUnconscious() && !IsInVehicle();
3542 AddHealth(
"",
"Shock",shock);
3642 if (attachment && attachment.GetType() ==
"Splint_Applied")
3644 attachment.Delete();
3664 hcm = GetCommand_Move();
3673 m_JumpClimb.CheckAndFinishJump();
3682 float avgLegHealth = GetHealth(
"RightLeg",
"") + GetHealth(
"LeftLeg",
"") + GetHealth(
"RightFoot",
"") + GetHealth(
"LeftFoot",
"");
3683 avgLegHealth *= 0.25;
3689 PhysicsGetVelocity(v);
3698 if (IsClimbingLadder())
3726 void MovingShock(
float legHealth,
float highShock,
float midShock,
float lowShock)
3747 Param1<float> damage =
new Param1<float>(0);
3748 damage.param1 = dmg;
3758 return super.CanPickupHeavyItem(item);
3764 SetHealth(
"RightLeg",
"", 0);
3765 SetHealth(
"RightFoot",
"", 0);
3766 SetHealth(
"LeftLeg",
"", 0);
3767 SetHealth(
"LeftFoot",
"", 0);
3773 if (itemInHands && itemInHands.IsHeavyBehaviour())
3781 if (attachment && attachment.GetType() ==
"Splint_Applied")
3796 if (itemInHands.IsHeavyBehaviour())
3800 ServerDropEntity(itemInHands);
3807 itemInHands.OnItemInHandsPlayerSwimStart(
this);
3812 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3829 GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
3844 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3856 GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
3866 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3878 GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
3881 m_JumpClimb.CheckAndFinishJump();
3891 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3903 GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
3913 GetInventory().LockInventory(LOCK_FROM_SCRIPT);
3918 EntityAI itemOnHead = FindAttachmentBySlotName(
"Headgear");
3920 if (itemInHand && itemInHand.GetCompEM())
3921 itemInHand.GetCompEM().SwitchOff();
3925 if (itemOnHead && itemOnHead.GetCompEM())
3926 itemOnHead.GetCompEM().SwitchOff();
3934 GetInventory().UnlockInventory(LOCK_FROM_SCRIPT);
3936 if (!m_ShouldBeUnconscious)
3968 super.OnCommandDeathStart();
4003 return ((1 << stance) & stanceMask) != 0;
4031 if (GetThrowing().IsThrowingAnimationPlaying())
4037 if (
Math.
AbsInt(previousStance - newStance) == 3)
4114 m_Hud.ShowVehicleInfo();
4116#ifdef FEATURE_NETWORK_RECONCILIATION
4123 identity.Possess(pawn);
4130#ifdef FEATURE_NETWORK_RECONCILIATION
4134 if (identity && !m_ShouldBeUnconscious)
4137 identity.Possess(
this);
4143 m_Hud.HideVehicleInfo();
4148 if (change_to_enabled)
4160 m_Hud.Update(timeSlice);
4228 #ifdef DIAG_DEVELOPER
4229 DiagOnPostFrame(other, extra);
4233#ifdef DIAG_DEVELOPER
4234 protected void DiagOnPostFrame(
IEntity other,
int extra)
4240 m_WeaponDebug.OnPostFrameUpdate();
4243 if (GetBleedingManagerRemote())
4245 GetBleedingManagerRemote().OnUpdate();
4252 m_MeleeDebug =
true;
4255 else if (!DiagMenu.GetBool(
DiagMenuIDs.MELEE_DEBUG) && m_MeleeDebug)
4257 m_MeleeDebug =
false;
4262 if (DiagMenu.GetBool(
DiagMenuIDs.SOUNDS_ITEM_IMPACT_SOUNDS))
4263 InventoryItem.DrawImpacts();
4267 PluginDrawCheckerboard drawCheckerboard = PluginDrawCheckerboard.Cast(
GetPluginManager().GetPluginByType(PluginDrawCheckerboard));
4268 if (drawCheckerboard && !drawCheckerboard.IsActive())
4270 drawCheckerboard.ShowWidgets(DiagMenu.GetBool(
DiagMenuIDs.MISC_DRAW_CHECKERBOARD));
4274 if (m_PresenceNotifier)
4276 m_PresenceNotifier.EnableDebug(DiagMenu.GetBool(
DiagMenuIDs.MISC_PRESENCE_NOTIFIER_DBG));
4279 if (m_TargetTemperatureDiag)
4281 m_TargetTemperatureDiag.ShowDebug(DiagMenu.GetBool(
DiagMenuIDs.MISC_TARGET_TEMPERATURE));
4284 if (DiagMenu.GetBool(
DiagMenuIDs.TRIGGER_PLAYER_DEBUG))
4287 GetCollisionBox(minmax);
4290 if (m_IsInsideTrigger)
4297 dbgShape.CreateMatrix(mat);
4298 dbgShape.SetMatrix(mat);
4302 if (m_Environment && m_Environment.m_Debug)
4305 EnvDebugData envDebugData = m_Environment.GetEnvDebugData();
4308 m_Environment.ShowEnvDebugPlayerInfo(DiagMenu.GetBool(
DiagMenuIDs.MISC_ENVIRONMENT_DEBUG));
4312 if (m_FallDamage && m_FallDamage.m_Debug)
4315 FallDamageDebugData fallDamageDebugData = m_FallDamage.GetFallDamageDebugData();
4318 m_FallDamage.ShowFallDamageDebugInfo(DiagMenu.GetBool(
DiagMenuIDs.MISC_FALLDAMAGE_DEBUG));
4323 override void OnEnterTrigger(ScriptedEntity trigger)
4325 super.OnEnterTrigger(trigger);
4327 ++m_IsInsideTrigger;
4330 override void OnLeaveTrigger(ScriptedEntity trigger)
4332 super.OnLeaveTrigger(trigger);
4334 --m_IsInsideTrigger;
4341 m_Hud.SetStaminaBarVisibility(show);
4376 override bool CanClimb(
int climbType, SHumanCommandClimbResult climbRes)
4394 return super.CanClimb(climbType,climbRes);
4416 return super.CanJump();
4421 return m_JumpClimb.m_bIsJumpInProgress;
4428 int count = temp.Count();
4431 vector pos = target.GetPosition();
4432 for (
int i = 0; i < count; i++)
4461 GetItemAccessor().OnItemInHandsChanged(
true);
4462 GetItemAccessor().ResetWeaponInHands();
4476 vector pdir = GetDirection();
4500 if (GetThrowing().IsThrowingModeEnabled() || GetThrowing().IsThrowingAnimationPlaying())
4524 if (!quickBarEntity)
4533 EntityAI inHandEntity = GetHumanInventory().GetEntityInHands();
4535 if (!GetDayZPlayerInventory().
IsIdle())
4539 handInventoryLocation.
SetHands(
this,quickBarEntity);
4540 if (this.GetInventory().HasInventoryReservation(quickBarEntity, handInventoryLocation))
4543 if (inHandEntity == quickBarEntity)
4545 if (GetHumanInventory().CanRemoveEntityInHands())
4548 PredictiveMoveItemFromHandsToInventory();
4554 quickBarEntity.GetInventory().GetCurrentInventoryLocation(invLocQBItem);
4555 if (GetInventory().HasInventoryReservation(quickBarEntity,invLocQBItem))
4563 inHandEntity.GetInventory().GetCurrentInventoryLocation(inHandEntityFSwapDst);
4565 int index = GetHumanInventory().FindUserReservedLocationIndex(inHandEntity);
4567 GetHumanInventory().GetUserReservedLocation(index, Reserved_Item_il);
4569 if (Reserved_Item_il)
4585 if (GetInventory().HasInventoryReservation(quickBarEntity,handInventoryLocation))
4588 if (GetInventory().CanAddEntityIntoHands(quickBarEntity))
4599 if (GetInventory().IsInventoryLocked())
4609 ItemBase itemInHands =
ItemBase.Cast(GetHumanInventory().GetEntityInHands());
4611 if (itemInHands != quickBarItem)
4621 if (IsRaised() || GetCommand_Melee())
4689 EntityAI entity_in_hands = GetHumanInventory().GetEntityInHands();
4711 mngr_client.Interrupt();
4713 else if (GetHumanInventory().GetEntityInHands()!= magazine)
4751 int last_ammo_magazine_count;
4752 int ammo_magazine_count;
4755 int last_ammo_pile_count;
4756 int ammo_pile_count;
4759 for (
int att_i = 0; att_i < GetInventory().AttachmentCount(); ++att_i)
4761 EntityAI attachment = GetInventory().GetAttachmentFromIndex(att_i);
4762 ref
CargoBase attachment_cargo = attachment.GetInventory().GetCargo();
4764 if (attachment_cargo)
4766 for (
int cgo_i = 0; cgo_i < attachment_cargo.GetItemCount(); ++cgo_i)
4768 EntityAI cargo_item = attachment_cargo.GetItem(cgo_i);
4771 if (cargo_item.IsMagazine())
4773 Magazine magazine = Magazine.Cast(cargo_item);
4774 ammo_pile_count = magazine.GetAmmoCount();
4779 if (ammo_pile_count > 0)
4781 if (last_ammo_magazine_count == 0)
4783 ammo_magazine = magazine;
4784 last_ammo_magazine_count = ammo_pile_count;
4788 if (last_ammo_magazine_count < ammo_pile_count)
4790 ammo_magazine = magazine;
4791 last_ammo_magazine_count = ammo_pile_count;
4797 else if (weapon_manager.
CanLoadBullet(weapon_base, magazine))
4799 if (ammo_pile_count > 0)
4801 if (last_ammo_pile_count == 0)
4803 ammo_pile = magazine;
4804 last_ammo_pile_count = ammo_pile_count;
4808 if (last_ammo_pile_count > ammo_pile_count)
4810 ammo_pile = magazine;
4811 last_ammo_pile_count = ammo_pile_count;
4824 return ammo_magazine;
4841#ifdef DIAG_DEVELOPER
4844 m_Bot =
new Bot(
this);
4876 override SoundOnVehicle
PlaySound(
string sound_name,
float range,
bool create_local =
false)
4883 return GetWeightEx();
4910 return GetInventory().HasEntityInInventory(entity);
4915 if (
GetGame().IsMultiplayer())
4931 bool i_owned = GetHumanInventory().HasEntityInInventory(item);
4933 bool cp_owned =
false;
4935 cp_owned = GetHumanInventory().HasEntityInInventory(currParent);
4937 bool np_owned =
false;
4939 np_owned = GetHumanInventory().HasEntityInInventory(newParent);
4941 bool all_owned = i_owned && cp_owned && (np_owned || (newParent == null));
4946 Error(
"[syncinv] unsupported instance type t=" + t);
4956 float totalWeight = super.GetWeightSpecialized(forceRecalc);
4961 totalWeight += itemHands.GetWeightEx(forceRecalc);
4964 if (WeightDebug.m_VerbosityFlags & WeightDebugType.RECALC_FORCED)
4966 float itemInHandsWeight = totalWeight - super.GetWeightSpecialized(forceRecalc);
4968 dta.
SetCalcDetails(
"TMan: " + (super.GetWeightSpecialized(forceRecalc)+ itemInHandsWeight) +
"(contents weight[includes item in hands])");
4976 const int VISIBILITY_SLOTS_COUNT = 10;
4978 int attcount = GetInventory().AttachmentCount();
4979 float sumVisibility = 0;
4980 float countVisibility = 0;
4981 float visibilityMean = 0;
4985 for (
int att = 0; att < attcount; att++)
4987 EntityAI attachment = GetInventory().GetAttachmentFromIndex(att);
4988 if (attachment.IsClothing())
4992 sumVisibility += clothing.GetItemVisibility();
4997 visibilityMean = (sumVisibility + (VISIBILITY_SLOTS_COUNT - countVisibility)) / VISIBILITY_SLOTS_COUNT;
5026 float health = GetHealth(
"",
"");
5038 float blood = GetHealth(
"",
"Blood");
5066 float immmunity_max = 1;
5073 float health = GetHealth(
"",
"");
5074 float health_max = GetMaxHealth(
"",
"");
5087 float blood = GetHealth(
"",
"Blood");
5088 float blood_max = GetMaxHealth(
"",
"Blood");
5110 if (stat_value <= critical)
5114 if (stat_value <= low)
5118 if (stat_value <= normal)
5122 if (stat_value <= high)
5131 if (stat_value <= critical)
5135 if (stat_value <= low)
5139 if (stat_value <= normal)
5143 if (stat_value <= high)
5163 float max_health = GetMaxHealth(
"GlobalHealth",
"Health") + 0.01;
5164 float max_blood = GetMaxHealth(
"GlobalHealth",
"Blood") + 0.01;
5167 float health_normalized = GetHealth(
"GlobalHealth",
"Health") / max_health;
5168 float blood_normalized = GetHealth(
"GlobalHealth",
"Blood") / max_blood;
5169 immunity = energy_normalized + water_normalized + health_normalized + blood_normalized;
5170 immunity = immunity / 4;
5184 if (IsRaised() || (item && item.IsHeavyBehaviour()))
5187 if (item && GetThrowing() && GetThrowing().IsThrowingModeEnabled())
5213 return GetCommand_Move() && GetCommand_Move().IsInRoll();
5251 if (!m_FightEndBlendTimer)
5252 m_FightEndBlendTimer =
new Timer();
5253 if (!m_FightEndBlendTimer.IsRunning())
5268 if (item && item.GetHierarchyParent() && item.GetHierarchyParent().IsWeapon() && item.IsRuined())
5289 super.RPC(rpc_type, params, guaranteed, recipient);
5295 super.OnRPC(sender, rpc_type, ctx);
5301 case ERPCs.RPC_PLAYER_STAT:
5306 case ERPCs.RPC_SYNC_DISPLAY_STATUS:
5313 case ERPCs.RPC_PLAYER_SYMPTOM_ON:
5320 case ERPCs.RPC_PLAYER_SYMPTOM_OFF:
5327 case ERPCs.RPC_DAMAGE_VALUE_SYNC:
5332 case ERPCs.RPC_USER_ACTION_MESSAGE:
5344 case ERPCs.RPC_SOFT_SKILLS_SPECIALTY_SYNC:
5345 ref Param1<float> p_synch =
new Param1<float>(0);
5347 float specialty_level = p_synch.param1;
5351 case ERPCs.RPC_SOFT_SKILLS_STATS_SYNC:
5352 ref Param5<float, float, float, float, bool> p_debug_synch =
new Param5<float, float ,float, float, bool>(0, 0, 0, 0,
false);
5353 ctx.
Read(p_debug_synch);
5354 float general_bonus_before = p_debug_synch.param1;
5355 float general_bonus_after = p_debug_synch.param2;
5356 float last_UA_value = p_debug_synch.param3;
5357 float cooldown_value = p_debug_synch.param4;
5358 float cooldown_active = p_debug_synch.param5;
5366 case ERPCs.RPC_WARNING_ITEMDROP:
5376 case ERPCs.RPC_WARNING_TELEPORT:
5385 case ERPCs.RPC_INIT_SET_QUICKBAR:
5386 ref Param1<int> count =
new Param1<int>(0);
5387 if (ctx.
Read(count))
5389 for (
int i = 0; i < count.param1 ; i++)
5396 case ERPCs.RPC_SYNC_THERMOMETER:
5399 if (ctx.
Read(value))
5400 m_Hud.SetTemperature(value.
ToString() +
"#degrees_celsius");
5405 case ERPCs.RPC_CHECK_PULSE:
5426 case PlantType.TREE_HARD:
5427 SoundHardTreeFallingPlay();
5430 case PlantType.TREE_SOFT:
5431 SoundSoftTreeFallingPlay();
5434 case PlantType.BUSH_HARD:
5435 SoundHardBushFallingPlay();
5438 case PlantType.BUSH_SOFT:
5439 SoundSoftBushFallingPlay();
5442 case ERPCs.RPC_DEBUG_MONITOR_FLT:
5449 case ERPCs.RPC_DEBUG_MONITOR_STR:
5470 #ifdef DIAG_DEVELOPER
5471 case ERPCs.DEV_RPC_AGENT_RESET:
5479 case ERPCs.DEV_PLAYER_DEBUG_REQUEST:
5481 PluginRemotePlayerDebugServer plugin_remote_server = PluginRemotePlayerDebugServer.Cast(
GetPlugin(PluginRemotePlayerDebugServer));
5482 plugin_remote_server.OnRPC(ctx,
this);
5486 case ERPCs.DEV_PLAYER_DEBUG_DATA:
5488 PluginRemotePlayerDebugClient plugin_remote_client = PluginRemotePlayerDebugClient.Cast(
GetPlugin(PluginRemotePlayerDebugClient));
5489 PluginDeveloper plugin_dev = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
5490 if (plugin_dev.m_ScriptConsole)
5491 plugin_dev.m_ScriptConsole.OnRPCEx(rpc_type, ctx);
5493 plugin_remote_client.OnRPC(ctx);
5497 case ERPCs.DEV_AGENT_GROW:
5503 case ERPCs.RPC_ITEM_DIAG_CLOSE:
5506 mid.StopWatchRequest(
this);
5511 case ERPCs.DEV_REQUEST_UTS_DEBUG:
5513 PluginUniversalTemperatureSourceServer plugin_uts_server = PluginUniversalTemperatureSourceServer.Cast(
GetPlugin(PluginUniversalTemperatureSourceServer));
5514 plugin_uts_server.OnRPC(ctx,
this);
5518 case ERPCs.DEV_UTS_DEBUG_DATA:
5520 PluginUniversalTemperatureSourceClient plugin_uts_client = PluginUniversalTemperatureSourceClient.Cast(
GetPlugin(PluginUniversalTemperatureSourceClient));
5521 plugin_uts_client.OnRPC(ctx);
5528 case ERPCs.DEV_RPC_SERVER_SCRIPT:
5544 case ERPCs.DEV_RPC_SERVER_SCRIPT_RESULT:
5546 PluginDeveloper dev = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
5547 if (dev.m_ScriptConsole)
5548 dev.m_ScriptConsole.OnRPCEx(rpc_type, ctx);
5552 case ERPCs.DEV_SET_DEV_ITEM:
5554 Param1<EntityAI> ent =
new Param1<EntityAI>(null);
5555 if (ctx.
Read(ent) && ent.param1)
5558 mid2.RegisterDebugItem(ent.param1,
this);
5564 case ERPCs.RPC_ITEM_DIAG:
5566 Param1<EntityAI> p1 =
new Param1<EntityAI>(null);
5570 plgn.OnRPC(p1.param1, ctx);
5577 #ifdef DIAG_DEVELOPER
5578 PluginDeveloper module_rc = PluginDeveloper.Cast(
GetPlugin(PluginDeveloper));
5580 module_rc.OnRPC(
this, rpc_type, ctx);
5582 PluginDeveloperSync module_rcs = PluginDeveloperSync.Cast(
GetPlugin(PluginDeveloperSync));
5584 module_rcs.OnRPC(
this, rpc_type, ctx);
5592 if (plugin_diag_menu)
5593 plugin_diag_menu.
OnRPC(
this, rpc_type, ctx);
5599 super.OnGameplayDataHandlerSync();
5646 if (
Class.
CastTo(ppeRequester, PPERequesterBank.GetRequester(ppeIdx)))
5647 ppeRequester.
Start();
5670 PPERequesterBank.GetRequester(ppeIdx).Stop(
new Param1<bool>(
true));
5701 super.EEHealthLevelChanged(oldLevel, newLevel, zone);
5702 if (!
GetGame().IsDedicatedServer())
5719 super.OnVariablesSynchronized();
5832 item.SetHealthMax(
"",
"");
5833 item.SetWet(item.GetWetInit());
5835 item.SetFrozen(
false);
5846 m_PlayerSelected =
true;
5854#ifdef FEATURE_NETWORK_RECONCILIATION
5858 identity.Possess(
this);
5877 Param1<int> paramCount =
new Param1<int>(count);
5878 params.Insert(paramCount);
5879 for (
int i = 0; i < count; i++)
5885 if (count > 0 &&
GetGame().IsMultiplayer())
5887 GetGame().
RPC(
this,
ERPCs.RPC_INIT_SET_QUICKBAR, params,
true, identity);
5897 if (
GetGame().IsMultiplayer())
5954 #ifdef DIAG_DEVELOPER
5955 m_TargetTemperatureDiag = PluginTargetTemperature.Cast(
GetPlugin(PluginTargetTemperature));
5956 m_TargetTemperatureDiag.Init(
this);
5962 m_Bot =
new Bot(
this);
5969 super.SimulateDeath(state);
5982 g_Game.GetMenuData().SaveCharacter(
false,
true);
5983 g_Game.GetMenuData().SetCharacterName(
g_Game.GetMenuData().GetLastPlayedCharacter(),
g_Game.GetMenuDefaultCharacterData(
false).GetCharacterName());
5984 g_Game.GetMenuData().SaveCharactersLocal();
5991 BurlapSackCover attachment;
5994 PPERequester_BurlapSackEffects req;
5995 if (
Class.
CastTo(req,PPERequesterBank.GetRequester(PPERequesterBank.REQ_BURLAPSACK)))
6001 else if (req.IsRequesterRunning())
6003 PPERequesterBank.GetRequester(PPERequester_BurlapSackEffects).Stop();
6019 if (item && item.IsObstructingVoice())
6021 item.MutePlayer(
this,
true);
6035 float resistance = 0;
6036 if (mask.HasIntegratedFilter() || mask.IsExternalFilterAttached())
6037 resistance = 1 - mask.GetFilterQuantity01();
6069 if (
m_EffectWidgets.m_MaskWidgetUpdateCount < 2 && callback.GetLength() > 2 && playback_time > 0.5 )
6079 if (super.OnInputUserDataProcess(userDataType, ctx))
6104 if (ctx.
Read(uid) && ctx.
Read(mute))
6125 float blood = GetHealth(
"GlobalHealth",
"Blood");
6127 blood_scale_normalized =
Math.
Clamp(blood_scale_normalized,0,1);
6138 bool use_stack_max =
false;
6141 if (!ctx.
Read(type))
6146 if (!ctx.
Read(item1))
6154 if (ctx.
Read(dummy))
6155 item1.SplitItemToInventoryLocation(dst);
6157 item1.SplitIntoStackMaxToInventoryLocation(dst);
6163 if (!ctx.
Read(item1))
6165 if (!ctx.
Read(item2))
6167 if (!ctx.
Read(use_stack_max))
6169 if (!ctx.
Read(slot_id))
6172 if (type == -1 && item1 && item2)
6174 item1.CombineItems(item2, use_stack_max);
6176 else if (type == 1 && item1)
6179 item1.SplitIntoStackMax(item2, slot_id,
this);
6181 item1.SplitItem(
this);
6183 else if (type == 2 && item1)
6190 item1.SplitIntoStackMaxCargo(item2, slot_id, row, col);
6192 else if (type == 3 && item1)
6194 item1.SplitIntoStackMaxHands(
this);
6221 return SpawnAI(object_name, pos);
6233 if (
g_Game.IsKindOf(object_name,
"Boat"))
6245 vector posRandom = MiscGameplayFunctions.GetRandomizedPositionVerifiedPlayer(
this,raycastDistance,radius,
this);
6278 item.SetPosition(pos_spawn);
6279 item.PlaceOnSurface();
6280 return can_be_dropped;
6307 string t = src.GetType();
6319 MiscGameplayFunctions.TransferItemProperties(src, dst);
6341 dst.PlaceOnSurface();
6342 dst.SetResultOfSplit(markItemAsSplitResult);
6343 MiscGameplayFunctions.TransferItemProperties(src, dst);
6373 Message(text,
"colorStatusChannel");
6385 Message(text,
"colorFriendly");
6391 Message(text,
"colorImportant");
6421 if ((
GetGame().IsServer() || !
GetGame().IsMultiplayer()) && GetInventory())
6426 for (
int i = 0; i < items.Count(); i++)
6435 ItemBase item_in_hands =
ItemBase.Cast(GetHumanInventory().GetEntityInHands());
6439 LocalDestroyEntityInHands();
6450 int count = itemsArray.Count();
6452 for (
int i = 0; i < itemsArray.Count(); i++)
6456 if (item && !item.IsInherited(SurvivorBase))
6458 ServerDropEntity(item);
6496 super.OnParticleEvent(pEventType ,pUserString, pUserInt);
6498 if (!
GetGame().IsDedicatedServer())
6500 if (pUserInt == 123456)
6503 int boneIdx = player.GetBoneIndexByName(
"Head");
6519 eff.SetAutodestroy(
true);
6522 player.AddChild(p, boneIdx);
6531 if (!ToDelete() && IsAlive() && !IsSwimming() && !
m_IsDrowning)
6582 vector pos = GetBonePositionWS(index);
6583 float depth =
g_Game.GetWaterDepth(pos);
6600 state_changed =
true;
6635 set<int> ret =
new set<int>;
6636 ret.Insert(EAttExclusions.SHAVING_MASK_ATT_0);
6637 ret.Insert(EAttExclusions.SHAVING_HEADGEAR_ATT_0);
6668 #ifdef DIAG_DEVELOPER
6670 if (IsControlledPlayer())
6709 if (amount > storedValue)
6751 if (IsPlayerSelected() && !IsAlive())
6801 if (
GetGame().SaveVersion() < 102)
6806 super.OnStoreSave(ctx);
6808 GetHumanInventory().OnStoreSave(ctx);
6838 arrowManager.
Save(ctx);
6863 if (!super.OnStoreLoad(ctx, version))
6867 if (!GetHumanInventory().
OnStoreLoad(ctx, version))
6877 Print(
"---- failed to load PlayerStats ----");
6883 Print(
"---- failed to load ModifiersManager, read fail ----");
6889 Print(
"---- failed to load AgentPool, read fail ----");
6895 Print(
"---- failed to load SymptomManager, read fail ----");
6901 Print(
"---- failed to load BleedingManagerServer, read fail ----");
6907 Print(
"---- failed to load PlayerStomach, read fail ----");
6929 Print(
"---- failed to load Persistent Flags, read fail ----");
6936 if (!ctx.
Read(onLadder))
6944 if (!ctx.
Read(position))
6960 arrowManager.
Load(ctx);
6964 Print(
"---- PlayerBase OnStoreLoad SUCCESS ----");
6970 GetHumanInventory().OnAfterStoreLoad();
6983 if (MiscGameplayFunctions.TeleportPlayerToSafeLocation3D(
this,safePos) &&
m_AdminLog)
6984 m_AdminLog.PlayerTeleportedLog(
this,currentPos,safePos,
"Spawning in Player Restricted Area: " + pra.
areaName);
6999 int lifespan_state = 0;
7000 if (!ctx.
Read(lifespan_state))
7004 int last_shaved = 0;
7005 if (!ctx.
Read(last_shaved))
7011 bool bloody_hands_old;
7012 if (!ctx.
Read(bloody_hands_old))
7018 int bloody_hands = 0;
7019 if (!ctx.
Read(bloody_hands))
7025 bool blood_visible =
false;
7026 if (!ctx.
Read(blood_visible))
7031 if (!ctx.
Read(blood_type))
7041 int hour, minute, second;
7112 PluginTransmissionAgents plugin = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
7114 float temperature = 0;
7120 if (pollution & EPollution.HEAVYMETAL)
7134 if (!edibleItem || !edibleItem.CanBeConsumed())
7140 temperature = edibleItem.GetTemperature();
7145 if (edibleItem.IsLiquidContainer())
7147 int liquidType = edibleItem.GetLiquidType();
7148 string liquidClassName = Liquid.GetLiquidClassname(liquidType);
7149 if (liquidClassName.
Length() == 0)
7150 Error(
"Error! Trying to add unknown liquid to stomach with item=" +
Object.GetDebugName(edibleItem) +
" data.m_Type=" + data.
m_Type +
" liquid_type=" + liquidType);
7158 foodStageType = edibleItem.
GetFoodStage().GetFoodStageType();
7218 if (!
GetGame().IsMultiplayer())
7247 if (m_ReplaceSoundEventHandler)
7248 return m_ReplaceSoundEventHandler.PlayReplaceSound(soundEventID, soundType, param);
7260 if (!m_PlayerSoundEventHandler)
7263 return m_PlayerSoundEventHandler.PlayRequestEx(
id, is_from_server, param);
7268 return m_PlayerSoundEventHandler;
7277 if (IsControlledPlayer())
7279 if (!
GetGame().IsDedicatedServer())
7310 if (IsControlledPlayer())
7312 if (!
GetGame().IsDedicatedServer())
7338 #ifdef DIAG_DEVELOPER
7343 DamageSystem.ResetAllZones(
this);
7395 transport.FixEntity();
7412 if (m_PerformedActionSounds.Count() == 0)
7421 m_PerformedActionSounds.Clear();
7427 if (
GetGame().IsClient())
return;
7473 float dist_check = distance * distance;
7474 PluginTransmissionAgents plugin = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
7478 if (
vector.
DistanceSq(GetWorldPosition(), target.GetWorldPosition()) < dist_check && target !=
this)
7524 int max_count = PluginTransmissionAgents.GetAgentMaxCount(agent_id);
7525 return m_AgentPool.GetSingleAgentCount(agent_id) / max_count;
7561 float min_distance = 0.5;
7567 int contactComponent;
7569 DayZPhysics.
RaycastRV(from, to, contactPos, contactDir, contactComponent, NULL, NULL, NULL,
false,
true);
7578 return (!mask || (mask && mask.AllowFoodConsumption()));
7661 return m_StatStamina;
7670 return m_StatSpecialty;
7679 return m_StatBloodType;
7688 return m_StatHeatBuffer;
7753#ifdef DIAG_DEVELOPER
7754 if (m_Bot && action_id >
EActions.PLAYER_BOT_INTERNAL_START && action_id <
EActions.PLAYER_BOT_END)
7756 m_Bot.StartAction(action_id);
7761 if (super.OnAction(action_id, player, ctx))
7795 PluginTransmissionAgents pluginTransmissionAgents = PluginTransmissionAgents.Cast(
GetPlugin(PluginTransmissionAgents));
7797#ifdef DIAG_DEVELOPER
7803 map<int, string> agentList = pluginTransmissionAgents.GetSimpleAgentList();
7807 foreach (
int tid,
string tname : agentList)
7809 string injectName =
"Inject " + tname;
7810 string removeName =
"Remove " + tname;
7820#ifdef DIAG_DEVELOPER
7825 int cnt = e.GetVariableCount();
7828 for (i = 0; i < cnt; i++)
7830 if (!e.GetVariableValue(null, i, val))
7833 if (val <=
EActions.PLAYER_BOT_INTERNAL_START)
7836 if (val ==
EActions.PLAYER_BOT_START)
7842 if (val >=
EActions.PLAYER_BOT_END)
7845 string name = e.GetVariableName(i);
7854 super.GetDebugActions(outputList);
7856 if (Gizmo_IsSupported())
7873 super.OnSyncJuncture(pJunctureID, pCtx);
7890 GetInventory().OnInventoryJunctureFromServer(pCtx);
7893 GetInventory().OnInventoryJunctureRepairFromServer(pCtx);
7896 GetInventory().OnInventoryJunctureFailureFromServer(pCtx);
7918 if (GetAimingModel() && IsFireWeaponRaised())
7920 GetAimingModel().RequestKuruShake(amount);
7953 SetGetInVehicleDebug(vehicle);
7975 item.SetPrepareToDelete();
7982 return !(GetThrowing().IsThrowingAnimationPlaying() || GetDayZPlayerInventory().IsProcessing() || (
GetActionManager() &&
GetActionManager().GetRunningAction()));
8002 for (
int i = count - 1; i >= 0 ; i--)
8005 if (itemToDelete != null)
8007 itemToDelete.GetInventory().GetCurrentInventoryLocation(il);
8018 for (
int j = count - 1; j >= 0 ; j--)
8021 if (itemToDelete == null)
8027 itemToDelete.Delete();
8066 m_fLastHeadingDiff = 0;
8071 return super.HeadingModel(pDt, pModel);
8101 return m_LiftWeapon_player;
8106 return m_ObstructWeapon_player;
8120 if (obstruction <= 0.0)
8125 float penetration = weapon.GetObstructionPenetrationDistance(obstruction);
8126 bool inSights = m_CameraIronsight || m_CameraOptics;
8131 return penetration > 0.040;
8137 return penetration > 0.005;
8167 m_ProcessLiftWeaponState = state;
8168 m_ProcessLiftWeapon =
true;
8169 m_ProcessObstructWeapon = obstruct;
8177 bool liftChange = m_LiftWeapon_player != state;
8178 bool obstructChange =
Math.
AbsFloat(m_ObstructWeapon_player-obstruct) > 0.03;
8181 m_LiftWeapon_player = state;
8182 m_ObstructWeapon_player = obstruct;
8189 if (!liftChange && !obstructChange)
8207 ctx.
Write(obstruct);
8222 bool limited = weap.LiftWeaponCheckEx(
this, obstruct, hitObject);
8223 if (weap.UseWeaponObstruction(
this, obstruct, hitObject))
8232 obstruct =
Math.
Clamp( obstruct, 0, 1 );
8234 if (m_LiftWeapon_player != limited || m_ObstructWeapon_player != obstruct)
8239 else if (m_LiftWeapon_player || m_ObstructWeapon_player > 0)
8248 if (m_ProcessLiftWeapon)
8250 bool liftChange = m_LiftWeapon_player != m_ProcessLiftWeaponState;
8255 m_LiftWeapon_player = m_ProcessLiftWeaponState;
8256 m_ObstructWeapon_player = m_ProcessObstructWeapon;
8257 m_ProcessLiftWeapon =
false;
8266 super.HideClothing(optic, state);
8283 SetInvisibleRecursive(
true,
this,clothingArray);
8293 SetInvisibleRecursive(
false,
this,clothingArray);
8305 super.SetDeathDarknessLevel(duration, tick_time);
8307 if (IsControlledPlayer())
8309 float actual_tick = tick_time;
8318 progress = 1 - ((duration - m_DeathDarkeningCurrentTime) / duration);
8320 m_DeathDarkeningCurrentTime += actual_tick;
8322 if (!IsAlive() && IsPlayerSelected())
8328 if (m_DeathDarkeningCurrentTime >= duration)
8330 StopDeathDarkeningEffect();
8335 StopDeathDarkeningEffect();
8376 OverrideSlidePoseAngle(
Math.
PI2);
8378 else if (!
IsInFBEmoteState() && IsControlledPlayer() && IsPlayerSelected())
8392 isActionPossible =
false;
8393 Magazine mag = Magazine.Cast(item);
8400 isActionPossible =
true;
8418 if (can_detach && target.GetInventory().FindFreeLocationFor(item, flags, il))
8424 return super.PredictiveTakeEntityToTargetInventory(target, flags, item);
8433 if (can_detach && GetInventory().FindFreeLocationFor(item, flags, il))
8439 return super.PredictiveTakeEntityToInventory(flags, item);
8445 Magazine mag = Magazine.Cast(item);
8446 if (parentWpn && mag)
8453 return super.PredictiveTakeEntityToTargetAttachment(target, item);
8459 Magazine mag = Magazine.Cast(item);
8460 if (parentWpn && mag)
8462 if (target.CanReceiveAttachment(item,slot) &&
GetWeaponManager().CanAttachMagazine(parentWpn, mag))
8467 return super.PredictiveTakeEntityToTargetAttachmentEx(target, item,slot);
8482 return super.PredictiveTakeEntityToTargetCargo(target,item);
8493 dst.
SetCargoAuto(cargo, item, row, col, item.GetInventory().GetFlipCargo());
8499 return super.PredictiveTakeEntityToTargetCargoEx (cargo, item, row, col);
8520 return super.PredictiveDropEntity(item);
8526 Magazine swapmag1 = Magazine.Cast(item1);
8527 Magazine swapmag2 = Magazine.Cast(item2);
8529 if (swapmag1 && swapmag2)
8533 if (
Class.
CastTo(parentWpn, swapmag1.GetHierarchyParent()))
8537 Print(
"[inv] PlayerBase.PredictiveSwapEntities: swapping mag1=" + swapmag1 +
" to parent wpn=" + parentWpn +
" of mag1=" + swapmag1);
8542 Print(
"[inv] PlayerBase.PredictiveSwapEntities: can not swap magazines");
8547 if (
Class.
CastTo(parentWpn, swapmag2.GetHierarchyParent()))
8551 Print(
"[inv] PlayerBase.PredictiveSwapEntities: swapping mag1=" + swapmag1 +
" to parent wpn=" + parentWpn +
" of mag2=" + swapmag2);
8556 Print(
"[inv] PlayerBase.PredictiveSwapEntities: can not swap magazines");
8570 if (mngr_client.GetAction(ActionSwapItemToHands).Can(
this,atrg,
ItemBase.Cast(item_hands)))
8575 return super.PredictiveSwapEntities(item1, item2);
8591 if (mngr_client.GetAction(ActionSwapItemToHands).Can(
this,atrg,
ItemBase.Cast(item2)))
8598 return super.PredictiveForceSwapEntities(item1, item2, item2_dst);
8603 if (item.IsHeavyBehaviour() && !
m_ActionManager.GetRunningAction() && !item.GetHierarchyParent())
8620 super.PredictiveTakeEntityToHands(item);
8638 return super.PredictiveTakeToDst(src,dst);
8651 item_ground = item1;
8653 item_ground = item2;
8655 return item_hands && item_ground && item_ground.IsHeavyBehaviour();
8666 ErrorEx(
"No valid head detected on character!");
8673 for (
int i = 0; i <
m_CharactersHead.m_HeadHairSelectionArray.Count(); ++i)
8679#ifdef DIAG_DEVELOPER
8692#ifdef DIAG_DEVELOPER
8695 switchState = !diagmenuu.m_HairHidingStateMap.Get(level);
8696 diagmenuu.m_HairHidingStateMap.Set(level, switchState);
8702 switchState = !state;
8722 item.GetInventory().GetCurrentAttachmentSlotInfo(slot_id,slot_name);
8724 if (item.HidesSelectionBySlot())
8726 count = item.GetInventory().GetSlotIdCount();
8727 for (i = 0; i < count; i++)
8729 if (item.GetInventory().GetSlotId(i) == slot_id)
8731 str = item.GetHeadHidingSelection().Get(i);
8737 Debug.
Log(
"No valid selection '" + str +
"' found on head of " +
GetType() +
". Verify the p3d, model config, and the 'HAIR_HIDING_SELECTIONS' macro in basicDefines.");
8744 count = item.GetHeadHidingSelection().Count();
8745 for (i = 0; i < count; i++)
8747 str = item.GetHeadHidingSelection().Get(i);
8753 Debug.
Log(
"No valid selection '" + str +
"' found on head of " +
GetType() +
". Verify the p3d, model config, and the 'HAIR_HIDING_SELECTIONS' macro in basicDefines.");
8765 bool exception_hidden =
false;
8777 for (i = 0; i < count; i++)
8782 for (i = 0; i < count; i++)
8796 exception_hidden =
true;
8802 if (exception_hidden)
8814 for (
int i = 0; i < translatedSelectinosArray.Count(); i++)
8816 index = translatedSelectinosArray.Get(i);
8876 Error(
"AddActiveNV | illegal server-side call!");
8891 Error(
"RemoveActiveNV | illegal server-side call!");
8909 string text = super.GetDebugText();
8926 void DEBUGRotateNVG()
8930 if (FindAttachmentBySlotName(
"Eyewear"))
8932 nvg = NVGoggles.Cast(FindAttachmentBySlotName(
"Eyewear").FindAttachmentBySlotName(
"NVG"));
8934 else if (FindAttachmentBySlotName(
"Headgear"))
8936 nvg = NVGoggles.Cast(FindAttachmentBySlotName(
"Headgear").FindAttachmentBySlotName(
"NVG"));
8941 nvg.RotateGoggles(nvg.m_IsLowered);
8950 if (slot_name ==
"Headgear")
8952 item.SetSimpleHiddenSelectionState(0,1);
8953 item.SetSimpleHiddenSelectionState(1,0);
8955 else if (slot_name ==
"Mask")
8957 item.SetSimpleHiddenSelectionState(0,0);
8958 item.SetSimpleHiddenSelectionState(1,1);
8967 if (slot_name ==
"Headgear")
8969 item.SetSimpleHiddenSelectionState(0,1);
8970 item.SetSimpleHiddenSelectionState(1,0);
8972 else if (slot_name ==
"Mask")
8974 item.SetSimpleHiddenSelectionState(0,0);
8975 item.SetSimpleHiddenSelectionState(1,1);
8996 for (
int i = 0; i < bodyparts.Count(); i++)
8999 bodypart = GetInventory().FindPlaceholderForSlot(slot_id);
9000 item =
ItemBase.Cast(GetInventory().FindAttachment(slot_id));
9004 path =
"cfgVehicles " + bodypart.GetType();
9005 idx = bodypart.GetHiddenSelectionIndex(
"personality");
9013 path =
"cfgVehicles " + item.GetType();
9014 idx = item.GetHiddenSelectionIndex(
"personality");
9077 int idx = GetHiddenSelectionIndex(
"decay_preload");
9143 legZones.Insert(
"LeftLeg");
9144 legZones.Insert(
"RightLeg");
9145 legZones.Insert(
"RightFoot");
9146 legZones.Insert(
"LeftFoot");
9148 foreach (
string legZone : legZones)
9149 DecreaseHealth(legZone,
"", inputDmg);
9155 if (!hide && ((!IsSwimming() && !IsClimbingLadder() && !IsInVehicle() && !
AnimCommandCheck(HumanMoveCommandID.CommandSwim | HumanMoveCommandID.CommandLadder | HumanMoveCommandID.CommandVehicle)) || force))
9157 GetItemAccessor().HideItemInHands(
false);
9161 GetItemAccessor().HideItemInHands(
true);
9169 if (target.GetInventory().FindFreeLocationFor(item, flags, il))
9179 float stackableTarget = item.GetTargetQuantityMax(slotID);
9180 if (stackableTarget > 0 && stackableTarget < item.GetQuantity())
9183 if (CastTo(itemB, item))
9185 itemB.SplitIntoStackMaxToInventoryLocationClient(il);
9200 return super.TakeEntityToInventoryImpl(mode, flags, item);
9211 return super.TakeEntityToCargoImpl(mode, item);
9222 return super.TakeEntityAsAttachmentImpl(mode, item);
9233 super.TakeEntityToHandsImpl(mode, item);
9244 return super.TakeEntityToTargetInventoryImpl(mode, target, flags, item);
9255 return super.TakeEntityToTargetCargoImpl(mode, target, item);
9266 return super.TakeEntityToTargetAttachmentImpl(mode, target, item);
9277 return super.TakeToDstImpl(mode, src, dst);
9291 float playerSpeed = GetCommand_Move().GetCurrentMovementSpeed();
9297 float particleLifetime = 5.25;
9298 float particleSpeed = 0.25;
9299 if (playerSpeed >= 1)
9301 particleLifetime = 3.5;
9302 particleSpeed = 3.25;
9304 if (playerSpeed >= 2)
9306 particleLifetime = 2.5;
9307 particleSpeed = 5.25;
9309 if (playerSpeed >= 3)
9311 particleLifetime = 1.5;
9312 particleSpeed = 8.25;
9321 GetTransform(transform);
9329 if (!IsControlledPlayer())
9357 int pivot = componentIndex;
9373 vector parentTransMat[4];
9376 arrow.GetTransform(arrowTransMat);
9380 GetTransformWS(parentTransMat);
9387 parentTransMat[0] = rotMatrix[0];
9388 parentTransMat[1] = rotMatrix[1];
9389 parentTransMat[2] = rotMatrix[2];
9390 parentTransMat[3] = closeBonePosWS;
9395 arrow.SetTransform(arrowTransMat);
9402 if (bleedingManager)
9404 if (!bleedingManager.AttemptAddBleedingSourceBySelection(compName))
9405 bleedingManager.AttemptAddBleedingSourceBySelection(
"Pelvis");
9427 super.OnFreezeStateChangeClient();
9474 consumeData.
m_Type = consume_type;
Param4< int, int, string, int > TSelectableActionInfoWithColor
void syncDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
eBleedingSourceType GetType()
void ActionDrinkPondContinuous()
ActionEatSnowContinuousCB ActionContinuousBaseCB ActionEatSnowContinuous()
void ActionManagerBase(PlayerBase player)
map< typename, ref array< ActionBase_Basic > > TInputActionMap
ActionStartCarCB ActionContinuousBaseCB ActionStartEngine()
ActionStartEngineBoatCB ActionContinuousBaseCB ActionStartEngineBoat()
void ActionTarget(Object object, Object parent, int componentIndex, vector cursorHitPos, float utility, string surfaceName="")
ActionUncoverHeadBase ActionContinuousBase ActionUncoverHeadSelf()
override bool CanBePerformedWhileChangingStance()
ActionWashHandsSnowCB ActionContinuousBaseCB ActionWashHandsSnow()
ActionWashHandsWaterCB ActionContinuousBaseCB ActionWashHandsWater()
void AddAction(typename actionName)
void RemoveAction(typename actionName)
override ArrowManagerBase GetArrowManager()
const int BREATH_VAPOUR_LEVEL_MAX
void EffectRadial(Param param1, Param param2)
const int ECE_EQUIP_ATTACHMENTS
const int ECE_PLACE_ON_SURFACE
const int ECE_IN_INVENTORY
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
DamageType
exposed from C++ (do not change)
proto native int GetBoneIndexByName(string pBoneName)
returns bone index for a name (-1 if pBoneName doesn't exist)
ref HumanMovementState m_MovementState
movement state
void DayZPlayerCameraOptics(DayZPlayer pPlayer, HumanInputController pInput)
ref DayZPlayerImplementMeleeCombat m_MeleeCombat
void DayZPlayerUtils()
cannot be instantiated
DisplayElementBase GetElement(eDisplayElements element_id)
void VirtualHud(PlayerBase player)
bool Consume(float amount, PlayerBase consumer)
int GetID()
Get the ID registered in SEffectManager.
void EmoteManager(PlayerBase player)
bool OnInputUserDataProcess(int userDataType, ParamsReadContext ctx)
void Environment(PlayerBase pPlayer)
bool IsProcessing()
returns true when FP is heating or cooling
proto native Hive GetHive()
void InjuryAnimationHandler(PlayerBase player)
FindInventoryLocationType
flags for searching locations in inventory
InventoryLocationType
types of Inventory Location
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
override void InsertAgent(int agent, float count=1)
class ItemBase extends InventoryItem SpawnItemOnLocation(string object_name, notnull InventoryLocation loc, bool full_quantity)
static string GetDisplayName(int liquid_type)
void MapNavigationBehaviour(PlayerBase pPlayer, EMapNavigationType pNavigationType=EMapNavigationType.BASIC)
bool OnStoreLoad(ParamsReadContext ctx, int version)
void ModifiersManager(PlayerBase player)
void NotifiersManager(PlayerBase player)
VirtualHud GetVirtualHud()
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
void PlayerSoundEventHandler(PlayerBase player)
void PlayerSoundManagerClient(PlayerBase player)
void PlayerStat(T min, T max, T init, string label, int flags)
bool LoadStats(ParamsReadContext ctx, int version)
void PlayerStats(Man player)
PlayerStatBase GetStatObject(int id)
void PlayerStomach(PlayerBase player)
PluginConfigDebugProfile m_ConfigDebugProfile
void PluginItemDiagnostic()
PluginManager GetPluginManager()
Returns registred plugin by class type, better is to use global funtion GetPlugin(typename plugin_typ...
PluginBase GetPlugin(typename plugin_type)
void PluginPresenceNotifier()
EPresenceNotifierNoiseEventType
void QuickBarBase(PlayerBase player)
void RandomGeneratorSyncManager(DayZPlayer player)
const float DEFAULT_SPAWN_DISTANCE
void ReplaceSoundEventHandler(PlayerBase player)
StaminaHandler m_StaminaHandler
void UndergroundHandlerClient(PlayerBase player)
bool IsFullBody(PlayerBase player)
static string GetPulseMessage(EPulseType pulse_type, int blood_level)
const int TARGET_IRREGULAR_PULSE_BIT
Vector2 GetCameraLRAngle()
bool IsCameraLockOnPerform()
bool CanPerformActionFromQuickbar(ItemBase mainItem, ItemBase targetItem)
void PerformActionFromQuickbar(ItemBase mainItem, ItemBase targetItem)
override void RequestInterruptAction()
client requests action interrupt
override void RequestEndAction()
void PerformActionStart(ActionBase action, ActionTarget target, ItemBase item, Param extra_data=NULL)
override void EndActionInput()
void ForceTarget(Object targetObject)
static void PlayerDisconnected(StatsEventDisconnectedData data)
static void PlayerMeasures(StatsEventMeasuresData data)
void OnItemAttachedAtPlayer(EntityAI item, string slot_name)
void OnEntityHit(EntityAI source, Man target)
void OnPlayerDisconnect(Man player)
const string STAT_PLAYTIME
void OnPlayerConnect(Man player)
const string STAT_DISTANCE
bool Save(ParamsWriteContext ctx)
bool Load(ParamsReadContext ctx)
static SoundOnVehicle SaySound(Object source, string sound_name, float distance, bool looped)
proto native UIManager GetUIManager()
proto native bool HasInventoryJunctureDestination(Man player, notnull InventoryLocation dst)
proto native void GetPlayers(out array< Man > players)
proto native void RPCSingleParam(Object target, int rpc_type, Param param, bool guaranteed, PlayerIdentity recipient=null)
see CGame.RPC
proto native void EnableVoN(Object player, bool enable)
Enable/disable VoN for target player.
proto native void SetVoiceEffect(Object player, int effect, bool enable)
Enable/disable VoN effect (only on server)
override ScriptCallQueue GetCallQueue(int call_category)
proto native void GizmoSelectObject(Object object)
proto native void MutePlayer(string muteUID, string playerUID, bool mute)
Mutes voice of source player to target player.
bool IsKindOf(string cfg_class_name, string cfg_parent_name)
Returns is class name inherited from parent class name.
proto native MenuData GetMenuData()
Return singleton of MenuData class - at main menu contains characters played with current profile.
proto native AbstractSoundScene GetSoundScene()
proto native void ChatMP(Man recipient, string text, string colorClass)
proto native int ConfigGetInt(string path)
Get int value from config on path.
proto native void Chat(string text, string colorClass)
Prints text into game chat.
proto native void RPC(Object target, int rpcType, notnull array< ref Param > params, bool guaranteed, PlayerIdentity recipient=null)
Initiate remote procedure call. When called on client, RPC is evaluated on server; When called on ser...
proto native void GizmoSelectPhysics(Physics physics)
AnalyticsManagerServer GetAnalyticsServer()
proto native vector GetCurrentCameraPosition()
proto int GetTime()
returns mission time in milliseconds
proto void SurfaceUnderObject(notnull Object object, out string type, out int liquidType)
AnalyticsManagerClient GetAnalyticsClient()
proto native void RemoteObjectTreeCreate(Object obj)
RemoteObjectCreate - postponed registration of network object (and creation of remote object)....
proto native vector GetCurrentCameraDirection()
proto native bool ExecuteEnforceScript(string expression, string mainFnName)
Delevoper only: Executes Enforce Script expression, if there is an error, is printed into the script ...
proto native Mission GetMission()
proto native void ObjectDelete(Object obj)
proto void ObjectGetType(Object obj, out string type)
static ref TStringArray ARRAY_STRING
static ref Param1< bool > PARAM1_BOOL
static ref Param1< int > PARAM1_INT
static ref Param1< string > PARAM1_STRING
static ref Param2< float, float > PARAM2_FLOAT_FLOAT
represents base for cargo storage for entities
static bool GetUse3DMap()
static int GetLightingConfig()
static bool GetAllowStaminaAffectInertia()
static bool GetHitIndicationPPEEnabled()
static TStringSet GetDisallowedTypesInUnderground()
static bool GetDisableRespawnDialog()
static bool IsInitialized()
static bool IsPointInPlayerRestrictedArea(vector point, out PlayerRestrictedAreaInstance hitArea)
Super root of all classes in Enforce script.
static void RemovePlayerBase(Man player)
static void AddPlayerBase(Man player)
Client only - manage set up crafting on client.
static proto bool RaycastRV(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, set< Object > results=NULL, Object with=NULL, Object ignore=NULL, bool sorted=false, bool ground_only=false, int iType=ObjIntersectView, float radius=0.0, CollisionFlags flags=CollisionFlags.NEARESTCONTACT)
Raycasts world by given parameters.
this is main camera class
static bool NoHeading(float pDt, SDayZPlayerHeadingModel pModel, out float pLastHeadingDiff)
static bool RestrictHeading(float pDt, SDayZPlayerHeadingModel pModel, out float pLastHeadingDiff, HeadingRestrictData restrictData)
static bool ClampHeading(float pDt, SDayZPlayerHeadingModel pModel, out float pLastHeadingDiff)
static const int SJ_BROKEN_LEGS
static const int SJ_ACTION_INTERRUPT
static const int SJ_PLAYER_STATES
static const int SJ_ACTION_ACK_REJECT
static const int SJ_WEAPON_LIFT
static const int SJ_STAMINA
static const int SJ_INVENTORY_REPAIR
static bool ReadShockParams(ParamsReadContext pCtx, out float shockValue)
static const int SJ_KURU_REQUEST
static const int SJ_PLAYER_ADD_MODIFIER
static const int SJ_WEAPON_ACTION_ACK_REJECT
static const int SJ_SHOCK
static void SendDeleteItem(DayZPlayer pPlayer, EntityAI item)
static bool ReadKuruRequest(ParamsReadContext pCtx, out float amount)
static const int SJ_GESTURE_REQUEST
static const int SJ_QUICKBAR_SET_SHORTCUT
static bool ReadBrokenLegsParamsEx(ParamsReadContext pCtx, out int currentState)
static const int SJ_INVENTORY_FAILURE
static const int SJ_WEAPON_ACTION_ACK_ACCEPT
static const int SJ_UNCONSCIOUSNESS
static const int SJ_DELETE_ITEM
static const int SJ_ADS_RESET
static const int SJ_WEAPON_SET_JAMMING_CHANCE
static bool ReadInjuryParams(ParamsReadContext pCtx, out bool pEnable, out eInjuryHandlerLevels level)
static void SendPlayerUnconsciousness(DayZPlayer pPlayer, bool enable)
static const int SJ_ACTION_ACK_ACCEPT
static bool ReadPlayerUnconsciousnessParams(ParamsReadContext pCtx, out bool enable)
static void SendBrokenLegsEx(DayZPlayer pPlayer, int currentState)
static const int SJ_INJURY
static const int SJ_STAMINA_MISC
static const int SJ_INVENTORY
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
int FilterAgents(int agentsIn)
Filter agents from the item (override on higher implementations)
bool Consume(float amount, PlayerBase consumer)
override FoodStage GetFoodStage()
Particle GetParticle()
Gets the main particle which this Effect is managing.
void SetDecalOwner(Object o)
Wrapper class for managing particles through SEffectManager.
override void SetAutodestroy(bool auto_destroy)
Sets whether Effect automatically cleans up when it stops.
Wrapper class for managing sound through SEffectManager.
bool PredictiveSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
static proto native bool PrepareDropEntityPos(EntityAI owner, notnull EntityAI item, out vector mat[4], bool useValuesInMatrix=false, int conflictCheckDepth=-1)
Finds a transformation for the item to be dropped to If the initial transforation overlaps with anoth...
proto native bool EnumerateInventory(InventoryTraversalType tt, out array< EntityAI > items)
enumerate inventory using traversal type and filling items array
static bool CanSwapEntitiesEx(notnull EntityAI item1, notnull EntityAI item2)
static bool CanForceSwapEntitiesEx(notnull EntityAI item1, InventoryLocation item1_dst, notnull EntityAI item2, out InventoryLocation item2_dst)
script counterpart to engine's class Inventory
const int NUMBER_OF_STAGES
proto native void CharacterSave(Man player)
proto native bool CharacterIsLoginPositionChanged(Man player)
Only valid during login.
proto native void CharacterKill(Man player)
static void ApplyEffects(PlayerBase player)
static const float HEAT_DAMAGE_TICK_TIME
void ShowHudUI(bool show)
void ShowQuickbarUI(bool show)
proto native vector GetLogoutPosition()
proto native void SetTurnSpanSprintModifier(float value)
sets the multiplier for HumanItemBehaviorCfg::m_fMoveHeadingSprintFilterSpan
proto native void ForceStance(int pStanceIdx)
proto native void SetRunSprintFilterModifier(float value)
sets the multiplier for SHumanCommandMoveSettings::m_fRunSpringTimeout
proto native void SetDirectionSprintFilterModifier(float value)
sets the multiplier for SHumanCommandMoveSettings::m_fDirFilterSprintTimeout
proto native void SetMeleeBlock(bool pBlock)
this enables/disables block
proto native bool IsInWater()
proto native void WakeUp(int targetStance=-1)
proto native Transport GetTransport()
proto native bool IsGettingIn()
proto native void SetVehicleType(int pVehicleType)
proto native bool IsSwitchSeat()
proto native bool IsGettingOut()
proto native EntityAI GetEntityInHands()
inventory for plain man/human
int m_StanceRotation[6]
6 stances -> all has movement mask, STANCEIDX_ ... is index
int m_iMovement
current stance (DayZPlayerConstants.STANCEIDX_ERECT, ...), only if the command has a stance
Client only - manage set up crafting on client.
proto native void SetHands(notnull EntityAI parent, EntityAI e)
sets current inventory location type to Hands
static string DumpToStringNullSafe(InventoryLocation loc)
proto native vector GetPos()
returns position of item in world if type is Ground
proto native int GetSlot()
returns slot id if current type is Attachment
proto native InventoryLocation CopyLocationFrom(notnull InventoryLocation rhs, bool copyFlip)
copies location to another location without m_item member
proto native void SetGround(EntityAI e, vector mat[4])
sets current inventory location type to Ground with transformation mat
proto native void SetCargoAuto(notnull CargoBase cargo, EntityAI e, int row, int col, bool flip)
based on Cargo.IsProxyCargo uses SetProxyCargo or SetCargo respectively
proto native int GetType()
returns type of InventoryLocation
bool ReadFromContext(ParamsReadContext ctx)
static proto native int GetSlotIdFromString(string slot_name)
converts string to slot_id
provides access to slot configuration
proto native float GetCurrentStepFOV()
returns fov value at current index, or 'OpticsInfo.opticsZoomInit' config value (non-zooming optics)
static const string NAME_FIRE
static bool IsSyncLogEnable()
ref MapNavigationBehaviour m_MapNavigationBehaviour
bool AnimCommandCheck(HumanMoveCommandID mask)
bool IsTargetInActiveRefresherRange(EntityAI target)
override void PredictiveTakeEntityToHands(EntityAI item)
float GetSimplifiedShockNormalized()
string m_UALastMessage
user actions & symptoms
ref PlayerSoundManagerServer m_PlayerSoundManagerServer
SymptomManager GetSymptomManager()
void UpdateHairSelectionVisibility(bool was_debug=false)
PlayerStat< float > GetStatSpecialty()
DayZPlayerCameraBase m_CurrentCamera
ref Param2< float, float > m_UAProgressParam
void SetNVGWorking(bool state)
Deprecated.
bool GetLiquidTendencyDrain()
bool IsAntibioticsActive()
PlayerStat< float > GetStatToxicity()
PlayerBase m_CheckPulseLastTarget
override bool IsUnconsciousStateOnly()
float GetSingleAgentCountNormalized(int agent_id)
override bool IsRefresherSignalingViable()
ref BleedingSourcesManagerRemote m_BleedingManagerRemote
ref array< int > m_ProcessAddGlassesEffects
override bool PredictiveTakeEntityToTargetCargoEx(notnull CargoBase cargo, notnull EntityAI item, int row, int col)
void SetPlayerLoad(float load)
void AddToEnvironmentTemperature(float pTemperature)
override void ProcessLiftWeapon()
ref CraftingManager m_CraftingManager
void FixAllInventoryItems()
override bool IsLanded(int pCurrentCommandID)
void ReloadWeapon(EntityAI weapon, EntityAI magazine)
override void GetActions(typename action_input_type, out array< ActionBase_Basic > actions)
void AddPossibleCoverFaceForShave()
DEPRECATED!
void RefreshHandAnimationState(int delay=0)
void ImmuneSystemTick(float value, float deltaT)
override void OnReceivedHit(ImpactEffectsData hitData)
override void OnVariablesSynchronized()
ref array< int > m_ProcessRemoveEffectWidgets
void OnUnconsciousStart()
void SetCraftingRecipeID(int recipeID)
PlayerSoundManagerServer GetPlayerSoundManagerServer()
void UpdateQuickBarEntityVisibility(EntityAI entity)
override bool CanStartConsumingStamina(EStaminaConsumers consumer)
override bool NeedInventoryJunctureFromServer(notnull EntityAI item, EntityAI currParent, EntityAI newParent)
ItemBase GetItemOnSlot(string slot_type)
Returns item that's on this player's attachment slot. Parameter slot_type should be a string from con...
override void OnThrowingModeChange(bool change_to_enabled)
override bool CanSwapItemInCargo(EntityAI child_entity, EntityAI new_entity)
override void OnStoreSave(ParamsWriteContext ctx)
bool TakeEntityToInventoryImpl(InventoryMode mode, FindInventoryLocationType flags, notnull EntityAI item)
void MessageAction(string text)
void ClearLastUAMessage()
void OnCommandHandlerTick(float delta_time, int pCurrentCommandID)
ref SymptomManager m_SymptomManager
void SetImmunityBoosted(bool boosted)
bool CheckAndExecuteStackSplit(FindInventoryLocationType flags, notnull EntityAI item, notnull EntityAI target)
override SoundOnVehicle PlaySound(string sound_name, float range, bool create_local=false)
void SetActivePrimarySymptomID(SymptomIDs id)
override void OnCommandClimbStart()
void SwitchItemTypeDetach(EntityAI item, string slot)
void RadialQuickBarCombine(int slotClicked)
void SetBloodType(int blood_type)
void Message(string text, string style)
void RemoveCurrentEffectTrigger()
void MapNavigationItemInPossession(EntityAI item)
void SetBloodTypeVisible(bool show)
void SetMixedSoundState(eMixedSoundStates state)
ref map< EEffectAreaType, float > m_EffectAreaTimeToTick
const int SIMPLIFIED_SHOCK_CAP
PlayerStat< float > m_StatEnergy
void PlacingCancelServer()
bool m_MeleeDebug
melee stats
void IncreaseContaminatedAreaCount()
float GetImmunity()
returns player's immunity strength between 0..1
override bool IsLiftWeapon()
ItemBase CreateCopyOfItemInInventoryOrGroundEx(ItemBase src, bool markItemAsSplitResult=false)
static ref array< string > m_BleedingSourcesLow
vector m_DirectionToCursor
void ProcessADSSyncResetRequest()
void OnBleedingSourceAdded()
DamageDealtEffect GetDamageDealtEffect()
ref TInputActionMap m_InputActionMap
ref PlayerStats m_PlayerStats
void SendSoundEventEx(EPlayerSoundEventID id, int param=0)
void ResetPlayer(bool set_max)
override void OnCommandDeathStart()
EntityAI SpawnAI(string object_name, vector pos)
override void OnPlayerRecievedHit()
PluginPlayerStatus m_ModulePlayerStatus
void EndSurrenderRequest(SurrenderData data=null)
ends surrender, originally intended for surrender->restrained transitioning
ItemBase GetItemOnHead()
Returns item on player's head. For an example, a headtorch.
void OnInventoryMenuClose()
bool CanSpawnBreathVaporEffect()
void CloseMapEx(bool cancelled)
TransferValues GetTransferValues()
int m_SyncedModifiersPrev
override bool OnStoreLoad(ParamsReadContext ctx, int version)
override float GetWeaponObstruction()
ref array< int > m_Recipes
void UpdateBrokenLegs(int stateId)
override bool IsUnconscious()
override void SpawnDamageDealtEffect()
DebugMonitorValues GetDebugMonitorValues()
bool m_MapCloseRequestProcessed
ref EffectParticle m_FliesEff
ref array< int > m_ProcessRemoveGlassesEffects
ref ArrowManagerPlayer m_ArrowManager
PlayerStat< float > m_StatHeatComfort
ref PlayerAgentPool m_AgentPool
void QueueRemoveEffectWidget(array< int > effects)
bool m_LiquidTendencyDrain
EPulseType GetPulseType()
EEffectAreaType m_InEffectAreaType
override bool PredictiveDropEntity(notnull EntityAI item)
void SetPersistentFlag(PersistentFlag bit, bool enable)
void SetStaminaState(eStaminaState state)
override void OnRollFinish()
void SetHeatBufferDynamicMax(float value)
int GetBreathVapourLevel()
bool IsSwapBetweenHandsAndGroundLargeItem(notnull EntityAI item1, notnull EntityAI item2, out EntityAI item_hands, out EntityAI item_ground)
ref UndergroundHandlerClient m_UndergroundHandler
vector GetLocalProjectionOrientation()
const int ACT_STORE_SAVE_VERSION
void SetStamina(int value, int range)
void SetActionEndInput(ActionBase action)
float GetStatBordersWater()
bool TakeEntityToTargetAttachmentImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
void dmgDebugPrint(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
float GetTemporaryResistanceToAgent(int agent)
override void OnLadder(float delta_time, HumanMovementState pState)
called every command handler tick when player is on ladder
override bool OnInputUserDataProcess(int userDataType, ParamsReadContext ctx)
void OnPlayerReceiveFlashbangHitStart(bool visual)
override array< string > GetSuitableFinisherHitComponents()
returns list of suitable finisher hit components (defined on base entity/entity type)
string GetLastUAMessage()
UA Last Message.
eMixedSoundStates GetMixedSoundStates()
void SpawnShockEffect(float intensity_max)
void MessageFriendly(string text)
bool IsMapCallbackCancelInput()
override bool OnAction(int action_id, Man player, ParamsReadContext ctx)
override int GetQuickBarBonus()
ref Hologram m_HologramServer
override void EEHitBy(TotalDamageResult damageResult, int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos, float speedCoef)
BleedingSourcesManagerServer GetBleedingManagerServer()
vector m_LocalProjectionOrientation
override bool PredictiveSwapEntities(notnull EntityAI item1, notnull EntityAI item2)
bool IsInEffectArea(EEffectAreaType area)
void OnPlayerIsNowInsideEffectAreaEndServer()
void OnBleedingSourceRemovedEx(ItemBase item)
static Particle m_ContaminatedAroundPlayerTiny
override void EEKilled(Object killer)
void SetBloodyHands(bool show)
float GetStatBordersEnergy()
override bool CanReleaseAttachment(EntityAI attachment)
void RadialQuickBarSingleUse(int slotClicked)
override void EEItemOutOfHands(EntityAI item)
float GetBordersImmunity()
int m_ActivePrimarySymptomID
SymptomIDs GetActivePrimarySymptomID()
void QuickReloadWeapon(EntityAI weapon)
void PreloadDecayTexture()
void DecreaseHealingsCount()
bool CanConsumeFood(ConsumeConditionData data=null)
VirtualHud GetVirtualHud()
EffectSound m_AmbientContamination
override void EEItemIntoHands(EntityAI item)
void MapNavigationItemNotInPossession(EntityAI item)
void UpdateShoulderProxyVisibility(EntityAI item, string slot_name)
int GetCraftingRecipeID()
override bool IsRestrained()
void OnSpawnedFromConsole()
void SetLiftWeapon(bool state, float obstruct=0)
ref Param2< int, int > m_UAParam
void ShowUnconsciousScreen(bool show)
override bool PredictiveTakeEntityToTargetAttachment(notnull EntityAI target, notnull EntityAI item)
ref array< int > m_ProcessAddEffectWidgets
override void SwitchItemSelectionTexture(EntityAI item, string slot_name)
bool m_InsideEffectAreaPrev
bool ReadLiftWeaponRequest(int userDataType, ParamsReadContext ctx)
EStatLevels GetStatLevelEnergy()
bool m_AllowQuickRestrain
override bool IsFighting()
ref EffectRadial m_EffectRadial
ref Environment m_Environment
void SetNVGLowered(bool state)
void SetLocalProjectionOrientation(vector local_orientation)
bool IsPersistentFlag(PersistentFlag bit)
override void EOnFrame(IEntity other, float timeSlice)
int m_ContaminatedAreaCount
PlayerStat< float > GetStatEnergy()
void OnUnconsciousUpdate(float pDt, int last_command)
override void OnCommandLadderStart()
int m_PerformedAnimActionID
GameplayEffectWidgets_base m_EffectWidgets
effect widgets
void DecreaseEffectAreaCount()
override void RemoveAgent(int agent_id)
override vector GetDefaultHitPosition()
float m_OriginalSlidePoseAngle
float m_UnconsciousEndTime
override EntityAI SpawnEntityOnGroundPos(string object_name, vector pos)
PlayerStomach GetStomach()
ref PlayerStomach m_PlayerStomach
void OnQuickbarSetEntityRequest(ParamsReadContext ctx)
void IncreaseDiseaseCount()
void SetMapOpen(bool state)
CraftingManager GetCraftingManager()
void AdjustBandana(EntityAI item, string slot_name)
void SetLastMapInfo(float scale, vector pos)
override string GetDefaultHitComponent()
returns default hit component (fallback)
void SwitchItemTypeAttach(EntityAI item, string slot)
bool m_BrokenLegsJunctureReceived
override void CommandHandler(float pDt, int pCurrentCommandID, bool pCurrentCommandFinished)
override WeaponManager GetWeaponManager()
ModifiersManager GetModifiersManager()
void IncreaseAntibioticsCount()
float GetStatLevelBorders(float stat_value, float critical, float low, float normal, float high, float max)
void RequestUnconsciousness(bool enable)
UndergroundHandlerClient GetUndergroundHandler()
string m_CachedPlayerName
override void EEItemDetached(EntityAI item, string slot_name)
void RemoveAction(typename actionName, out TInputActionMap InputActionMap)
bool ResetADSPlayerSync(int userDataType, ParamsReadContext ctx)
server only
void SetHairLevelToHide(int level, bool state, bool was_debug=false)
Dynamic hair hiding.
void SpawnDrowningBubbles()
void IncreaseHealingsCount()
void SetActionsRemoteTarget(out TInputActionMap InputActionMap)
override bool CanChangeStance(int previousStance, int newStance)
void SetSoundCategoryHash(int hash)
override bool CanDropEntity(notnull EntityAI item)
ref SoundObject m_SaySoundObject
EffectTrigger m_CurrentEffectTrigger
ItemBase m_CheckMeleeItem
void HandleBrokenLegsSync()
void OnVoiceEventPlayback(PlayerSoundEventBase voice_event, AbstractWave callback, float playback_time)
called every cmd handler tick during a playback of PlayerSoundEvent, m_ProcessPlaybackEvent needs to ...
void TogglePlacingLocal(ItemBase item=null)
ref ShockDealtEffect m_ShockDealtEffect
void OnJumpOutVehicleFinish(float carSpeed)
float GetHeatBufferDynamicMax()
void SetUnderground(EUndergroundPresence presence)
void QueueRemoveGlassesEffect(int id)
void RequestTriggerEffect(EffectTrigger trigger, int ppeIdx=-1, int aroundId=ParticleList.CONTAMINATED_AREA_GAS_AROUND, int tinyId=ParticleList.CONTAMINATED_AREA_GAS_TINY, string soundset="", bool partDynaUpdate=false, int newBirthRate=0, bool forceUpdate=false)
bool m_IsRestrainStartedLocal
bool m_MapClosingSyncSent
bool m_CanPlayBrokenLegSound
override void OnStanceChange(int previousStance, int newStance)
void PlacingCancelLocal()
static ref array< CargoBase > SPREAD_AGENTS_PROXY_CARGOS
void SetInWater(bool pState)
water contact (driven by Environment)
void SetLastFirePointRot(float last_fire_point_rot)
void OnVoiceEvent(PlayerSoundEventBase voice_event)
void SetEnableQuickBarEntityShortcut(EntityAI entity, bool value)
EntityAI CreateInInventory(string item_name, string cargo_type="", bool full_quantity=false)
void AntibioticsAttack(float value)
override bool IsWeaponObstructionBlockingADS()
ActionManagerBase GetActionManager()
bool IsItemInInventory(EntityAI entity)
void AddActiveNV(int type)
int m_RefreshAnimStateIdx
void SetLoadedQuickBarItemBind(EntityAI entity, int index)
void CheckSendSoundEvent()
int m_InventorySoftLockCount
void SetLifeSpanStateVisible(int show_state)
override void OnJumpStart()
void RemoveQuickBarEntityShortcut(EntityAI entity)
vector SetDefaultHitPosition(string pSelection)
override bool IsHoldingBreath()
void UpdateTranslatedSelections(SelectionTranslation stt)
ref DebugMonitorValues m_DebugMonitorValues
bool m_InventorySoftLocked
void MessageImportant(string text)
void SetHitPPEEnabled(bool enabled)
bool m_CanDisplayHitEffectPPE
int GetStoreLoadVersion()
SoftSkillsManager GetSoftSkillsManager()
ref Param3< float, float, bool > m_StaminaParam
bool Consume(ItemBase source, float amount, EConsumeType consume_type)
Hologram GetHologramLocal()
override void OnGameplayDataHandlerSync()
void OnQuickBarContinuousUseStart(int slotClicked)
float GetHealthRegenSpeed()
void SaveAreaPersistenceFlag(ParamsWriteContext ctx)
override bool PredictiveTakeEntityToTargetInventory(notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
void RemovePossibleCoverFaceForShave()
DEPRECATED!
void SetBloodyHandsEx(eBloodyHandsTypes type)
void UnsetMixedSoundState(eMixedSoundStates state)
void IncreaseEffectAreaCount()
void SendLiftWeaponSync(bool state, float obstruct=0)
Client-side only.
void UpdateMaskBreathWidget(notnull MaskBase mask, bool is_start=false)
override void OnCommandMoveStart()
override void RequestSoundEvent(EPlayerSoundEventID id, bool from_server_and_client=false)
ref Hologram m_HologramLocal
int GetSingleAgentCount(int agent_id)
override bool PredictiveTakeEntityToInventory(FindInventoryLocationType flags, notnull EntityAI item)
ref array< string > m_DbgOptions
void QueueAddEffectWidget(array< int > effects)
void SetQuickFishing(bool enable)
override bool CanPickupHeavyItem(notnull EntityAI item)
PluginPresenceNotifier m_PresenceNotifier
void SetInColdArea(bool state)
void DecreaseContaminatedAreaCount()
void OnPlayerReceiveFlashbangHitEnd()
EmoteManager GetEmoteManager()
void RunFightBlendTimer()
void SetFlagTendencyRaise(bool state)
DEPRECATED.
void AddMedicalDrugsInUse(EMedicalDrugsType drugType)
float m_UnconsciousVignetteTarget
void CheckZeroSoundEvent()
ref EffectSound m_SoundFliesEffect
void HandleGlassesEffect()
void SendSoundEvent(EPlayerSoundEventID id)
float GetVisibilityCoef()
DayZPlayerCamera GetCurrentPlayerCamera()
EStatLevels GetStatLevelBlood()
override bool IsManagingArrows()
void OnPlayerIsNowInsideEffectAreaEndClient()
PlayerStat< float > m_StatTremor
EntityAI FindCargoByBaseType(string searched_item)
int m_FaceCoveredForShaveLayers
static set< int > GetFaceCoverageShaveValues()
returns a set of face covering values
vector m_DefaultHitPosition
override void OnCommandLadderFinish()
ref BleedingSourcesManagerServer m_BleedingManagerServer
override void JunctureDeleteItem(EntityAI item)
ScriptInvoker GetOnUnconsciousStart()
int GetBleedingSourceCount()
override void OnCommandMelee2Finish()
override void OnCommandSwimStart()
bool m_IsVehicleSeatDriver
void CloseInventoryMenu()
void ClearBloodyHandsPenaltyChancePerAgent(eAgents type)
int m_BleedingSourceCount
override void OnVehicleSeatDriverEnter()
bool CheckMeleeItemDamage(ItemBase item)
int FindQuickBarEntityIndex(EntityAI entity)
void SetToDelete(ParamsReadContext pCtx)
void OnUpdateEffectAreaServer(float timeSlice)
EMedicalDrugsType m_MedicalDrugsActive
override bool PredictiveTakeEntityToTargetAttachmentEx(notnull EntityAI target, notnull EntityAI item, int slot)
bool m_FlagRaisingTendency
float GetBloodyHandsPenaltyChancePerAgent(eAgents type)
bool IsStance(int stance, int stanceMask)
void SetModifiers(bool enable)
bool IsCurrentCameraAimedAtGround()
ref Timer m_UALastMessageTimer
override bool PredictiveTakeEntityToTargetCargo(notnull EntityAI target, notnull EntityAI item)
void OnVehicleSwitchSeat(int seatIndex)
ref InventoryActionHandler m_InventoryActionHandler
EStatLevels GetImmunityLevel()
ref TransferValues m_TrasferValues
EStatLevels GetStatLevelToxicity()
void ProcessHoldBreath(float dT)
void KillUndergroundHandler()
void UnsetInEffectAreaTypeFlag(EEffectAreaType flag)
PlayerStat< float > GetStatTremor()
bool m_HasBloodTypeVisible
bool Consume(PlayerConsumeData data)
void AddAction(typename actionName)
void SpawnBreathVaporEffect()
ref Param1< float > m_DeathDarkeningParam
void SetMapClosingSyncSet(bool state)
void OnPlayerIsNowInsideEffectAreaBeginClient()
bool TogglePlacingServer(int userDataType, ParamsReadContext ctx)
override bool PredictiveTakeToDst(notnull InventoryLocation src, notnull InventoryLocation dst)
ref VirtualHud m_VirtualHud
const int SHAKE_LEVEL_MAX
ref Timer m_AnalyticsTimer
void UpdateCorpseStateVisual()
bool IsRestrainPrelocked()
void AdjustShemag(EntityAI item, string slot_name)
override bool IsAlreadyInFallingCommand(int pCurrentCommandID)
ref TInputActionMap m_InputActionMapControled
override void OnCommandClimbFinish()
ref HiddenSelectionsData m_EmptyGloves
NotifiersManager GetNotifiersManager()
bool HasStaminaRemaining()
void SetLastFirePoint(vector last_fire_point)
eBloodyHandsTypes HasBloodyHandsEx()
float m_LastPostFrameTickTime
float GetStatBordersToxicity()
void DecreaseDiseaseCount()
void SetActions(out TInputActionMap InputActionMap)
float m_HeatBufferDynamicMax
void SetActionsRemoteTarget()
bool GetLastMapInfo(out float scale, out vector pos)
void ProcessADDModifier()
void SetRestrained(bool is_restrained)
void SetLocalProjectionPosition(vector local_position)
ref ScriptInvoker m_OnUnconsciousStop
ref SoftSkillsManager m_SoftSkillsManager
override string GetHitComponentForAI()
Melee helpers.
override vector GetCenter()
float GetWeightSpecialized(bool forceRecalc=false)
override void EEItemAttached(EntityAI item, string slot_name)
bool CheckAndExecuteStackSplitToInventoryLocation(InventoryLocation il, notnull EntityAI item)
BleedingSourcesManagerRemote GetBleedingManagerRemote()
PlayerStat< float > GetStatHeatComfort()
ref ScriptInvoker m_OnUnconsciousStart
invokers
bool TakeEntityToTargetInventoryImpl(InventoryMode mode, notnull EntityAI target, FindInventoryLocationType flags, notnull EntityAI item)
override void OnCommandSwimFinish()
override void OnCommandVehicleStart()
bool IsSyncedModifierActive(eModifierSyncIDs modifier)
Checks whether modifier (which has syncing enabled) is currently active, works on both Client and Ser...
FlashbangEffect GetFlashbangEffect()
override bool PhysicalPredictiveDropItem(EntityAI entity, bool heavy_item_only=true)
float m_UnconRefillModifier
ref ModifiersManager m_ModifiersManager
ref map< EEffectAreaType, int > m_EffectAreaOverlap
void CloseMap()
DEPRECATED; terminates map animation callback and re-enables controls.
ShockDealtEffect GetShockEffect()
void PlacingStartServer(ItemBase item)
ref array< EntityAI > m_ItemsToDelete
override void DepleteStamina(EStaminaModifiers modifier, float dT=-1)
Deprecated.
override void ProcessFeetDamageServer(int pUserInt)
override void InsertAgent(int agent, float count=1)
void SetQuickBarEntityShortcut(EntityAI entity, int index, bool force=false)
PlayerStat< float > m_StatToxicity
override void OnFreezeStateChangeClient()
bool m_PlayerDisconnectProcessed
bool GetDrowningWaterLevelCheck()
int m_AnimCommandStarting
bool m_IsRestrainPrelocked
int m_ForceInjuryAnimMask
ref EffectSound m_BrokenLegSound
void SetPlayerDisconnected(bool state)
PlayerStat< float > GetStatWater()
override void OnCommandVehicleFinish()
override bool PlaySoundEventType(ESoundEventType soundType, int soundEventID, int param=0)
PlayerStat< int > GetStatBloodType()
void SetLastUAMessage(string pMsg)
override void GetDebugActions(out TSelectableActionInfoArrayEx outputList)
override void OnVehicleSeatDriverLeft()
void SetShakesForced(int value)
bool CanManipulateInventory()
float GetLastFirePointRot()
void SpawnDamageDealtEffect2(Param param1=null, Param param2=null)
int m_DebugMonitorEnabled
EntityAI GetQuickBarEntity(int index)
StaminaHandler GetStaminaHandler()
override bool CanReceiveItemIntoCargo(EntityAI item)
ref SoundObjectBuilder m_SaySoundBuilder
static ref array< Man > m_ServerPlayers
ref NotifiersManager m_NotifiersManager
override bool PlaySoundEvent(EPlayerSoundEventID id, bool from_anim_system=false, bool is_from_server=false)
override void EOnPostFrame(IEntity other, int extra)
ref StanceIndicator m_StanceIndicator
float ConvertNonlethalDamage(float damage, DamageType damageType)
ItemBase GetItemInHands()
void OnUnconsciousStop(int pCurrentCommandID)
EntityAI SpawnEntityOnGroundRaycastDispersed(string object_name, float raycastDistance=DEFAULT_SPAWN_DISTANCE, float radius=UAItemsSpreadRadius.DEFAULT)
int GetLastFirePointIndex()
void SetCheckMeleeItem(ItemBase item=null)
static bool DEBUG_INVENTORY_ACCESS
void OnStoreSaveLifespan(ParamsWriteContext ctx)
void SetDecayEffects(int effect=-1)
PluginAdminLog m_AdminLog
bool CanRedirectToWeaponManager(notnull EntityAI item, out bool isActionPossible)
bool HasCoveredFaceForShave()
ref array< ref Param2< EntityAI, int > > m_aQuickBarLoad
void DealShock(float dmg)
void SetPulseType(EPulseType pulse_type)
void SetDrowning(bool enable)
void SetRestrainPrelocked(bool restrain_prelock)
PlayerStats GetPlayerStats()
void OnCameraChanged(DayZPlayerCameraBase new_camera)
override void OnCommandFallStart()
ref SoundParams m_SaySoundParams
PlayerSoundEventHandler GetPlayerSoundEventHandler()
EntityAI GetMagazineToReload(EntityAI weapon)
void QueueAddGlassesEffect(int id)
override bool IsInventoryVisible()
void CalculateVisibilityForAI()
void SetBloodyHandsPenalty()
RandomGeneratorSyncManager GetRandomGeneratorSyncManager()
void OnScheduledTick(float deltaTime)
void AddAction(typename actionName, out TInputActionMap InputActionMap)
void SetBloodyHandsPenaltyChancePerAgent(eAgents type, float amount)
increments the chances per agents
void SetLastFirePointIndex(int last_fire_point_index)
PluginRecipesManager m_ModuleRecipesManager
vector m_CraftingInitialPos
PlayerStat< int > GetStatWet()
override void HideClothing(ItemOptics optic, bool state)
state 'true' == hide
void RemoveMedicalDrugsInUse(EMedicalDrugsType drugType)
vector GetLocalProjectionPosition()
ItemBase CreateCopyOfItemInInventoryOrGround(ItemBase src)
ref array< int > m_ActiveNVTypes
Head_Default m_CharactersHead
override bool HeadingModel(float pDt, SDayZPlayerHeadingModel pModel)
EStatLevels GetStatLevelWater()
void SetPerformedActionID(int id)
void ToggleHeatBufferVisibility(int heatbufferStage)
PluginLifespan m_ModuleLifespan
void OnRestrainChangeClient()
PlayerStat< float > GetStatStamina()
override void AfterStoreLoad()
void OnQuickBarContinuousUseEnd(int slotClicked)
bool DropItem(ItemBase item)
void ProcessHandDamage(float delta_time, HumanMovementState pState)
float GetStatBordersHealth()
float GetTotalAgentCount()
override bool IsInventorySoftLocked()
void PlacingStartLocal(ItemBase item)
const string SOUND_BREAK_LEG
void ForceUpdateInjuredState()
update injured state immediately
void OnPlayerIsNowInsideEffectAreaBeginServer()
bool IsPlayerDisconnected()
ref WeaponManager m_WeaponManager
bool GetFlagTendencyRaise()
DEPRECATED.
void SetTemporaryResistanceToAgent(int agent, float time)
override void RequestSoundEventEx(EPlayerSoundEventID id, bool from_server_and_client=false, int param=0)
void OnQuickBarSingleUse(int slotClicked)
void MovingShock(float legHealth, float highShock, float midShock, float lowShock)
void BrokenLegWalkShock()
void OnBleedingSourceRemoved()
void OnInventoryMenuOpen()
ref StaminaHandler m_StaminaHandler
override void OnCommandMelee2Start()
ref DamageDealtEffect m_DamageDealtEffect
override void ClearInventory()
PlayerStat< float > m_StatWater
override void DepleteStaminaEx(EStaminaModifiers modifier, float dT=-1, float coef=1.0)
bool m_ContaminatedAreaEffectEnabled
override void RPC(int rpc_type, array< ref Param > params, bool guaranteed, PlayerIdentity recipient=NULL)
void ResetConstructionActionData()
ref ConstructionActionData m_ConstructionActionData
MapNavigationBehaviour GetMapNavigationBehaviour()
ItemBase CreateCopyOfItemInInventory(ItemBase src)
RandomGeneratorSyncManager m_RGSManager
override bool IsIgnoredByConstruction()
int m_HasBloodyHandsVisible
void DecreaseAntibioticsCount()
static Particle m_ContaminatedAroundPlayer
ref Timer m_DeathCheckTimer
ref Param1< float > m_UnconParam
override void OnSyncJuncture(int pJunctureID, ParamsReadContext pCtx)
static ref array< Object > SPREAD_AGENTS_OBJECTS
override void OnRPC(PlayerIdentity sender, int rpc_type, ParamsReadContext ctx)
array< int > GetNVTypesArray()
string m_SaySoundLastSetName
ConstructionActionData GetConstructionActionData()
float m_CameraSwayModifier
EntityAI SpawnEntityOnGroundOnCursorDir(string object_name, float distance)
override void TakeEntityToHandsImpl(InventoryMode mode, EntityAI item)
static ref TStringArray m_QBarItems
override bool OnLand(int pCurrentCommandID, FallDamageData fallDamageData)
ref HeatComfortAnimHandler m_HCAnimHandler
override void RemoveAllAgents()
int GetLastShavedSeconds()
void SpreadAgentsEx(float distance=3, float chance=0.25)
chance between [0..1] , distance in meters
void SetLiftWeapon(int pJunctureID, ParamsReadContext ctx)
bool HandleRemoteItemManipulation(int userDataType, ParamsReadContext ctx)
void DamageAllLegs(float inputDmg)
void RequestResetADSSync()
void RemoveActiveNV(int type)
bool GetMapClosingSyncSent()
void SetInEffectAreaTypeFlag(EEffectAreaType flag)
void BrokenLegForceProne(bool forceOverride=false)
void UpdateQuickBarExtraSlots()
override bool CanBeTargetedByAI(EntityAI ai)
override bool CanPlaceItem(EntityAI item)
void DropAllItems()
Drops all clothes/wearables this character is carrying on themselves.
ref UndergroundBunkerHandlerClient m_UndergroundBunkerHandler
ScriptInvoker GetOnUnconsciousStop()
override bool PlaySoundEventEx(EPlayerSoundEventID id, bool from_anim_system=false, bool is_from_server=false, int param=0)
void SpawnFlashbangEffect(PlayerBase player, bool visual)
PluginConfigEmotesProfile m_ConfigEmotesProfile
void HideHairSelections(ItemBase item, bool state)
ref FlashbangEffect m_FlashbangEffect
override void CheckAnimationOverrides()
bool OnStoreLoadLifespan(ParamsReadContext ctx, int version)
void SetVisibilityCoef(float pVisibility)
EStatLevels GetStatLevelHealth()
float GetStatBordersBlood()
bool TakeEntityAsAttachmentImpl(InventoryMode mode, notnull EntityAI item)
int GetBloodyHandsPenaltyAgents()
override void OnParticleEvent(string pEventType, string pUserString, int pUserInt)
void OnContaminatedAreaExitServer()
void PlacingCompleteLocal()
EUndergroundPresence m_UndergroundPresence
override bool IsSelfAdjustingTemperature()
override void SetInventorySoftLock(bool status)
'soft lock' meaning inventory screen cannot be displayed, but mechanically, inventory operations are ...
bool TakeEntityToTargetCargoImpl(InventoryMode mode, notnull EntityAI target, notnull EntityAI item)
AbstractWave SaySoundSet(string name)
void PlacingCompleteServer()
override bool IsInFBEmoteState()
void SetRestrainStarted(bool restrain_started)
QuickBarBase m_QuickBarBase
void ProcessDrowning(float dT)
override void OnRollStart(bool isToTheRight)
eBrokenLegs GetBrokenLegs()
void ShockRefill(float pDt)
functionality moved to ShockMdfr::OnTick
void TryHideItemInHands(bool hide, bool force=false)
tries to hide item in player's hands, some exceptions for various movement states
ref Param1< string > m_UAParamMessage
bool TakeEntityToCargoImpl(InventoryMode mode, notnull EntityAI item)
override void CheckLiftWeapon()
void SetQuickRestrain(bool enable)
void AddPlayerLoad(float addedload)
void RequestHandAnimationStateRefresh()
ActionManagerBase m_ActionManager
override void OnJumpEnd(int pLandType=0)
override void OnCommandFallFinish()
ref ShockHandler m_ShockHandler
int m_LocalRefreshAnimStateIdx
bool IsMapCallbackEndInput()
float GetFeetDamageMoveModifier()
bool HasBloodTypeVisible()
vector m_LocalProjectionPosition
void OnHoldBreathExhausted()
ref TInputActionMap m_InputActionMapAsTarget
override bool PredictiveForceSwapEntities(notnull EntityAI item1, notnull EntityAI item2, notnull InventoryLocation item2_dst)
PlayerStat< float > GetStatHeatBuffer()
void SetBleedingBits(int bits)
void ContaminatedParticleAdjustment()
void LockHandsUntilItemHeld()
void ResetActionEndInput()
void SetLiquidTendencyDrain(bool state)
void UpdateMovementInertia()
Update movement inertia based on stamina available.
UndergroundBunkerHandlerClient GetUndergroundBunkerHandler()
bool m_IsHeadingRestricted
override bool CanReceiveItemIntoHands(EntityAI item_to_hands)
override bool CanConsumeStamina(EStaminaConsumers consumer)
ref InjuryAnimationHandler m_InjuryHandler
void UpdatePlayerMeasures()
void OnContaminatedAreaEnterServer()
void ToggleHeatBufferVisibility(bool show)
void SetLastShavedSeconds(int last_shaved_seconds)
override void AddItemToDelete(EntityAI item)
override void EEHealthLevelChanged(int oldLevel, int newLevel, string zone)
override bool CanClimb(int climbType, SHumanCommandClimbResult climbRes)
ref PlayerSoundManagerClient m_PlayerSoundManagerClient
ref HeadingRestrictData m_HeadingRestrictData
override void EEHitByRemote(int damageType, EntityAI source, int component, string dmgZone, string ammo, vector modelPos)
ref EmoteManager m_EmoteManager
void SetContaminatedEffect(bool enable, int ppeIdx=-1, int aroundId=ParticleList.CONTAMINATED_AREA_GAS_AROUND, int tinyId=ParticleList.CONTAMINATED_AREA_GAS_TINY, bool partDynaUpdate=false, int newBirthRate=0)
void OnRestrainStartedChangeClient()
override ArrowManagerBase GetArrowManager()
ref map< eAgents, float > m_BloodyHandsPenaltyChancePerAgent
const string CONTAMINATED_AREA_AMBIENT
void GiveShock(float shock)
override void SetProcessUIWarning(bool state)
bool TakeToDstImpl(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
void SetBrokenLegs(int stateId)
override void SimulateDeath(bool state)
int GetPerformedActionID()
int GetNoisePresenceInAI()
Return actual noise presence of player.
void CheckHairClippingOnCharacterLoad()
helper method for re-checking hairhiding on character load
void SetBloodyHandsBase(int type)
void SetContaminatedEffectEx(bool enable, int ppeIdx=-1, int aroundId=ParticleList.CONTAMINATED_AREA_GAS_AROUND, int tinyId=ParticleList.CONTAMINATED_AREA_GAS_TINY, string soundset="", bool partDynaUpdate=false, int newBirthRate=0)
override void EEDelete(EntityAI parent)
bool IsFacingTarget(Object target)
override void SetDeathDarknessLevel(float duration, float tick_time)
void StaminaHUDNotifier(bool show)
vector GetLastFirePoint()
static ref array< string > m_BleedingSourcesUp
Hologram GetHologramServer()
override void AddArrow(Object arrow, int componentIndex, vector closeBonePosWS, vector closeBoneRotWS)
void RemoveAction(typename actionName)
override bool CanReleaseCargo(EntityAI cargo)
EStatLevels GetStatLevel(float stat_value, float critical, float low, float normal, float high)
void MessageStatus(string text)
void PlayAttachmentDropSound()
PlayerStat< float > GetStatDiet()
void RemoveActiveInputRestriction(int restrictor)
array< vector > GetActiveRefresherLocations()
void AddDummyPlayerToScheduler(Man player)
void SetRespawnModeClient(int mode)
for client-side usage
void SetPlayerRespawning(bool state)
void OnPlayerRespawned(Man player)
void SyncRespawnModeInfo(PlayerIdentity identity)
server-side
void AddActiveInputExcludes(array< string > excludes)
GameplayEffectWidgets_base GetEffectWidgets()
void EnableAllInputs(bool bForceSupress=false)
void RemoveActiveInputExcludes(array< string > excludes, bool bForceSupress=false)
deprecated
static PPEManager GetPPEManager()
Returns the manager instance singleton.
Static component of PPE manager, used to hold the instance.
void Start(Param par=null)
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Legacy way of using particles in the game.
static const int BREATH_VAPOUR_MEDIUM
static const int BREATH_VAPOUR_LIGHT
static const int DROWNING_BUBBLES
static const int CONTAMINATED_AREA_GAS_AROUND
static const int CONTAMINATED_AREA_GAS_TINY
static const int BREATH_VAPOUR_HEAVY
Keeps track of agents and their simulation.
override void OnGameplayDataHandlerSync()
static const float HEALTH_REGEN_MAX
static const float SL_HEALTH_CRITICAL
static const int LAST_UA_MSG_LIFETIME
static const float BROKEN_LEGS_HIGH_HEALTH_THRESHOLD
static const float SL_WATER_HIGH
static const float SHOES_MOVEMENT_DAMAGE_PER_STEP
static const float IMMUNITY_THRESHOLD_LEVEL_CRITICAL
static const int CORPSE_STATE_MEDIUM
static const float THRESHOLD_HEAT_COMFORT_MINUS_WARNING
static const float SL_ENERGY_HIGH
static const float BROKEN_LEGS_SHOCK_SWIM
static const float BROKEN_LEGS_INITIAL_SHOCK
static const float FULL_SPRINT_DELAY_FROM_CROUCH
[seconds]
static const float SL_ENERGY_LOW
static const float THRESHOLD_HEAT_COMFORT_MINUS_CRITICAL
static const float SL_BLOOD_LOW
static const float BROKEN_LEGS_ROLL_SHOCK
static const int CORPSE_STATE_DECAYED
static const float BROKEN_LEGS_LOW_SHOCK_WALK
static const float SL_WATER_NORMAL
static const float SL_BLOOD_CRITICAL
static const float FULL_SPRINT_DELAY_FROM_PRONE
[seconds]
static const float SL_ENERGY_MAX
static const float SL_HEALTH_LOW
static const float GLOVES_DAMAGE_SLIDING_LADDER_PER_SEC
static const float UNCONSCIOUS_IN_WATER_TIME_LIMIT_TO_DEATH
static const float SL_HEALTH_NORMAL
static const float BROKEN_LEGS_STAND_SHOCK
static const float SL_WATER_LOW
static const float BROKEN_LEGS_MID_SHOCK_WALK
static const float BROKEN_CROUCH_MODIFIER
static const float SL_ENERGY_CRITICAL
static const float HEALTH_REGEN_MIN
static const int CHECK_EVERY_N_STEP
static const int DROWNING_BUBBLE_FREQUENCY_MIN
static const float IMMUNITY_THRESHOLD_LEVEL_LOW
static const float CHANCE_TO_BLEED_SLIDING_LADDER_PER_SEC
static const float IMMUNITY_THRESHOLD_LEVEL_HIGH
static const float DROWNING_DEFAULT_THRESHOLD
static const int DROWNING_BUBBLE_FREQUENCY_MAX
static const float BAREFOOT_MOVEMENT_BLEED_MODIFIER
static const float SL_BLOOD_NORMAL
static const float MELEE2_MOVEMENT_BLEND_DELAY
static const float SL_BLOOD_HIGH
static const float DROWNING_UNCONSCIOUS_THRESHOLD
static const int BLOOD_THRESHOLD_FATAL
static const float SL_ENERGY_NORMAL
static const float SL_WATER_CRITICAL
static const float IMMUNITY_THRESHOLD_LEVEL_NORMAL
static const float BROKEN_LEGS_LOW_HEALTH_THRESHOLD
static const float DROWNING_SWIMMING_THRESHOLD
static const float CAMERA_THRESHOLD_PITCH
static const float SL_WATER_MAX
static const float SL_HEALTH_HIGH
static const float BROKEN_LEGS_HIGH_SHOCK_WALK
proto string GetName()
nick (short) name of player
proto string GetId()
unique id of player (hashed steamID, database Xbox id...) can be used in database or logs
The class that will be instanced (moddable)
vector GetRandomSafePos3D(vector targetPos)
void OnRPC(PlayerBase player, int rpc_type, ParamsReadContext ctx)
void OnVariableSynchronized()
static int PlayInWorld(notnull Effect eff, vector pos)
Play an Effect.
static int PlayOnObject(notnull Effect eff, Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_relative_to_world=false)
Play an Effect.
static EffectSound PlaySoundOnObject(string sound_set, Object parent_object, float play_fade_in=0, float stop_fade_out=0, bool loop=false)
Create and play an EffectSound.
static bool IsEffectExist(int effect_id)
Checks whether an Effect ID is registered in SEffectManager.
static void DestroyEffect(Effect effect)
Unregisters, stops and frees the Effect.
Manager class for managing Effect (EffectParticle, EffectSound)
proto void Remove(func fn)
remove specific call from queue
proto void Call(func fn, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
proto void CallLater(func fn, int delay=0, bool repeat=false, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
adds call into the queue with given parameters and arguments (arguments are held in memory until the ...
ScriptInvoker Class provide list of callbacks usage:
void SetSelectionState(bool state)
ref array< int > GetTranslatedSelections()
proto bool Write(void value_out)
proto bool Read(void value_in)
string m_CharacterId
character ID
string m_Reason
reason of disconnect (quit, kick, ban, sign-out...)
vector m_PositionStart
player world position at the start of interval
int m_TimeInterval
amount of real time in seconds covered by this event
int m_DaytimeHour
current daytime in gameplay (hour in 24h format)
vector m_PositionEnd
player world position at the end of interval
string m_CharacterId
character ID
float m_DistanceOnFoot
traveled distance on foot (meters) during interval
static float GetParamFloat(string surface_name, string param_name)
static void SendEntityKilled(EntityAI victim, EntityAI killer, EntityAI source, bool is_headshot)
proto native float GetDamage(string zoneName, string healthType)
Native class for boats - handles physics simulation.
proto native UIScriptedMenu GetMenu()
Returns most-top open menu.
proto native void ScreenFadeOut(float duration)
UIScriptedMenu FindMenu(int id)
Returns menu with specific ID if it is open (see MenuID)
bool CloseAll()
Close all opened menus.
proto native void CloseDialog()
proto native void ScreenFadeIn(float duration, string text, int backgroundColor, int textColor)
static const float HEAT_DAMAGE_TICK_TIME
static void ApplyEffects(PlayerBase player)
bool CanLoadBullet(Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
bool CanAttachMagazine(Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
bool CanSwapMagazine(Weapon_Base wpn, Magazine mag, bool reservationCheck=true)
void SetCalcDetails(string details)
float GetLiquidTypeEnviroTemperature(int liquidType)
void SetGlobalLighting(int lightingID)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto string ToString(bool simple=true)
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
proto native float LengthSq()
Returns squared length (magnitudeSqr)
proto float Normalize()
Normalizes vector. Returns length.
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
const int SIMPLE_SELECTION_SHOULDER_RIFLE
const int SIMPLE_SELECTION_SHOULDER_MELEE
override string GetDebugName()
void SDayZPlayerHeadingModel()
cannot be created from script
DayZPlayerInstanceType
defined in C++
proto native DayZPlayerType GetDayZPlayerType()
returns appropriate DayZPlayerType
proto native DayZPlayerCamera GetCurrentCamera()
-------------— camera additional functions ----------------------—
proto native DayZPlayerInstanceType GetInstanceType()
DayZPlayerConstants
defined in C++
proto native void SendSyncJuncture(int pJunctureID, ParamsWriteContext ctx)
-------------— sync stuff ----------------------—
class SDayZPlayerAimingModel SIMPLE_SELECTION_MELEE_RIFLE
float GetCurrentWaterLevel()
const int SIMPLE_SELECTION_MELEE_MELEE
proto native bool IsPlayerInStance(int pStanceMask)
-------------— camera additiona functions ----------------------—
string GetDefaultHitPositionComponent()
class DayZPlayerCameraResult DayZPlayerCamera(DayZPlayer pPlayer, HumanInputController pInput)
proto native float GetMax()
Serializer ParamsReadContext
InventoryTraversalType
tree traversal type, for more see http://en.wikipedia.org/wiki/Tree_traversal
proto native CGame GetGame()
Serializer ParamsWriteContext
const int AGT_UACTION_CONSUME
const int AGT_AIRBOURNE_BIOLOGICAL
void Error(string err)
Messagebox with error message.
proto void Print(void var)
Prints content of variable to console/log.
proto native void SetPosition(vector position)
Set the world position of the Effect.
const int INVENTORY_ENTITY_DROP_OVERLAP_DEPTH
const float DZPLAYER_CAMERA_FOV_IRONSIGHTS
const float REFRESHER_RADIUS
const int DEFAULT_CHARACTER_MENU_ID
const float NL_DAMAGE_FIREARM_CONVERSION_PLAYERS
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
array< string > TStringArray
class array< Class T > PrintString
EntityEvent
Entity events for event-mask, or throwing event from code.
static const float ITEM_TEMPERATURE_NEUTRAL_ZONE_MIDDLE
static proto void YawPitchRollMatrix(vector ang, out vector mat[3])
Creates rotation matrix from angles.
static proto void MatrixInvMultiply4(vector mat0[4], vector mat1[4], out vector res[4])
Invert-transforms matrix.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
static proto void MatrixOrthogonalize4(vector mat[4])
Orthogonalizes matrix.
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float Lerp(float a, float b, float time)
Linearly interpolates between 'a' and 'b' given 'time'.
static proto int AbsInt(int i)
Returns absolute value.
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
static proto float Clamp(float value, float min, float max)
Clamps 'value' to 'min' if it is lower than 'min', or to 'max' if it is higher than 'max'.
static proto float Sin(float angle)
Returns sinus of angle in radians.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...
static const float RAD2DEG
static proto float AbsFloat(float f)
Returns absolute value.
const int SAT_DEBUG_ACTION
SetSoundControllerOverride(string controllerName, float value, SoundControllerAction action)
proto native AbstractWave Play3D(SoundObject soundObject, SoundObjectBuilder soundBuilder)
proto native void SetSoundVolume(float vol, float time)
class AbstractSoundScene SoundObjectBuilder(SoundParams soundParams)
class JsonUndergroundAreaTriggerData GetPosition
class SoundObject SoundParams(string name)
proto native int Length()
Returns length of string.
proto void GetHourMinuteSecond(out int hour, out int minute, out int second)
Returns system time.
proto native bool IsCLIParam(string param)
Returns if command line argument is present.
proto native bool IsModifierActive()
is modifier active
proto native int GetRunningAction()
returns -1 when no action is running or RELOAD,MECHANISM, ....
proto native bool IsInWater()
proto native float GetWeaponObstruction()
return obstruction value
class HumanCommandMelee2 HumanCommandFall()
class HumanCommandWeapons HumanCommandAdditives()
class HumanItemBehaviorCfg OnItemInHandsChanged(bool pInstant=false)
signalization from script to engine that item in hands changed