DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс PluginBase
+ Граф наследования:PluginBase:

Защищенные члены

void PluginAdminLog ()
 
void ~PluginAdminLog ()
 
void LogPrint (string message)
 
string GetPlayerPrefix (PlayerBase player, PlayerIdentity identity)
 
string GetHitMessage (TotalDamageResult damageResult, int component, string zone, string ammo)
 
void PlayerKilled (PlayerBase player, Object source)
 
void PlayerHitBy (TotalDamageResult damageResult, int damageType, PlayerBase player, EntityAI source, int component, string dmgZone, string ammo)
 
void UnconStart (PlayerBase player)
 
void UnconStop (PlayerBase player)
 
void OnPlacementComplete (Man player, ItemBase item)
 
void OnContinouousAction (ActionData action_data)
 
void Suicide (PlayerBase player)
 
void BleedingOut (PlayerBase player)
 
void TotemFlagChange (bool top, notnull PlayerBase player, notnull EntityAI totem)
 
void PlayerList ()
 
void PlayerTeleportedLog (notnull PlayerBase player, vector startPos, vector targetPos, string reason)
 
void DirectAdminLogPrint (string str)
 
override void OnInit ()
 
void ToggleCameraTools ()
 
void CursorHide ()
 
void CursorShow ()
 
void Save ()
 
void PlayPause ()
 
void AddKeyframe ()
 
void DeleteKeyframe ()
 
void PossesInfected ()
 
void CommandHandler (DayZInfected infected)
 
void Tick ()
 
void InitAttacks ()
 
void TeleportAtCursor ()
 Set Player position at his cursor position in the world.
 
void Teleport (PlayerBase player, vector position)
 Teleport player at position.
 
void SetDirection (PlayerBase player, vector direction)
 Set player direction.
 
void ToggleFreeCameraBackPos ()
 Enable / Disable Free camera (Fly mod)
 
void ToggleFreeCamera ()
 Enable / Disable Free camera (Fly mod) - disable of camera will teleport player at current free camera position.
 
bool IsEnabledFreeCamera ()
 
void PluginDeveloper ()
 
override void OnInit ()
 
void OnRPC (PlayerBase player, int rpc_type, ParamsReadContext ctx)
 
void PrintLogClient (string msg_log)
 
void SendServerLogToClient (string msg)
 
void OnRPCSyncSceneObject (ParamsReadContext ctx)
 
void OnRPCPluginDayzCreatureDebug (PlayerBase player, int rpc_type, ParamsReadContext ctx)
 
void HandleSetTime (PlayerBase player, ParamsReadContext ctx)
 
void HandlePresetSpawn (PlayerBase player, string presetName, EntityAI target)
 
void OnRPCServerLogRecieved (ParamsReadContext ctx)
 
void OnRPCClearInventory (PlayerBase player)
 
void OnRPCSpawnEntityOnCursorDir (PlayerBase player, ParamsReadContext ctx)
 
void OnRPCSpawnEntityOnGround (PlayerBase player, ParamsReadContext ctx)
 
void OnRPCSpawnEntityOnGroundPatternGrid (PlayerBase player, ParamsReadContext ctx)
 
void OnRPCSpawnEntity (PlayerBase player, ParamsReadContext ctx)
 
void OnSetFreeCameraEvent (PlayerBase player, FreeDebugCamera camera)
 
void OnSpawnErrorReport (string name)
 
void SetupSpawnedEntity (PlayerBase player, EntityAI entity, float health, float quantity=-1, bool special=false, string presetName="")
 
void SpawnEntityOnGroundPatternGrid (PlayerBase player, string item_name, int count, float health, float quantity, int rows, int columns, float gapRow=1, float gapColumn=1, bool special=false, bool withPhysics=false)
 
void SpawnItemOnCrosshair (notnull PlayerBase player, string itemName, float health, float quantity, float maxDist=100, bool allowFreeflight=false, bool special=false, bool withPhysics=false)
 
EntityAI SpawnEntityOnGroundPos (PlayerBase player, string item_name, float health, float quantity, vector pos, bool special=false, bool withPhysics=false)
 spawns entity on exact position
 
EntityAI SpawnEntityOnCursorDir (PlayerBase player, string item_name, float quantity, float distance, float health=-1, bool special=false, string presetName="", bool withPhysics=false)
 spawns entity in direction of cursor at specified distance
 
EntityAI SpawnEntityInInventory (notnull EntityAI target, string className, float health, float quantity, bool special=false, string presetName="", FindInventoryLocationType locationType=FindInventoryLocationType.ANY)
 tries to spawn item somewhere in inventory
 
EntityAI SpawnEntityInPlayerInventory (PlayerBase player, string item_name, float health, float quantity, bool special=false, string presetName="", FindInventoryLocationType locationType=FindInventoryLocationType.ANY)
 
EntityAI SpawnEntityAsAttachment (PlayerBase player, EntityAI parent, string att_name, float health, float quantity)
 tries to spawn item as attachment
 
EntityAI SpawnFromClipboard ()
 
void ClearInventory (EntityAI entity)
 
void ToggleHelpScreen ()
 
void ToggleScriptConsole ()
 
void ToggleMissionLoader ()
 
void Init (PlayerBase player)
 
void ShowDebug (bool show)
 
EntityAI GetTargetEntity ()
 utilizes camera position from the CGame
 
void PluginUniversalTemperatureSourceClient ()
 
override void OnInit ()
 
override void OnUpdate (float delta_time)
 
void InitWidgets ()
 
void DrawDebugs ()
 
void ProcessUniversalTemperatureSources ()
 
float CalcTemperatureFromTemperatureSource (notnull UTemperatureSourceDebug utsd)
 
void EnableWidgets (bool enable)
 
void UpdateStatWidgets ()
 
void UpdateStatWidget (int rowIndex, UTemperatureSourceDebug utsd)
 
void RequestUniversalTemperatureSources (PlayerBase player, int enable)
 
void PrintedDebug ()
 
void OnRPC (ParamsReadContext ctx)
 
void PluginUniversalTemperatureSourceServer ()
 
override void OnUpdate (float delta_time)
 
void GatherTemperatureSources (PlayerBase player)
 
void SendDebug ()
 
void OnRequestReceived (PlayerBase player, bool enable)
 
void OnRPC (ParamsReadContext ctx, PlayerBase player)
 
void PluginDeveloperSync ()
 
override void OnInit ()
 
void EnableUpdate (bool enable, int type, PlayerBase player)
 
void Update ()
 
void SetSystemInBitmask (PlayerBase player, int system_bit, bool state)
 
bool IsSetSystemInBitmask (PlayerBase player, int system_bit)
 
void RegisterPlayer (PlayerBase player)
 
bool IsPlayerRegistered (PlayerBase player)
 
void OnRPC (PlayerBase player, int rpc_type, ParamsReadContext ctx)
 
bool GetRPCUpdateState (ParamsReadContext ctx)
 
int GetRPCModifierID (ParamsReadContext ctx)
 
void GetRPCModifierLock (ParamsReadContext ctx, out int id, out bool lock)
 
void SendRPCStats (PlayerBase player)
 
void OnRPCStats (ParamsReadContext ctx)
 
void UpdateStatsLocal ()
 
void OnRPCStatSet (ParamsReadContext ctx, PlayerBase player)
 
ref array< ref SyncedValueGetHealthZonesSynched ()
 
bool GetIsTargetChanged ()
 
void SetTargetChanged (bool state)
 
void SendRPCHealth (PlayerBase player)
 
void OnRPCHealth (ParamsReadContext ctx, PlayerBase player)
 
void SetupZoneValues (inout array< ref Param > rpc_params, DamageZoneMap dmgZones, EntityAI target, string healthType, int typeID)
 
void OnRPCHealthSet (ParamsReadContext ctx, PlayerBase player)
 
void SendRPCLevels (PlayerBase player)
 
void OnRPCLevels (ParamsReadContext ctx)
 
void SendRPCMods (PlayerBase player)
 
void SendRPCModsDetail (PlayerBase player)
 
void OnRPCMods (ParamsReadContext ctx)
 
void OnRPCModsDetailed (ParamsReadContext ctx)
 
void RequestDetailedInfo (int id, notnull PlayerBase player)
 
void ActivateModifier (int id, PlayerBase player=NULL)
 
void DeactivateModifier (int id, PlayerBase player=NULL)
 
void LockModifier (int id, bool lock, PlayerBase player=NULL)
 
bool IsModifierLocked (int id, PlayerBase player=NULL)
 
void SendRPCTemp (PlayerBase player)
 
void OnRPCTemp (ParamsReadContext ctx, PlayerBase player)
 
void SendRPCAgents (PlayerBase player)
 
void OnRPCAgents (ParamsReadContext ctx)
 
void SendRPCStomach (PlayerBase player)
 
void OnRPCStomach (ParamsReadContext ctx)
 
void CaptureFocus ()
 
void ReleaseFocus ()
 
void ToggleFocus ()
 
void RegisterKeyBind (int ui_id, int key_code1, int key_code2, string plugin_name, string fnc_name, string info_shortcut, string info_description)
 
void RegisterMouseBind (int ui_id, int mouse_button, int mouse_event, string plugin_name, string fnc_name, string info_shortcut, string info_description)
 
bool IsCurrentUIPageValid (int ui_page_request)
 
bool CheckMask (int source_mask, int target_mask)
 
void OnMouse (int event_id, int button)
 
MouseButtonInfo GetMouseButtonInfo (int button)
 
bool IsKeyPressed (int key)
 
void EditorUpdate ()
 
float GetAgentTransferabilityIn (int agent_id)
 
bool GrowDuringMedicalDrugsAttack (int agentId, EMedicalDrugsType drugType, PlayerBase player)
 
float GetAgentDieOffSpeedEx (int agent_id, PlayerBase player)
 
EStatLevels GetAgentPotencyEx (int agent_id, PlayerBase player)
 
float GetAgentInvasibilityEx (int agent_id, PlayerBase player)
 
float GetAgentAntiboticsResistance (int agent_id)
 
float GetAgentAntiboticsResistanceEx (int agent_id, PlayerBase player)
 
float GetAgentTransferabilityOut (int agent_id)
 
float GetAgentTransferabilityAirOut (int agent_id)
 
float GetAgentInvasibility (int agent_id)
 
float GetAgentDigestibility (int agent_id)
 
float GetDieOffSpeed (int agent_id)
 
EStatLevels GetPotency (int agent_id)
 
float TransmitAgentsEx (EntityAI source, EntityAI target, int pathway, int dose_size=1000, int agents=0)
 
void TransmitAgents (EntityAI source, EntityAI target, int pathway, int dose_size=1000)
 
void InjectAgentsWithoutPlayer (EntityAI target, int agents)
 
void InjectAgentsWithPlayer (EntityAI target, int agents, float protection, int dose_size, int inject_type)
 will add agents to a given target, using chance of transmission and full dose size if chance succeeds
 
void InjectAgentsWithPlayerCount (EntityAI target, int agents, float protection, int dose_size, int inject_type)
 will add agents to a given target, with no probability, but the dose size is modified by m_TransferabilityOut of the agent
 
float InjectAgentWithPlayerDose (EntityAI target, int agent, float protection, float dose_size, int inject_type)
 will add agent to a given target
 
float GetProtectionLevel (int type, int slot, Man player)
 
float CalculateAgentsToTransmit (int agent_id, float protection, int dose_size, int inject_type)
 
bool DetermineChanceToTransmit (int agent_id, float protection, int inject_type)
 
bool GrowDuringAntibioticsAttack (int agent_id, PlayerBase player)
 DEPRECATED.
 

Защищенные статические члены

static int GetPlayerListTimer ()
 
static PluginCameraTools GetInstance ()
 
static PluginDeveloper GetInstance ()
 
static int GetAgentMaxCount (int agent_id)
 
static void BuildAgentArray (int agents, array< int > agents_out)
 
static float GetProtectionLevelEx (int type, int slot, Man player, bool consider_filter=true, int system=0)
 

Защищенные данные

int m_HitFilter
 
int m_PlacementFilter
 
int m_ActionsFilter
 
int m_PlayerListFilter
 
ref Timer m_Timer
 
autoptr array< Man > m_PlayerArray
 
const int TIMER_PLAYERLIST = GetPlayerListTimer()
 
bool m_IsWinHolding
 
int m_FeaturesMask
 
UIScriptedMenu m_ScriptConsole
 
PlayerBase m_pPlayer
 
float m_UTSAverageTemperature
 
ref array< ref UTemperatureSourceDebugm_UTemperatureSourceDebugs
 
ref Widget m_RootWidget [MAX_SIMULTANEOUS_UTS]
 
TextListboxWidget m_StatListWidgets [MAX_SIMULTANEOUS_UTS]
 
TextWidget m_HeaderWidget [MAX_SIMULTANEOUS_UTS]
 
ref array< ref SyncedValuem_TargetHealthSynced
 
bool m_IsTargetChanged
 
ref map< PlayerBase, boolm_HealthObserverMode
 
ref map< PlayerBase, EntityAIm_HealthObserverEntity
 
bool m_StatsUpdateStatus
 
bool m_LevelsUpdateStatus
 
bool m_ModsUpdateStatus
 
bool m_AgentsUpdateStatus
 
bool m_StomachUpdateStatus
 
const int CLICK_TIME = 200
 
const int DOUBLE_CLICK_TIME = 300
 
const int HOLD_CLICK_TIME_MIN = 300
 
ref array< ref KeyBindingm_KeyBindings
 
ref array< ref MouseButtonInfom_MouseButtons
 
ref array< ref MouseBindingm_MouseBindings
 
PluginConfigScene m_ModuleConfigScene
 
PluginConfigDebugProfile m_ModuleConfigDebugProfile
 
float m_TimeLastClickRelease
 
float m_TimeLastClickPress
 
int m_PressedMouseID
 
bool m_IsDragging
 
ref array< Shapem_ShapesSceneObjects
 
ref map< int, KeyBindingm_KeyBindings
 
ref SceneData m_SceneData
 
SceneObject m_SelectedObject
 
string m_ClassBrowserSelected
 
bool m_IsOpen
 

Статические защищенные данные

static PluginCameraTools m_Instance
 
static bool m_IsOpen
 

Закрытые члены

void PluginBase ()
 
void ~PluginBase ()
 
void OnInit ()
 
void OnUpdate (float delta_time)
 
void OnDestroy ()
 
void Log (string msg, string label)
 
string GetModuleName ()
 
 GetModuleType ()
 
void PluginConfigViewer ()
 
string MakeTabs (int count, bool inheritance=false)
 
string GetOnlyChildPath (string config_class_path, string class_path)
 
string GetBaseClassPath (string config_class_path, string class_path, string config_class)
 
string GetBaseClassPathCombined (string child_path, string base_class)
 
string GetBaseClassPathRecursive (string config_class_path, string class_path, string config_class)
 
bool ContainsFirstClass (string config_class_path, string class_path)
 
TStringArray GetConfigRecursive (string path, string name, string config_class_path, string config_class, local array< string > overridden, int depth=0, local bool check_base_class_of_class=false)
 
TStringArray GetConfig (string class_path, string filter_char)
 
TStringArray GetConfigVariables (string class_path)
 
TStringArray GetConfigHierarchy (string class_path)
 
string GetBaseClasses (string path, string item)
 
void PluginDayZInfectedDebug ()
 
void ~PluginDayZInfectedDebug ()
 
void ToggleDebugWindowEvent ()
 
void ToggleDebugWindowSetMode (int pMode)
 
void CaptureFocus ()
 
void ReleaseFocus ()
 
void Show ()
 
void Hide ()
 
void ShowWidgets (bool show)
 
override void OnUpdate (float delta_time)
 
void CreateModuleWidgets ()
 
void DestroyModuleWidgets ()
 
void ShowCard (int pCard)
 
bool OnClick (Widget w, int x, int y, int button)
 buttons clicks
 
bool OnChange (Widget w, int x, int y, bool finished)
 
void ResetValues ()
 
void SpawnNewInfectedEntity ()
 
void CleanupDebugShapes (array< Shape > shapesArr)
 
void ScriptHistoryNext ()
 
void ScriptHistoryBack ()
 
bool IsIngame ()
 
bool IsInConsole ()
 
int QuickSortPartition (TStringArray arr, int left, int right)
 
void QuickSort (TStringArray arr, int left, int right)
 
void SortStringArray (TStringArray arr)
 
void ResetGUI ()
 
void SetDeveloperItemClient ()
 
void CheckInit ()
 
void Init ()
 
override void OnUpdate (float delta_time)
 
override void OnDestroy ()
 
vector CalculatePos ()
 
void CheckInit ()
 
void Init ()
 
override void OnUpdate (float delta_time)
 
void PluginDrawCheckerboard ()
 
void ~PluginDrawCheckerboard ()
 
void CreateWidgetOverlay ()
 
bool IsActive ()
 
bool IsEven (int num)
 even or odd
 
void ShowWidgets (bool show)
 
void Show ()
 
void Hide ()
 
override void OnUpdate (float delta_time)
 
void SetWatching (bool enable)
 
bool GetWatching ()
 
void GatherPlayerInfo ()
 
void SendDebug ()
 
void OnDamageEvent (PlayerBase player, TotalDamageResult damageResult)
 
void OnRequestReceived (PlayerBase player, bool enable)
 
void OnRPC (ParamsReadContext ctx, PlayerBase player)
 
void PluginFileHandler ()
 
void ~PluginFileHandler ()
 
override void OnInit ()
 
string GetFileName ()
 
string GetSubFolderName ()
 
void ClearFileNoSave ()
 
bool LoadFile ()
 
bool SaveFile ()
 
bool IsReadOnly ()
 
void AddText (string text)
 
void AddNewLineNoSave (string text)
 
TStringArray GetFileContent ()
 
void PluginHorticulture ()
 
void LoadFromCfg ()
 
string GetPlantType (Object obj)
 
float GetSurfaceFertility (string surface_type)
 
bool GiveWormsToPlayer (PlayerBase player, float chance)
 
PlantMaterialHealth GetPlantMaterial (string plant_type)
 
void PluginKeyBinding ()
 
override void OnInit ()
 
override void OnDestroy ()
 
void OnKeyPress (int key)
 
void OnKeyRelease (int key)
 
void OnMouseButtonPress (int button)
 
void OnMouseButtonRelease (int button)
 
void OnFrame ()
 
array< ref KeyBindingGetKeyBindings ()
 
array< ref MouseBindingGetMouseBindings ()
 
void PluginMessageManager ()
 
void Broadcast (int index)
 Broadcasts an empty message on a channel provided in the 'index' parameter.
 
void BroadcastInt (int index, int value)
 Broadcasts a message on a channel provided in the 'index' parameter, passes the Int variable.
 
void BroadcastFloat (int index, float value)
 
void BroadcastString (int index, string value)
 
void BroadcastParam (int index, Param params)
 Broadcasts a message on a channel provided in the 'index' parameter, passes the Param type object to the reciever.
 
void Subscribe (MessageReceiverBase receiver, int index)
 Subscribes an object to listen to messages on a channel provided in the 'index' parameter.
 
void Unsubscribe (MessageReceiverBase receiver, int index)
 
void UnsubscribeAll (MessageReceiverBase receiver)
 
void PluginObjectsInteractionManager ()
 
bool IsFree (Object target)
 
void Lock (Object target)
 
void Release (Object target)
 
void Decay ()
 
void SwitchPermanentCrossHair (bool state)
 
void PluginPlayerStatus ()
 
void SetNotifier (int key, int index=9, string label="", int color=0xFFFFFFFF)
 
void DisplayTendency (int key, int tendency, int status=1)
 
void SetBadge (int key, int value)
 
void SetStamina (int value, int range)
 
void SetStance (int value)
 
bool Repair (PlayerBase player, ItemBase repair_kit, Object item, float specialty_weight, string damage_zone="", bool use_kit_qty=true)
 
void CalculateHealth (PlayerBase player, ItemBase kit, Object item, float specialty_weight, string damage_zone="", bool use_kit_qty=true)
 
bool CanRepair (ItemBase repair_kit, Object item, string damage_zone="")
 
bool IsRepairValid (int repair_kit_type, int repairable_with_type)
 
bool CanRepairToPristine (PlayerBase player)
 Player can repair items to 100%; currently unused.
 
bool CanBeRepairedToPristine (Object item)
 Item can be repaired to 100%.
 
float GetKitRepairCost (ItemBase repair_kit, Object item)
 
void PluginSceneManager ()
 
void ~PluginSceneManager ()
 
override void OnInit ()
 
override void OnDestroy ()
 
void OnMouseWheel (int wheel)
 
void OnUIEditorOpened ()
 
void OnUIEditorClosed ()
 
void Event_OnClick ()
 
void Event_OnClickMiddle ()
 
void Event_OnDrag ()
 
SceneObject Event_OnDoubleClick ()
 
void InitLoad ()
 
void RestoreSceneObjectsLinks ()
 
void ExecuteInitScripts ()
 
void EditorToggle ()
 
bool IsOpened ()
 
void SelectClassName (string class_name)
 
void FreeCameraControlEnable ()
 
void FreeCameraControlDisable ()
 
void DeleteSelectedObject ()
 
void SelectObject (SceneObject obj)
 
SceneObject GetSelectedSceneObject ()
 
void SelectedObjectDuplicate ()
 
void SelectedObjectSetRot (float dir)
 
void SelectedObjectSetPosX (float value)
 
void SelectedObjectSetPosY (float value)
 
void SelectedObjectSetPosZ (float value)
 
void SelectedObjectSetDamage (float value)
 
void SelectedObjectFocus ()
 
void SelectedObjectAddAttachment (string att_name)
 
void SelectedObjectRemoveAttachment (EntityAI e)
 
void LinkSceneObjects (SceneObject scene_object1, SceneObject scene_object2)
 
void UnlinkSceneObjects (SceneObject scene_object1, SceneObject scene_object2)
 
bool AreSceneObjectsLinked (SceneObject scene_object1, SceneObject scene_object2)
 
void SetDrawSelection (bool draw)
 
bool GetDrawSelection ()
 
void SetLoadPlayerPos (bool save)
 
bool GetLoadPlayerPos ()
 
void SetRotationAngle (int angle)
 
int GetRotationAngle ()
 
void SceneLoad (string scene_name)
 
void SceneUnload ()
 
void SceneSave ()
 
bool SceneCanDelete (string scene_name)
 
bool SceneDelete (string scene_name)
 
void SceneDuplicate (string scene_name)
 
void SceneRename (string scene_name, string new_name)
 
string SceneGetName ()
 
void SetWeather (float overcast, float rain, float fog, float wind_force)
 
void SetDate (int year, int month, int day, int hour, int minute)
 
void SelectAndFocusPlayerObject ()
 
void ExecuteEnforceScript (int index, SceneObject scene_object, string script)
 
void RulerToggle ()
 
bool IsRulerActivated ()
 
void RulerAddPoint ()
 
void RulerClearVisuals ()
 
void RulerDelete ()
 
SceneData GetLoadedScene ()
 
int GetSelectedSceneObjectIndex ()
 
array< ref SceneObjectGetSceneObjects ()
 
array< ref ScenePlayerGetScenePlayers ()
 
array< ref SceneObjectGetSceneObjectsAll ()
 
SceneObject GetSceneObjectByIndex (int index)
 
SceneObject GetSceneObjectByEntity (EntityAI entity)
 
TStringArray GetSceneList ()
 
void DeleteSceneObject (SceneObject obj)
 
void DeselectObject ()
 
void SceneEditorMenuCmdRefresh ()
 
void SceneEditorMenuCmdPopup (string message)
 
void SceneEditorMenuCmdSave ()
 
bool IsMouseInScene ()
 
void EditorUpdateRuler ()
 
vector GetMousePositionInScene ()
 
override void OnInit ()
 
override void OnUpdate (float delta_time)
 
override void OnDestroy ()
 
void Show ()
 
void Hide ()
 
void OnGUITimer ()
 
void PluginTransmissionAgents ()
 
void RegisterAgent (AgentBase agent)
 
void ConstructSimpleAgentList ()
 
map< int, ref AgentBaseGetAgentList ()
 
map< int, stringGetSimpleAgentList ()
 
void RemoveAllAgents (EntityAI target)
 
void PluginVariables ()
 
void ~PluginVariables ()
 
void RegisterVariable (string name)
 
string GetName (int id)
 
int GetID (string name)
 

Закрытые статические члены

static void SetDeveloperItemClientEx (notnull Object entity, bool getFocus=false)
 
static bool FileDuplicate (string source_name, string dest_name)
 
static bool FileDelete (string file)
 
static void FileRename (string source_name, string dest_name)
 
static PluginSceneManager GetInstance ()
 
static string GetNameByID (int agent_id)
 
static void RemoveAgent (EntityAI target, int agent_id)
 

Закрытые данные

string m_PlayerName
 
string m_Pid
 
vector m_Position
 
string m_PlayerPrefix
 
string m_PlayerPrefix2
 
string m_Message
 
string m_DisplayName
 
string m_HitMessage
 
float m_Distance
 
PlayerBase m_Player
 
PlayerBase m_Source
 
string m_ItemInHands
 
string m_PosArray [3]
 
int m_DotIndex
 
PlayerStat< floatm_StatWater
 
PlayerStat< floatm_StatEnergy
 
BleedingSourcesManagerServer m_BleedMgr
 
int m_CurrentMode = 0
 
bool m_HasFocus = false
 
bool m_IsActive = false
 
Widget m_MainWnd
 main controls

 
ButtonWidget m_SpawnEntityButton
 
ButtonWidget m_CardMovementButton
 
ButtonWidget m_CardFightButton
 
Widget m_CardMovementFrame
 
Widget m_CardFightFrame
 
TextWidget m_StatusText
 
XComboBoxWidget m_StanceCB
 movement card
 
XComboBoxWidget m_MindStateCB
 
EditBoxWidget m_MovementSpeedEB
 
ButtonWidget m_StartTurnButton
 
XComboBoxWidget m_TurnTypeCB
 
EditBoxWidget m_TurnDirectionEB
 
XComboBoxWidget m_VaultingCB
 
ButtonWidget m_StartVaultButton
 
ButtonWidget m_KnucleOutButton
 
XComboBoxWidget m_CrawlingTypeCB
 
ButtonWidget m_StartCrawlingButton
 
EditBoxWidget m_HitDirEB
 fight card
 
XComboBoxWidget m_HitTypeCB
 
XComboBoxWidget m_HitBodyPartCB
 
ButtonWidget m_StartHitButton
 
XComboBoxWidget m_DeathTypeCB
 
ButtonWidget m_StartDeathButton
 
XComboBoxWidget m_AttackTypeCB
 
XComboBoxWidget m_AttackDirCB
 
ButtonWidget m_StartAttackButton
 
DayZInfected m_ControlledInfected
 controlled instance
 
bool m_CH_DoTurn = false
 command handler values
 
bool m_CH_DoVault = false
 
bool m_CH_DoKnucleOut = false
 
bool m_CH_GoToCrawl = false
 
bool m_CH_DoHit = false
 
bool m_CH_StartDeath = false
 
bool m_CH_DoAttack = false
 
ref PluginDayZInfectedDebugUIHandler m_pUIHandler
 
ref array< ref PluginDayZInfectedDebugAttackDescm_AttackDescriptors = new array<ref PluginDayZInfectedDebugAttackDesc>
 
ref array< Shapem_DebugShapes = new array<Shape>()
 
ref Timer m_TickTimer
 status refresh timer
 
PluginDeveloper m_ModuleDeveloper
 
PlayerBase m_Character
 
bool m_Initialized
 
vector m_cam_pos
 
vector m_character_pos
 
vector m_camera_dir
 
vector m_cameraTrans [4]
 
vector m_demoPos
 
vector m_demoRot
 
vector m_camera_orientation
 
const float FOV = 0.5236
 
ItemBase m_Ruler
 
ref Widget m_MainWindow
 
ref set< PlayerBasem_ClientList = new set<PlayerBase>
 
ref array< ref RemotePlayerStatDebugm_PlayerDebugStats = new array<ref RemotePlayerStatDebug>
 
ref map< PlayerBase, ref RemotePlayerDamageDebugm_PlayerDebugDamage = new map<PlayerBase, ref RemotePlayerDamageDebug>
 
float m_AccuTime
 [m]
 
const int INTERVAL = 1
 
eRemoteDebugType m_DebugType
 
bool m_Watching
 
const int MAX_SIMULTANEOUS_UTS = 10
 
const float LOOKUP_RADIUS = 20
 [s]
 
int m_DetailedInfoRequested = 0
 
ref Timer m_UpdateTimer
 
ref map< PlayerBase, ref RegisterPlayerDatam_RegisteredPlayers
 
ref array< ref SyncedValuem_PlayerStatsSynced
 
ref array< ref Paramm_PlayerStomachSynced
 
ref array< ref SyncedValueLevelm_PlayerLevelsSynced
 
ref array< ref SyncedValueModifierm_PlayerModsSynced
 
string m_PlayerModsDetailedSynced
 
string m_EnvironmentDebugMessage
 
ref array< ref SyncedValueAgentm_PlayerAgentsSynced
 
bool m_ReadOnly
 
int m_LineLimit
 
ref TStringArray m_FileContent
 
ref map< string, ref PlantMaterialHealthm_PlantMaterials
 
int channelsUsed = 0
 
ref array< ref MessageReceiverBasechannelList [NUM_OF_CHANNELS]
 
ref array< Objectm_LockedObjects
 
ref array< floatm_LockedObjectsDecay
 
const float TIME_TO_FORCED_UNLOCK = 60
 
const float TICK_RATE = 10
 
ref Timer m_DecayTimer
 
Hud m_Hud
 
ref multiMap< int, stringm_NotifiersLabel
 
ref multiMap< int, intm_NotifiersIndexColor
 
ref multiMap< int, stringm_NotifiersIcons
 
bool m_RulerActivated
 
ref array< vectorm_RulerPoints
 
ref array< Shapem_RulerLines
 
ref array< Shapem_RulerSpheres
 
ref SoundParams m_soundParams
 
ref SoundObjectBuilder m_soundBuilder
 
ref SoundObject m_soundObject
 
float fadeInVolume = 1.1
 
float fadeOutVolume = 0.9
 
AbstractWave m_wave
 
ref map< int, stringm_SimpleAgentList = new map<int, string>
 
bool m_IsConstructed = false
 
int m_Id
 
ref map< int, stringm_Variables
 

Закрытые статические данные

static PluginKeyBinding instance
 
static string SCENE_DEFAULT_NAME = "default"
 
static string SCENE_SUFIX = "scene"
 
static PlayerBase PLAYER
 
static PluginSceneManager instance
 
static const int SCENE_EDITOR_CMD_REFRESH = 0
 
static const int SCENE_EDITOR_CMD_POPUP = 1
 
static const int SCENE_EDITOR_CMD_SAVE = 2
 
static ref map< int, ref AgentBasem_AgentList = new map<int, ref AgentBase>()
 

Подробное описание

Class PluginMessageManager provides some basic Message Distribution mechanics, if you get instance of this plugin class on your object, you can use its methods to broadcast messages.

Конструктор(ы)

◆ PluginBase()

void PluginBase ( )
private

◆ ~PluginBase()

void ~PluginBase ( )
private

◆ ~PluginAdminLog()

void ~PluginAdminLog ( )
inlineprotected
59 {
60 }

◆ ~PluginDayZInfectedDebug()

void ~PluginDayZInfectedDebug ( )
inlineprivate
111 {
112 #ifndef NO_GUI
114 #endif
115 }
void DestroyModuleWidgets()
Definition PluginDayZInfectedDebug.c:273

Перекрестные ссылки DestroyModuleWidgets().

◆ ~PluginDrawCheckerboard()

void ~PluginDrawCheckerboard ( )
inlineprivate
14{}

◆ ~PluginFileHandler()

void ~PluginFileHandler ( )
inlineprivate
33 {
35 }
void ClearFileNoSave()
Definition PluginFileHandler.c:52

◆ ~PluginSceneManager()

void ~PluginSceneManager ( )
inlineprivate
31 {
32 if ( instance == NULL )
33 {
34 instance = this;
35 }
36 }
Definition EntityAI.c:95
static PluginKeyBinding instance
Definition PluginKeyBinding.c:16

◆ ~PluginVariables()

void ~PluginVariables ( )
inlineprivate
14 {
15 }

Методы

◆ ActivateModifier()

void ActivateModifier ( int id,
PlayerBase player = NULL )
inlineprotected
862 {
863 if ( !player )
864 {
866 }
867 ModifiersManager mods_manager = player.GetModifiersManager();
868 mods_manager.ActivateModifier( Math.AbsInt( id ) );
869 }
DayZGame GetDayZGame()
Definition DayZGame.c:3817
PlayerBase GetPlayer()
Definition ModifierBase.c:51
void ModifiersManager(PlayerBase player)
Definition ModifiersManager.c:80
Definition EnMath.c:7
Definition PlayerBaseClient.c:2
static proto int AbsInt(int i)
Returns absolute value.

Перекрестные ссылки Math::AbsInt(), GetDayZGame(), GetPlayer() и ModifiersManager().

Используется в OnRPC().

◆ AddKeyframe()

void AddKeyframe ( )
inlineprotected
63 {
64 if( GetGame().GetUIManager().GetMenu() )
65 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_Q );
66 }
proto native CGame GetGame()
KeyCode
Definition EnSystem.c:157

Перекрестные ссылки GetGame().

◆ AddNewLineNoSave()

void AddNewLineNoSave ( string text)
inlineprivate
126 {
127 if ( m_LineLimit > -1 )
128 {
129 if ( m_LineLimit == 0 )
130 {
131 return;
132 }
133
134 int lines_count = m_FileContent.Count();
135
136 if ( lines_count > 0 && lines_count >= m_LineLimit )
137 {
139
140 for ( int i = 0; i <= remove_indexes; ++i )
141 {
142 m_FileContent.RemoveOrdered(0);
143 }
144 }
145 }
146
147 m_FileContent.Insert(text);
148 }
int m_LineLimit
Definition PluginFileHandler.c:20
ref TStringArray m_FileContent
Definition PluginFileHandler.c:22

◆ AddText()

void AddText ( string text)
inlineprivate
120 {
122 SaveFile();
123 }
void AddNewLineNoSave(string text)
Definition PluginFileHandler.c:125
bool SaveFile()
Definition PluginFileHandler.c:82

◆ AreSceneObjectsLinked()

bool AreSceneObjectsLinked ( SceneObject scene_object1,
SceneObject scene_object2 )
inlineprivate
690 {
691 if ( scene_object1.IsLinkedWithSceneObject(scene_object2) && scene_object2.IsLinkedWithSceneObject(scene_object1) )
692 {
693 return true;
694 }
695 else
696 {
697 return false;
698 }
699 }

◆ BleedingOut()

void BleedingOut ( PlayerBase player)
inlineprotected
358 {
359 m_PlayerPrefix = GetPlayerPrefix( player , player.GetIdentity() );
360
361 LogPrint( m_PlayerPrefix + " bled out" );
362 }
void LogPrint(string message)
Definition PluginAdminLog.c:62
string GetPlayerPrefix(PlayerBase player, PlayerIdentity identity)
Definition PluginAdminLog.c:67
string m_PlayerPrefix
Definition PluginAdminLog.c:6

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ Broadcast()

void Broadcast ( int index)
inlineprivate

Broadcasts an empty message on a channel provided in the 'index' parameter.

19 {
20 //Debug.Log("Broadcasting message on a channel: "+ ToString(index), "Messaging System");
22 //int test = channelList[index].Count();
23 for(int i = 0; i < x.Count(); i++)
24 {
26
27 if( mrb != NULL )
28 {
29 //string s = "Broadcasting message to: "+ToString(mrb);
30 //Log(s, LogTemplates.TEMPLATE_BROADCAST);
31 mrb.OnReceive(index);
32 }
33 }
34 }
Icon x
int Count()
Definition Container.c:302
LayoutHolder Get(int x)
Definition Container.c:1299
Definition MessageReceiverBase.c:2
ref array< ref MessageReceiverBase > channelList[NUM_OF_CHANNELS]
Definition PluginMessageManager.c:7

Перекрестные ссылки LayoutHolder::Count(), LayoutHolder::Get() и x.

◆ BroadcastFloat()

void BroadcastFloat ( int index,
float value )
inlineprivate
57 {
58 //Debug.Log("Broadcasting message on a channel: "+ ToString(index), "Messaging System");
60 //int test = channelList[index].Count();
61 for(int i = 0; i < x.Count(); i++)
62 {
64
65 if( mrb )
66 {
67 //string s = "Broadcasting message to: "+ToString(mrb);
68 //Log(s, LogTemplates.TEMPLATE_BROADCAST);
69 mrb.OnReceiveFloat(index, value);
70 }
71
72 }
73 }

Перекрестные ссылки LayoutHolder::Count(), LayoutHolder::Get() и x.

◆ BroadcastInt()

void BroadcastInt ( int index,
int value )
inlineprivate

Broadcasts a message on a channel provided in the 'index' parameter, passes the Int variable.

38 {
39 //Debug.Log("Broadcasting message on a channel: "+ ToString(index), "Messaging System");
41 //int test = channelList[index].Count();
42 for(int i = 0; i < x.Count(); i++)
43 {
45
46 if( mrb )
47 {
48 //string s = "Broadcasting message to: "+ToString(mrb);
49 //Log(s, LogTemplates.TEMPLATE_BROADCAST);
50 mrb.OnReceiveInt(index, value);
51 }
52
53 }
54 }

Перекрестные ссылки LayoutHolder::Count(), LayoutHolder::Get() и x.

◆ BroadcastParam()

void BroadcastParam ( int index,
Param params )
inlineprivate

Broadcasts a message on a channel provided in the 'index' parameter, passes the Param type object to the reciever.

93 {
94 //Debug.Log("Broadcasting message on a channel: "+ ToString(index), "Messaging System");
96 //int test = channelList[index].Count();
97 for(int i = 0; i < x.Count(); i++)
98 {
99
100 if( x.Get(i) )
101 {
102 x.Get(i).OnReceiveParam(index, params);
103 }
104
105 }
106 }

Перекрестные ссылки LayoutHolder::Count(), LayoutHolder::Get() и x.

◆ BroadcastString()

void BroadcastString ( int index,
string value )
inlineprivate
76 {
77 //Debug.Log("Broadcasting message on a channel: "+ ToString(index), "Messaging System");
79 //int test = channelList[index].Count();
80 for(int i = 0; i < x.Count(); i++)
81 {
82 if( x.Get(i) )
83 {
84 Print("broadcasting message to: ");
85 Print(x.Get(i));
86 x.Get(i).OnReceiveString(index, value);
87 }
88 }
89 }
proto void Print(void var)
Prints content of variable to console/log.

Перекрестные ссылки LayoutHolder::Count(), LayoutHolder::Get(), Print() и x.

◆ BuildAgentArray()

static void BuildAgentArray ( int agents,
array< int > agents_out )
inlinestaticprotected
346 {
347 int mask = 1;
348 for(int i = 0; i < BIT_INT_SIZE; i++)
349 {
350 if( mask & agents )
351 agents_out.Insert(mask);
352 mask = mask * 2;
353 }
354 }
const int BIT_INT_SIZE
Definition BitArray.c:4

Перекрестные ссылки BIT_INT_SIZE.

◆ CalcTemperatureFromTemperatureSource()

float CalcTemperatureFromTemperatureSource ( notnull UTemperatureSourceDebug utsd)
inlineprotected

heat transfer through air to player (env temperature)

dist factor minimum should be at 0

125 {
126 float distance = vector.Distance(m_Player.GetPosition(), utsd.GetValue(0).ToVector());
127 distance = Math.Max(distance, 0.1); //min distance cannot be 0 (division by zero)
128 float temperature = 0;
129
131 if (distance > utsd.GetValue(1).ToFloat())
132 {
133 float distFactor = Math.InverseLerp(utsd.GetValue(2).ToFloat(), utsd.GetValue(1).ToFloat(), distance);
134 distFactor = Math.Max(distFactor, 0.0);
135 temperature = utsd.GetValue(3).ToFloat() * distFactor;
136 }
137 else
138 {
139 temperature = utsd.GetValue(3).ToFloat();
140 }
141
142 //Print(temperature);
143
144 return temperature;
145 }
PlayerBase m_Player
Definition PluginAdminLog.c:12
Definition EnConvert.c:106
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
static proto float Max(float x, float y)
Returns bigger of two given values.
static proto float InverseLerp(float a, float b, float value)
Calculates the linear value that produces the interpolant value within the range [a,...

Перекрестные ссылки vector::Distance(), Math::InverseLerp(), m_Player и Math::Max().

Используется в ProcessUniversalTemperatureSources().

◆ CalculateAgentsToTransmit()

float CalculateAgentsToTransmit ( int agent_id,
float protection,
int dose_size,
int inject_type )
inlineprotected
376 {
377
378 //Debug.Log("protection: "+protection.ToString());
379 float prot = 1 - protection; //reverse the value (in config, the higher the value, the higher the protection: 0 - 1) so that we can easily interpolate between 0 and 1 by multiplication
380 //Debug.Log("prot: "+prot.ToString(), "Agents");
381 float transf;
382
383 if( inject_type == InjectTypes.PLAYER_TO_ITEM )
384 {
386 }
387 else if( inject_type == InjectTypes.ITEM_TO_PLAYER )
388 {
390 }
391 else if( inject_type == InjectTypes.PLAYER_AIR_PLAYER )
392 {
394 }
395
396 //Debug.Log("transf: "+transf.ToString(), "Agents");
397 //float result = GetAgentInitialCount(agent_id) * prot * transf * dose_size;//final formula
398 float result = 1 * prot * transf * dose_size;//final formula
399 //result = Math.Ceil(result);
400 //Debug.Log("result: "+result.ToString(), "Agents");
401 return result;
402 }
InjectTypes
Definition PluginTransmissionAgents.c:2
float GetAgentTransferabilityAirOut(int agent_id)
Definition PluginTransmissionAgents.c:134
float GetAgentTransferabilityIn(int agent_id)
Definition PluginTransmissionAgents.c:79
float GetAgentTransferabilityOut(int agent_id)
Definition PluginTransmissionAgents.c:128

Перекрестные ссылки GetAgentTransferabilityAirOut(), GetAgentTransferabilityIn() и GetAgentTransferabilityOut().

Используется в InjectAgentsWithPlayerCount() и InjectAgentWithPlayerDose().

◆ CalculateHealth()

void CalculateHealth ( PlayerBase player,
ItemBase kit,
Object item,
float specialty_weight,
string damage_zone = "",
bool use_kit_qty = true )
inlineprivate
30 {
33
34 if (entity != null)
35 {
36 entity.SetAllowDamage(true);
37 }
38
39 int health_levels_count = item.GetNumberOfHealthLevels(damage_zone);
40 float kit_repair_cost_adjusted; //used with specialty_weight, disconnected
41 float new_quantity;
42
43 int target_level = Math.Clamp(item.GetHealthLevel(damage_zone) - 1, 0, health_levels_count - 1);
44 float health_coef;
46 {
48 }
49 health_coef = item.GetHealthLevelValue(target_level,damage_zone);
50
51 //handles kit depletion; TODO: move to separate method.
52 if (kit && kit.ConfigGetInt("repairKitType"))
53 {
54 bool kit_has_quantity = kit.HasQuantity();
55 float cur_kit_quantity = kit.GetQuantity();
57
59 {
60 kit_repair_cost_adjusted = kit_repair_cost_per_level; //TODO: removed speciality weight for now, it should affect speed only (?).
61 //kit_repair_cost_adjusted = player.GetSoftSkillsManager().SubtractSpecialtyBonus(kit_repair_cost_per_level, specialty_weight);
63 if (use_kit_qty)
64 {
66 kit.SetQuantity(new_quantity);
67 }
68 }
69 else if (!kit_has_quantity) //"kit" without quantity (hammers and such) for your every day repairing needs
70 {
71 }
72 else
73 {
74 if (use_kit_qty)
75 {
76 kit.SetQuantity(0);
77 }
78 }
79 }
80
81 if (item.GetHealth01(damage_zone,"Health") < health_coef)
82 {
83 item.SetHealth01(damage_zone,"Health",health_coef);
84 }
85
86 if (entity != null)
87 {
88 entity.ProcessInvulnerabilityCheck(entity.GetInvulnerabilityTypeString());
89 }
90 }
Super root of all classes in Enforce script.
Definition EnScript.c:11
Definition Building.c:6
Definition constants.c:638
bool CanRepairToPristine(PlayerBase player)
Player can repair items to 100%; currently unused.
Definition PluginRepairing.c:132
bool CanBeRepairedToPristine(Object item)
Item can be repaired to 100%.
Definition PluginRepairing.c:138
float GetKitRepairCost(ItemBase repair_kit, Object item)
Definition PluginRepairing.c:143
static proto bool CastTo(out Class to, Class from)
Try to safely down-cast base class to child class.
const int STATE_WORN
Definition constants.c:810
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'.

Перекрестные ссылки Class::CastTo(), Math::Clamp() и GameConstants::STATE_WORN.

◆ CalculatePos()

vector CalculatePos ( )
inlineprivate
70 {
71 vector cam_pos = FreeDebugCamera.GetInstance().GetPosition();
73 Math3D.DirectionAndUpMatrix(m_camera_dir/* - SnapToGround(cam_pos)*/, "0 1 0", m_cameraTrans);
75 m_demoPos = Vector(/*0.685547, -0.988281,*/0,0, 3.68823).Multiply4(m_cameraTrans);
76 m_demoPos[1] = GetGame().SurfaceY(m_demoPos[0], m_demoPos[2]);
77
78 return m_demoPos;
79 }
Definition EnMath3D.c:28
vector m_cameraTrans[4]
Definition PluginCharPlacement.c:10
vector m_demoPos
Definition PluginCharPlacement.c:11
vector m_camera_dir
Definition PluginCharPlacement.c:9
proto native vector Vector(float x, float y, float z)
Vector constructor from components.
static proto void DirectionAndUpMatrix(vector dir, vector up, out vector mat[4])
Creates rotation matrix from direction and up vector.
static void MatrixIdentity4(out vector mat[4])
Creates identity matrix.
Definition EnMath3D.c:256

Перекрестные ссылки Math3D::DirectionAndUpMatrix(), GetGame(), Math3D::MatrixIdentity4() и Vector().

◆ CanBeRepairedToPristine()

bool CanBeRepairedToPristine ( Object item)
inlineprivate

Item can be repaired to 100%.

139 {
140 return item.CanBeRepairedToPristine();
141 }

◆ CanRepair()

bool CanRepair ( ItemBase repair_kit,
Object item,
string damage_zone = "" )
inlineprivate
93 {
94 int state = item.GetHealthLevel(damage_zone);
95
96 if (state != GameConstants.STATE_RUINED && (item.CanBeRepairedToPristine() && state >= GameConstants.STATE_WORN) || (!item.CanBeRepairedToPristine() && state >= GameConstants.STATE_DAMAGED))
97 {
98 int repair_kit_type = repair_kit.ConfigGetInt("repairKitType");
99 if (!repair_kit_type) //outside of regular repair kit logic for some reason, bypass check
100 {
101 return true;
102 }
103
105 item.ConfigGetIntArray("repairableWithKits", repairable_with_types);
106
107 for (int i = 0; i < repairable_with_types.Count(); i++)
108 {
110
112 {
113 return true;
114 }
115 }
116 }
117 return false;
118
119 }
bool IsRepairValid(int repair_kit_type, int repairable_with_type)
Definition PluginRepairing.c:121
const int STATE_RUINED
Definition constants.c:807
const int STATE_DAMAGED
Definition constants.c:809

Перекрестные ссылки GameConstants::STATE_DAMAGED, GameConstants::STATE_RUINED и GameConstants::STATE_WORN.

◆ CanRepairToPristine()

bool CanRepairToPristine ( PlayerBase player)
inlineprivate

Player can repair items to 100%; currently unused.

133 {
134 return false;
135 }

◆ CaptureFocus() [1/2]

void CaptureFocus ( )
inlineprivate
142 {
143 if (!m_HasFocus)
144 {
145 GetGame().GetInput().ChangeGameFocus(1);
146 GetGame().GetUIManager().ShowUICursor(true);
147 m_HasFocus = true;
148 }
149 }
bool m_HasFocus
Definition PluginDayZInfectedDebug.c:42

Перекрестные ссылки GetGame() и m_HasFocus.

Используется в ToggleDebugWindowEventP(), ToggleDebugWindowSetMode() и ToggleDebugWindowSetMode().

◆ CaptureFocus() [2/2]

void CaptureFocus ( )
inlineprotected
1027 {
1028 GetGame().GetInput().ChangeGameFocus( 1 );
1029 GetGame().GetUIManager().ShowUICursor( true );
1030 }

Перекрестные ссылки GetGame().

◆ CheckInit() [1/2]

void CheckInit ( )
inlineprivate
18 {
19 if ( m_Initialized )
20 {
21 Print("logging...");
22 Log(FOV.ToString(),"FOV");
23 Log(m_camera_dir.ToString(),"camera dir");
24 Log(m_cam_pos.ToString(),"camera pos");
25 Log(m_demoPos.ToString(),"character pos");
26
27 return;
28 }
29
30 if( FreeDebugCamera.GetInstance().IsActive() )
31 Init();
32 }
void Init()
Definition PluginCharPlacement.c:34
void Log(string msg, string label)
Definition PluginBase.c:10
bool m_Initialized
Definition PluginCharPlacement.c:6
const float FOV
Definition PluginCharPlacement.c:15
vector m_cam_pos
Definition PluginCharPlacement.c:7
proto string ToString(bool beautify=true)
Vector to string.

Перекрестные ссылки Init(), Log(), m_Initialized, Print(), float::ToString() и vector::ToString().

◆ CheckInit() [2/2]

void CheckInit ( )
inlineprivate
9 {
10 if( FreeDebugCamera.GetInstance().IsActive() )
11 Init();
12 }

Перекрестные ссылки Init().

◆ CheckMask()

bool CheckMask ( int source_mask,
int target_mask )
inlineprotected
325 {
326 if ( ( source_mask & target_mask ) == target_mask )
327 {
328 return true;
329 }
330
331 return false;
332 }

◆ CleanupDebugShapes()

void CleanupDebugShapes ( array< Shape > shapesArr)
inlineprivate
478 {
479 for ( int it = 0; it < shapesArr.Count(); ++it )
480 {
482 }
483
484 shapesArr.Clear();
485 }
Definition Debug.c:14
static void RemoveShape(out Shape shape)
Definition Debug.c:110

Перекрестные ссылки Debug::RemoveShape().

Используется в OnUpdate() и ToggleDebugWindowSetMode().

◆ ClearFileNoSave()

void ClearFileNoSave ( )
inlineprivate
53 {
54 m_FileContent.Clear();
55 }

◆ ClearInventory()

void ClearInventory ( EntityAI entity)
inlineprotected
730 {
731 if ( GetGame().IsServer() )
732 {
733 entity.ClearInventory();
734 }
735 else
736 {
738 entity.RPCSingleParam(ERPCs.DEV_RPC_CLEAR_INV, params, true);
739 }
740 }
ERPCs
Definition ERPCs.c:2

Перекрестные ссылки GetGame().

◆ CommandHandler()

void CommandHandler ( DayZInfected infected)
inlineprotected
381 {
383 return;
384
385 infected.GetInputController().OverrideMovementSpeed(true, m_MovementSpeedEB.GetText().ToFloat());
386
387 DayZInfectedCommandMove moveCommand = infected.GetCommand_Move();
388 if( moveCommand )
389 {
390 moveCommand.SetStanceVariation(m_StanceCB.GetCurrentItem());
391 moveCommand.SetIdleState(m_MindStateCB.GetCurrentItem());
392 }
393
394 if( m_CH_DoTurn )
395 {
396 moveCommand.StartTurn(m_TurnDirectionEB.GetText().ToFloat(), m_TurnTypeCB.GetCurrentItem());
397 m_CH_DoTurn = false;
398 }
399 if( m_CH_DoVault )
400 {
401 infected.StartCommand_Vault(m_VaultingCB.GetCurrentItem());
402 m_CH_DoVault = false;
403 }
404 if( m_CH_DoKnucleOut )
405 {
406 infected.StartCommand_Vault(-1);
407 m_CH_DoKnucleOut = false;
408 }
409 if( m_CH_GoToCrawl )
410 {
411 infected.StartCommand_Crawl(m_CrawlingTypeCB.GetCurrentItem());
412 m_CH_GoToCrawl = false;
413 }
414 if( m_CH_DoHit )
415 {
416 float hitDir = m_HitDirEB.GetText().ToFloat();
417 int bodyPart = m_HitBodyPartCB.GetCurrentItem();
418 bool heavyHit = m_HitTypeCB.GetCurrentItem() == 1;
419
420 infected.StartCommand_Hit(heavyHit, bodyPart, hitDir);
421
422 m_CH_DoHit = false;
423 }
424 if( m_CH_StartDeath )
425 {
426 int deathType = m_DeathTypeCB.GetCurrentItem();
427 float deathDir = m_HitDirEB.GetText().ToFloat();
428
429 infected.StartCommand_Death(deathType, deathDir);
430
431 m_CH_StartDeath = false;
432 }
433 if( m_CH_DoAttack )
434 {
435 float attackDir = m_AttackDirCB.GetCurrentItem();
436 int attackType = m_AttackDescriptors.Get(m_AttackTypeCB.GetCurrentItem()).animValue;
437
438 infected.StartCommand_Attack(null, attackType, attackDir);
439
440 m_CH_DoAttack = false;
441 }
442 }
Definition DayZInfectedImplement.c:1
bool m_CH_DoTurn
command handler values
Definition PluginDayZInfectedDebug.c:87
bool m_CH_DoAttack
Definition PluginDayZInfectedDebug.c:93
XComboBoxWidget m_StanceCB
movement card
Definition PluginDayZInfectedDebug.c:55
bool m_CH_DoHit
Definition PluginDayZInfectedDebug.c:91
XComboBoxWidget m_HitBodyPartCB
Definition PluginDayZInfectedDebug.c:73
XComboBoxWidget m_TurnTypeCB
Definition PluginDayZInfectedDebug.c:60
EditBoxWidget m_MovementSpeedEB
Definition PluginDayZInfectedDebug.c:57
EditBoxWidget m_HitDirEB
fight card
Definition PluginDayZInfectedDebug.c:71
XComboBoxWidget m_AttackDirCB
Definition PluginDayZInfectedDebug.c:80
XComboBoxWidget m_AttackTypeCB
Definition PluginDayZInfectedDebug.c:79
XComboBoxWidget m_HitTypeCB
Definition PluginDayZInfectedDebug.c:72
DayZInfected m_ControlledInfected
controlled instance
Definition PluginDayZInfectedDebug.c:84
XComboBoxWidget m_DeathTypeCB
Definition PluginDayZInfectedDebug.c:76
XComboBoxWidget m_MindStateCB
Definition PluginDayZInfectedDebug.c:56
bool m_CH_DoKnucleOut
Definition PluginDayZInfectedDebug.c:89
XComboBoxWidget m_VaultingCB
Definition PluginDayZInfectedDebug.c:63
bool m_CH_StartDeath
Definition PluginDayZInfectedDebug.c:92
EditBoxWidget m_TurnDirectionEB
Definition PluginDayZInfectedDebug.c:61
XComboBoxWidget m_CrawlingTypeCB
Definition PluginDayZInfectedDebug.c:67
bool m_CH_DoVault
Definition PluginDayZInfectedDebug.c:88
ref array< ref PluginDayZInfectedDebugAttackDesc > m_AttackDescriptors
Definition PluginDayZInfectedDebug.c:96
bool m_CH_GoToCrawl
Definition PluginDayZInfectedDebug.c:90

◆ ConstructSimpleAgentList()

void ConstructSimpleAgentList ( )
inlineprivate
34 {
35 string agent_name;
36 int agent_type;
37
38 for(int i = 0; i < m_AgentList.Count();i++)
39 {
40 AgentBase agent = m_AgentList.GetElement(i);
41 agent_name = agent.GetName();
42 agent_type = agent.GetAgentType();
44 }
45 }
Definition AgentBase.c:2
ref map< int, string > m_SimpleAgentList
Definition PluginTransmissionAgents.c:11
static ref map< int, ref AgentBase > m_AgentList
Definition PluginTransmissionAgents.c:10

Используется в GetSimpleAgentList().

◆ ContainsFirstClass()

bool ContainsFirstClass ( string config_class_path,
string class_path )
inlineprivate
115 {
116 int start = class_path.IndexOf(" ");
117 string name = class_path;
118 if ( start > -1 )
119 {
120 name = class_path.Substring(0, start );
121 }
122
123 int cfg_class_count = GetGame().ConfigGetChildrenCount( config_class_path );
124
125 for ( int i = 0; i < cfg_class_count; i++ )
126 {
127 string cfg_class_name = "";
128 GetGame().ConfigGetChildName( config_class_path, i, cfg_class_name );
129
130 if ( cfg_class_name == name )
131 {
132 string full_name = config_class_path + " " + name;
133 int type = GetGame().ConfigGetType( full_name );
134
135 if ( type == CT_CLASS )
136 {
137 return true;
138 }
139 }
140 }
141
142 if ( start == -1 )
143 {
144 return false;
145 }
146 else
147 {
148 string new_name = class_path.Substring(start + 1, class_path.Length() - (start + 1) );
150 }
151 }
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
bool ContainsFirstClass(string config_class_path, string class_path)
Definition PluginConfigViewer.c:114

Перекрестные ссылки ContainsFirstClass(), GetGame() и name.

Используется в ContainsFirstClass() и GetBaseClassPathRecursive().

◆ CreateModuleWidgets()

void CreateModuleWidgets ( )
inlineprivate

main controls

movement card

fight card

fill some controls

215 {
216 if (!m_pUIHandler)
217 {
219 m_pUIHandler.m_pPluginInfectedDebug = this;
220 }
221
222 if (!m_MainWnd)
223 {
224 m_MainWnd = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_infecteddebug.layout");
225 m_MainWnd.SetHandler(m_pUIHandler);
226 m_MainWnd.Show(false);
227 }
228
230 m_SpawnEntityButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("SpawnEntityButton") );
231 m_CardMovementButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("CardMovementButton") );
232 m_CardFightButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("CardFightButton") );
233 m_CardMovementFrame = m_MainWnd.FindAnyWidget("CardMovementFrame");
234 m_CardFightFrame = m_MainWnd.FindAnyWidget("CardFightFrame");
235 m_StatusText = TextWidget.Cast( m_MainWnd.FindAnyWidget("StatusText") );
236
238 m_StanceCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("StanceCB") );
239 m_MindStateCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("MindStateCB") );
240 m_MovementSpeedEB = EditBoxWidget.Cast( m_MainWnd.FindAnyWidget("MovementSpeedEB") );
241
242 m_StartTurnButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartTurnButton") );
243 m_TurnTypeCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("TurnTypeCB") );
244 m_TurnDirectionEB = EditBoxWidget.Cast( m_MainWnd.FindAnyWidget("TurnDirectionEB") );
245
246 m_VaultingCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("TurnTypeCB") );
247 m_StartVaultButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartVaultButton") );
248 m_KnucleOutButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("KnucleOutButton") );
249
250 m_CrawlingTypeCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("TurnTypeCB") );
251 m_StartCrawlingButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartCrawlingButton") );
252
254 m_HitDirEB = EditBoxWidget.Cast( m_MainWnd.FindAnyWidget("HitDirEB") );
255 m_HitTypeCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("HitTypeCB") );
256 m_HitBodyPartCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("HitBodyPartCB") );
257 m_StartHitButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartHitButton") );
258
259 m_DeathTypeCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("DeathTypeCB") );
260 m_StartDeathButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartDeathButton") );
261
262 m_AttackTypeCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("AttackTypeCB") );
263 m_AttackDirCB = XComboBoxWidget.Cast( m_MainWnd.FindAnyWidget("AttackDirCB") );
264 m_StartAttackButton = ButtonWidget.Cast( m_MainWnd.FindAnyWidget("StartAttackButton") );
265
267 InitAttacks();
268
269 ShowCard(0);
270 }
Definition EnWidgets.c:354
ButtonWidget m_KnucleOutButton
Definition PluginDayZInfectedDebug.c:65
ButtonWidget m_CardFightButton
Definition PluginDayZInfectedDebug.c:49
ButtonWidget m_StartTurnButton
Definition PluginDayZInfectedDebug.c:59
ButtonWidget m_StartDeathButton
Definition PluginDayZInfectedDebug.c:77
void InitAttacks()
Definition PluginDayZInfectedDebug.c:453
ButtonWidget m_StartHitButton
Definition PluginDayZInfectedDebug.c:74
void ShowCard(int pCard)
Definition PluginDayZInfectedDebug.c:279
Widget m_MainWnd
main controls
Definition PluginDayZInfectedDebug.c:46
Widget m_CardFightFrame
Definition PluginDayZInfectedDebug.c:51
ButtonWidget m_StartAttackButton
Definition PluginDayZInfectedDebug.c:81
ButtonWidget m_CardMovementButton
Definition PluginDayZInfectedDebug.c:48
ButtonWidget m_StartVaultButton
Definition PluginDayZInfectedDebug.c:64
ButtonWidget m_SpawnEntityButton
Definition PluginDayZInfectedDebug.c:47
ref PluginDayZInfectedDebugUIHandler m_pUIHandler
Definition PluginDayZInfectedDebug.c:95
ButtonWidget m_StartCrawlingButton
Definition PluginDayZInfectedDebug.c:68
TextWidget m_StatusText
Definition PluginDayZInfectedDebug.c:52
Widget m_CardMovementFrame
Definition PluginDayZInfectedDebug.c:50
Definition EnWidgets.c:220

Перекрестные ссылки GetGame(), InitAttacks(), m_MainWnd, m_pUIHandler и ShowCard().

Используется в PluginDayZInfectedDebug() и PluginDayzPlayerDebug().

◆ CreateWidgetOverlay()

void CreateWidgetOverlay ( )
inlineprivate

row counter

sets alpha level for even/odd child

17 {
18#ifndef NO_GUI
19 if (!m_MainWindow)
20 {
21 m_MainWindow = GetGame().GetWorkspace().CreateWidgets("gui/layouts/camera_checkerboard.layout");
22 m_MainWindow.Show(false);
23 int childId = 0;
24 int row = 0;
25 bool evenOrOdd;
26 int tilesPerLine = 8;
27
28 Widget child = m_MainWindow.GetChildren();
29 while(child)
30 {
32
34 if(childId > (tilesPerLine * row) - 1)
35 {
36 row++;
37 }
38
39 if(IsEven(row))
40 {
42 }
43
45 if(evenOrOdd)
46 child.SetAlpha(0.15);
47 else
48 child.SetAlpha(0.05);
49
50 child = child.GetSibling();
51 childId++;
52 }
53 }
54#endif
55 }
bool IsEven(int num)
even or odd
Definition PluginDrawCheckerboard.c:63
ref Widget m_MainWindow
Definition PluginDrawCheckerboard.c:5
Definition EnWidgets.c:190

Перекрестные ссылки GetGame() и IsEven().

Используется в PluginDrawCheckerboard().

◆ CursorHide()

void CursorHide ( )
inlineprotected
36 {
37 if( GetGame().GetUIManager().GetMenu() )
38 GetGame().GetUIManager().GetMenu().OnHide();
39 }

Перекрестные ссылки GetGame().

◆ CursorShow()

void CursorShow ( )
inlineprotected
45 {
46 if( GetGame().GetUIManager().GetMenu() )
47 GetGame().GetUIManager().GetMenu().OnShow();
48 }

Перекрестные ссылки GetGame().

◆ DeactivateModifier()

void DeactivateModifier ( int id,
PlayerBase player = NULL )
inlineprotected
873 {
874 if ( !player )
875 {
877 }
878 ModifiersManager mods_manager = player.GetModifiersManager();
879 mods_manager.DeactivateModifier( Math.AbsInt( id ) );
880 }

Перекрестные ссылки Math::AbsInt(), GetDayZGame(), GetPlayer() и ModifiersManager().

Используется в OnRPC().

◆ Decay()

void Decay ( )
inlineprivate
60 {
61 if ( m_LockedObjectsDecay.Count() > 0 )
62 {
63 for ( int i = 0; i < m_LockedObjectsDecay.Count(); i++ )
64 {
66 {
67 m_LockedObjects.Remove(i);
68 m_LockedObjectsDecay.Remove(i);
69 }
70 else
71 {
73 }
74 }
75 }
76 }
ref array< float > m_LockedObjectsDecay
Definition PluginObjectsInteractionManager.c:4
const float TIME_TO_FORCED_UNLOCK
Definition PluginObjectsInteractionManager.c:5
const float TICK_RATE
Definition PluginObjectsInteractionManager.c:6
ref array< Object > m_LockedObjects
Definition PluginObjectsInteractionManager.c:3

Перекрестные ссылки TICK_RATE.

◆ DeleteKeyframe()

void DeleteKeyframe ( )
inlineprotected
69 {
70 if( GetGame().GetUIManager().GetMenu() )
71 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_E );
72 }

Перекрестные ссылки GetGame().

◆ DeleteSceneObject()

void DeleteSceneObject ( SceneObject obj)
inlineprivate
1092 {
1093 if ( obj != NULL )
1094 {
1095 if ( obj.GetObject() != GetGame().GetPlayer() )
1096 {
1097 obj.UnlinkAll();
1098
1099 if ( GetSelectedSceneObject() != NULL && GetSelectedSceneObject() == obj )
1100 {
1102 }
1103
1104 m_SceneData.DeleteSceneObject(obj);
1105 }
1106 else
1107 {
1108 SceneEditorMenuCmdPopup("You cant delete player!");
1109 }
1110 }
1111
1112 EditorUpdate();
1113 }
void DeselectObject()
Definition PluginSceneManager.c:1137
void EditorUpdate()
Definition PluginSceneManager.c:1145
ref SceneData m_SceneData
Definition PluginSceneManager.c:1129
SceneObject GetSelectedSceneObject()
Definition PluginSceneManager.c:491
void SceneEditorMenuCmdPopup(string message)
Definition PluginSceneManager.c:1211
EntityAI GetObject()
Definition SceneObject.c:59
void UnlinkAll()
Definition SceneObject.c:308

Перекрестные ссылки GetGame(), SceneObject::GetObject(), GetPlayer() и SceneObject::UnlinkAll().

◆ DeleteSelectedObject()

void DeleteSelectedObject ( )
inlineprivate
440 {
442
443 if ( selected_obj != NULL )
444 {
445 if ( !selected_obj.IsPlayer() )
446 {
448 for ( int i = 0; i < scene_objects.Count(); i++ )
449 {
451 {
453 }
454 }
455
456 m_SceneData.DeleteSceneObject(selected_obj);
457
458 scene_objects.RemoveItem(selected_obj);
459
461 }
462 else
463 {
464 SceneEditorMenuCmdPopup("You cant delete player!");
465 }
466 }
467
468 EditorUpdate();
469 }
array< ref SceneObject > GetSceneObjects()
Definition PluginSceneManager.c:1002
void UnlinkSceneObjects(SceneObject scene_object1, SceneObject scene_object2)
Definition PluginSceneManager.c:680
bool AreSceneObjectsLinked(SceneObject scene_object1, SceneObject scene_object2)
Definition PluginSceneManager.c:689
Definition SceneObject.c:2

◆ DeselectObject()

void DeselectObject ( )
inlineprivate
1138 {
1140 }
SceneObject m_SelectedObject
Definition PluginSceneManager.c:1130

Перекрестные ссылки m_SelectedObject.

◆ DestroyModuleWidgets()

void DestroyModuleWidgets ( )
inlineprivate
274 {
275 delete m_MainWnd;
276 }

Перекрестные ссылки m_MainWnd.

Используется в ~PluginDayZInfectedDebug() и ~PluginDayzPlayerDebug().

◆ DetermineChanceToTransmit()

bool DetermineChanceToTransmit ( int agent_id,
float protection,
int inject_type )
inlineprotected
406 {
407
408 //Debug.Log("protection: "+protection.ToString());
409 float prot = 1 - protection; //reverse the value (in config, the higher the value, the higher the protection: 0 - 1) so that we can easily interpolate between 0 and 1 by multiplication
410 //Debug.Log("prot: "+prot.ToString(), "Agents");
411 float transf;
412
413 if( inject_type == InjectTypes.PLAYER_TO_ITEM )
414 {
416 }
417 else if( inject_type == InjectTypes.ITEM_TO_PLAYER )
418 {
420 }
421 else if( inject_type == InjectTypes.PLAYER_AIR_PLAYER )
422 {
424 }
425 #ifdef DEVELOPER
426 //Debug.Log("transf: "+transf.ToString(), "Agents");
427 #endif
428 //float result = GetAgentInitialCount(agent_id) * prot * transf * dose_size;//final formula
429 bool dice = Math.RandomFloat01() < (prot * transf);
430 //result = Math.Ceil(result);
431
432 return dice;
433 }
static float RandomFloat01()
Returns a random float number between and min [inclusive] and max [inclusive].
Definition EnMath.c:126

Перекрестные ссылки GetAgentTransferabilityAirOut(), GetAgentTransferabilityIn(), GetAgentTransferabilityOut() и Math::RandomFloat01().

Используется в InjectAgentsWithPlayer().

◆ DirectAdminLogPrint()

void DirectAdminLogPrint ( string str)
inlineprotected
410 {
411 LogPrint(str);
412 }

Перекрестные ссылки LogPrint().

◆ DisplayTendency()

void DisplayTendency ( int key,
int tendency,
int status = 1 )
inlineprivate
43 {
44 if ( key )
45 {
46 // display icon
47 int icon_index = 0; // maybe we'll have several icons for different tendencies
48 if ( m_NotifiersIcons.HasKey( key ) )
49 {
50 string icon_name = m_NotifiersIcons.Get( key ).Get( icon_index );
51 Mission mission = GetGame().GetMission();
52 if ( mission )
53 {
55 if ( hud )
56 {
57 hud.DisplayNotifier( key, tendency, status );
58 }
59 }
60 }
61 }
62 }
Mission mission
Definition DisplayStatus.c:28
Definition gameplay.c:634
Mission class.
Definition gameplay.c:681
Hud GetHud()
Definition gameplay.c:715
ref multiMap< int, string > m_NotifiersIcons
Definition PluginPlayerStatus.c:6

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

◆ DrawDebugs()

void DrawDebugs ( )
inlineprotected
51 {
53 {
54 float fullRange = utsd.GetValue(1).ToFloat();
55 float maxRange = utsd.GetValue(2).ToFloat();
56 float temp = utsd.GetValue(3).ToFloat();
57 vector sphPos = utsd.GetValue(0).ToVector();
58
61 if (temp < 0)
62 {
65 }
66 else if (temp == 0)
67 {
68 fullRangeColor = 0x1fefefef;
69 maxRangeColor = 0x1fefefef;
70 }
71
74 Debug.DrawArrow(m_Player.GetPosition(), sphPos, 1.0, 0xffffffff, ShapeFlags.ONCE|ShapeFlags.TRANSP);
75 }
76
78
79 if (m_UTemperatureSourceDebugs.Count() > 0)
80 {
81 DbgUI.Begin("Universal Temp Sources", 10, 300);
82 DbgUI.Text(string.Format("Lookup radius: %1m (server-side)", PluginUniversalTemperatureSourceServer.LOOKUP_RADIUS));
83 DbgUI.Text(string.Format("Count: %1", m_UTemperatureSourceDebugs.Count()));
84 DbgUI.Text(string.Format("Avg. temp: %1 °C", m_UTSAverageTemperature));
85 DbgUI.End();
86 }
87 }
Definition DbgUI.c:60
static Shape DrawArrow(vector from, vector to, float size=0.5, int color=0xFFFFFFFF, int flags=0)
Definition Debug.c:410
static Shape DrawCylinder(vector pos, float radius, float height=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Definition Debug.c:349
float m_UTSAverageTemperature
Definition PluginUniversalTemperatureSourceClient.c:5
void ProcessUniversalTemperatureSources()
Definition PluginUniversalTemperatureSourceClient.c:89
void PluginUniversalTemperatureSourceServer()
Definition PluginUniversalTemperatureSourceServer.c:11
ref array< ref UTemperatureSourceDebug > m_UTemperatureSourceDebugs
Definition PluginUniversalTemperatureSourceClient.c:7
const int COLOR_BLUE_A
Definition constants.c:71
const int COLOR_RED_A
Definition constants.c:69
const int COLOR_YELLOW_A
Definition constants.c:72
const int COLOR_GREEN_A
Definition constants.c:70
ShapeFlags
Definition EnDebug.c:126
static proto native void Begin(string windowTitle, float x=0, float y=0)
static proto native void Text(string label)
static proto native void End()

Перекрестные ссылки DbgUI::Begin(), COLOR_BLUE_A, COLOR_GREEN_A, COLOR_RED_A, COLOR_YELLOW_A, Debug::DrawArrow(), Debug::DrawCylinder(), DbgUI::End(), m_Player, m_UTemperatureSourceDebugs, ProcessUniversalTemperatureSources() и DbgUI::Text().

Используется в OnUpdate().

◆ EditorToggle()

void EditorToggle ( )
inlineprivate
369 {
370 //Log("EditorToggle");
371
372 if ( GetGame().IsMultiplayer() )
373 {
374 return;
375 }
376
377 if ( IsOpened() )
378 {
379 // Close UI Scene Editor Menu
380 GetGame().GetUIManager().Back();
381 }
382 else
383 {
384 // Open UI Scene Editor Menu
385 GetGame().GetUIManager().EnterScriptedMenu(MENU_SCENE_EDITOR, NULL);
386 EditorUpdate();
387 }
388 }
bool IsOpened()
Definition PluginSceneManager.c:393
const int MENU_SCENE_EDITOR
Definition constants.c:175

Перекрестные ссылки GetGame(), IsOpened() и MENU_SCENE_EDITOR.

◆ EditorUpdate()

void EditorUpdate ( )
inlineprotected
1146 {
1147 if ( GetGame().IsMultiplayer() )
1148 {
1149 return;
1150 }
1151
1153 if( !objects )
1154 return;
1155 for ( int i = 0; i < objects.Count(); ++i )
1156 {
1157 SceneObject obj = objects.Get(i);
1158
1160 int j;
1161
1162 if ( IsOpened() )
1163 {
1164 obj.EditorShapeAdd();
1165
1167 {
1168 if ( GetDrawSelection() )
1169 {
1170 obj.EditorShapeSelect();
1171 }
1172 }
1173 else
1174 {
1175 obj.EditorShapeDeselect();
1176 }
1177
1178 for ( j = 0; j < linked_scene_objects.Count(); j++ )
1179 {
1181 }
1182 }
1183 else
1184 {
1185 obj.EditorShapeRemove();
1186
1188 {
1189 for ( j = 0; j < linked_scene_objects.Count(); j++ )
1190 {
1192 }
1193 }
1194 }
1195 }
1196
1198 }
void SceneEditorMenuCmdRefresh()
Definition PluginSceneManager.c:1203
bool GetDrawSelection()
Definition PluginSceneManager.c:714
void EditorShapeDeselect()
Definition SceneObject.c:135
void EditorShapeRemove()
Definition SceneObject.c:204
void EditorShapeAdd()
Definition SceneObject.c:169
void EditorShapeSelect()
Definition SceneObject.c:127
void EditorLineAdd(SceneObject obj)
Definition SceneObject.c:232
array< SceneObject > GetLinkedSceneObjects()
Definition SceneObject.c:324
void EditorLineRemove(SceneObject obj)
Definition SceneObject.c:216

Перекрестные ссылки SceneObject::EditorLineAdd(), SceneObject::EditorLineRemove(), SceneObject::EditorShapeAdd(), SceneObject::EditorShapeDeselect(), SceneObject::EditorShapeRemove(), SceneObject::EditorShapeSelect(), GetGame(), SceneObject::GetLinkedSceneObjects() и IsOpened().

◆ EditorUpdateRuler()

void EditorUpdateRuler ( )
inlineprivate
1243 {
1245
1246 for ( int i = 0; i < m_RulerPoints.Count(); ++i )
1247 {
1248 vector pos1 = m_RulerPoints.Get(i);
1249
1250 m_RulerSpheres.Insert(Debug.DrawSphere(pos1, 0.1));
1251
1252 if ( i < m_RulerPoints.Count() - 1 )
1253 {
1254 vector pos2 = m_RulerPoints.Get(i + 1);
1256 }
1257 }
1258 }
static Shape DrawLine(vector from, vector to, int color=0xFFFFFFFF, int flags=0)
Definition Debug.c:388
static Shape DrawSphere(vector pos, float size=1, int color=0x1fff7f7f, ShapeFlags flags=ShapeFlags.TRANSP|ShapeFlags.NOOUTLINE)
Definition Debug.c:333
ref array< Shape > m_RulerSpheres
Definition PluginSceneManager.c:11
ref array< Shape > m_RulerLines
Definition PluginSceneManager.c:10
ref array< vector > m_RulerPoints
Definition PluginSceneManager.c:9
void RulerClearVisuals()
Definition PluginSceneManager.c:949

Перекрестные ссылки Debug::DrawLine() и Debug::DrawSphere().

◆ EnableUpdate()

void EnableUpdate ( bool enable,
int type,
PlayerBase player )
inlineprotected
86 {
87 //set update by type
90
91
92 switch ( type )
93 {
94 case ERPCs.DEV_STATS_UPDATE:
95 {
97 break;
98 }
99
100 case ERPCs.DEV_LEVELS_UPDATE:
101 {
103 break;
104 }
105
106 case ERPCs.DEV_MODS_UPDATE:
107 {
109 break;
110 }
111
112 case ERPCs.DEV_AGENTS_UPDATE:
113 {
115 break;
116 }
117
118 case ERPCs.DEV_STOMACH_UPDATE:
119 {
121 break;
122 }
123 case ERPCs.DEV_TEMP_UPDATE:
124 {
126 break;
127 }
128 case ERPCs.DEV_HEALTH_UPDATE:
129 {
131 break;
132 }
133 }
134
135 //remove players with empty mask
136 for (int i = 0; i < m_RegisteredPlayers.Count(); i++)
137 {
138 if (m_RegisteredPlayers.GetElement(i).m_Bitmask == 0)
139 {
140 m_RegisteredPlayers.RemoveElement(i);
141 i = 0;
142 }
143 }
144
145 //start/stop the tick based on existence/absence of players registered
146 if ( m_UpdateTimer )
147 {
148 if ( m_RegisteredPlayers.Count() == 0)
149 {
150 m_UpdateTimer.Stop();
151 }
152 else if (!m_UpdateTimer.IsRunning())
153 {
154 m_UpdateTimer.Run( 1, this, "Update", NULL, true );
155 }
156 }
157 }
PDS_SYSTEMS
Definition PluginDeveloperSync.c:2
void RegisterPlayer(PlayerBase player)
Definition PluginDeveloperSync.c:240
void SetSystemInBitmask(PlayerBase player, int system_bit, bool state)
Definition PluginDeveloperSync.c:213
ref map< PlayerBase, ref RegisterPlayerData > m_RegisteredPlayers
Definition PluginDeveloperSync.c:30
bool IsPlayerRegistered(PlayerBase player)
Definition PluginDeveloperSync.c:257
ref Timer m_UpdateTimer
Definition PluginDeveloperSync.c:29

Перекрестные ссылки IsPlayerRegistered(), m_UpdateTimer, RegisterPlayer() и SetSystemInBitmask().

Используется в OnRPC() и OnRPCTemp().

◆ EnableWidgets()

void EnableWidgets ( bool enable)
inlineprotected
148 {
149 for (int i = 0; i < MAX_SIMULTANEOUS_UTS; i++)
150 {
151 m_RootWidget[i].Show(enable);
152 }
153 }
const int MAX_SIMULTANEOUS_UTS
Definition PluginUniversalTemperatureSourceClient.c:3
ref Widget m_RootWidget[MAX_SIMULTANEOUS_UTS]
Definition PluginUniversalTemperatureSourceClient.c:9

Перекрестные ссылки m_RootWidget и MAX_SIMULTANEOUS_UTS.

Используется в RequestUniversalTemperatureSources().

◆ Event_OnClick()

void Event_OnClick ( )
inlineprivate
117 {
118 if ( !IsMouseInScene() || !m_IsOpen )
119 {
120 return;
121 }
122
123 // Direction Vector from current active Camera
124 vector dir = GetGame().GetPointerDirection();
125
126 // Raycast from
127 vector from = FreeDebugCamera.GetInstance().GetPosition();
128 // Raycast to
129 vector to = from + ( dir * 10000 );
130 // Raycast out parameter
135 bool selected = false;
136
138 {
139 for ( int i = 0; i < objects.Count(); ++i )
140 {
141 Object obj = objects.Get(i);
142
143 if ( obj.IsInherited( EntityAI ) )
144 {
145 SceneObject sc_object = SceneObject.Cast( m_SceneData.GetSceneObjectByEntityAI(EntityAI.Cast( obj ) ) );
146
147 if ( sc_object == NULL )
148 {
149 //sc_object = m_SceneData.AddObject(obj);
150 return;
151 }
152
154 selected = true;
155
156 break;
157 }
158 }
159 }
160
161 if ( !selected )
162 {
164
165 // Ruler
167 {
169 }
170 }
171
172 EditorUpdate();
173 }
Definition DayZPhysics.c:124
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.
Definition ObjectTyped.c:2
static bool m_IsOpen
Definition PluginCameraTools.c:4
void SelectObject(SceneObject obj)
Definition PluginSceneManager.c:474
void RulerAddPoint()
Definition PluginSceneManager.c:937
bool IsRulerActivated()
Definition PluginSceneManager.c:929
bool IsMouseInScene()
Definition PluginSceneManager.c:1227

Перекрестные ссылки GetGame() и DayZPhysics::RaycastRV().

◆ Event_OnClickMiddle()

void Event_OnClickMiddle ( )
inlineprivate
179 {
180 if ( !IsMouseInScene() || !m_IsOpen )
181 {
182 return;
183 }
184
185 if ( GetSelectedSceneObject() != NULL )
186 {
187 // Direction Vector from current active Camera
188 vector dir = GetGame().GetPointerDirection();
189
190 // Raycast from
191 vector from = FreeDebugCamera.GetInstance().GetPosition();
192 // Raycast to
193 vector to = from + ( dir * 10000 );
194 // Raycast out parameter
199 bool selected = false;
200
202 {
203 for ( int i = 0; i < objects.Count(); ++i )
204 {
205 Object obj = objects.Get(i);
206
207 if ( obj.IsInherited( EntityAI ) )
208 {
209 EntityAI eai = EntityAI.Cast( obj );
210 SceneObject scene_object = m_SceneData.GetSceneObjectByEntityAI(eai);
211
212 if ( !scene_object.IsPlayer() )
213 {
215 {
217 {
219 }
220 else
221 {
223 }
224 }
225 }
226 else
227 {
228 SceneEditorMenuCmdPopup("I am sorry. You cant create link on player!");
229 }
230 }
231 }
232 }
233 }
234
235 EditorUpdate();
236 }
void LinkSceneObjects(SceneObject scene_object1, SceneObject scene_object2)
Definition PluginSceneManager.c:671

Перекрестные ссылки GetGame() и DayZPhysics::RaycastRV().

◆ Event_OnDoubleClick()

SceneObject Event_OnDoubleClick ( )
inlineprivate
277 {
278 if ( !IsMouseInScene() || !m_IsOpen || m_ClassBrowserSelected == "" )
279 {
280 return null;
281 }
282
283 // Direction Vector from current active Camera
284 vector dir = GetGame().GetPointerDirection();
285
286 // Raycast from
287 vector from = FreeDebugCamera.GetInstance().GetPosition();
288 // Raycast to
289 vector to = from + ( dir * 10000 );
290 // Raycast out parameter
294
296 {
298
299 if ( obj != NULL )
300 {
301 SelectObject(obj);
302 return obj;
303 }
304 }
305
306 return NULL;
307 }
string m_ClassBrowserSelected
Definition PluginSceneManager.c:1131

Перекрестные ссылки GetGame() и DayZPhysics::RaycastRV().

◆ Event_OnDrag()

void Event_OnDrag ( )
inlineprivate
242 {
243 if ( !IsMouseInScene() || !m_IsOpen )
244 {
245 return;
246 }
247
248 if ( GetSelectedSceneObject() != NULL )
249 {
250 // Direction Vector from current active Camera
251 vector dir = GetGame().GetPointerDirection();
252
253 // Raycast from
254 vector from = FreeDebugCamera.GetInstance().GetPosition();
255 // Raycast to
256 vector to = from + ( dir * 10000 );
257 // Raycast out parameter
261
262 //Raycast(vector begPos, vector endPos, out vector contactPos, out vector contactDir, out int contactComponent, out set<Object> results = NULL, Object with = NULL, Object ignore = NULL, bool sorted = false, bool ground_only = false, int iType = ObjIntersectView, float radius = 0.0);
263
265 {
267 }
268
269 EditorUpdate();
270 }
271 }
void SetPosition(vector pos)
Definition SceneObject.c:402

Перекрестные ссылки GetGame() и DayZPhysics::RaycastRV().

◆ ExecuteEnforceScript()

void ExecuteEnforceScript ( int index,
SceneObject scene_object,
string script )
inlineprivate
899 {
900 if ( script != "" )
901 {
902 string cls = scene_object.GetObject().ClassName();
903 string wrapped_script = "void scMngMain() \n{\n PluginSceneManager se = GetPlugin(Type(\"PluginSceneManager\")); \n SceneObject this_obj = se.GetSceneObjectByIndex(" + index.ToString() + "); \n " + cls + " this_eai = this_obj.GetObject(); \n " + script + "\n}\n";
904
905 GetGame().ExecuteEnforceScript(wrapped_script, "scMngMain");
906 }
907 }

Перекрестные ссылки GetGame().

◆ ExecuteInitScripts()

void ExecuteInitScripts ( )
inlineprivate
356 {
358 for ( int i = 0; i < scene_objects.Count(); i++ )
359 {
361 ExecuteEnforceScript( i, scene_object, scene_object.GetInitScript() );
362 }
363 }
void ExecuteEnforceScript(int index, SceneObject scene_object, string script)
Definition PluginSceneManager.c:898

◆ FileDelete()

static bool FileDelete ( string file)
inlinestaticprivate
9 {
10 return DeleteFile(file);
11 }
proto native bool DeleteFile(string name)
delete file. Works only on "$profile:" and "$saves:" locations

Перекрестные ссылки DeleteFile().

◆ FileDuplicate()

static bool FileDuplicate ( string source_name,
string dest_name )
inlinestaticprivate
4 {
6 }
proto native bool CopyFile(string sourceName, string destName)
copy file. destName must be "$profile:" or "$saves:" location

Перекрестные ссылки CopyFile().

◆ FileRename()

static void FileRename ( string source_name,
string dest_name )
inlinestaticprivate
14 {
17 }
static bool FileDuplicate(string source_name, string dest_name)
Definition PluginFileHandler.c:3
static bool FileDelete(string file)
Definition PluginFileHandler.c:8

◆ FreeCameraControlDisable()

void FreeCameraControlDisable ( )
inlineprivate
425 {
426 // Disable Camera control
427 GetGame().GetInput().ChangeGameFocus(1);
428
429 // Enable Cursor
430 GetGame().GetUIManager().ShowUICursor(true);
431
432 if( GetGame().GetUIManager().GetMenu() )
433 GetGame().GetUIManager().GetMenu().OnShow();
434 }

Перекрестные ссылки GetGame().

◆ FreeCameraControlEnable()

void FreeCameraControlEnable ( )
inlineprivate
410 {
411 // Enable Camera control
412 GetGame().GetInput().ChangeGameFocus(-1);
413
414 // Disable Cursor
415 GetGame().GetUIManager().ShowUICursor(false);
416
417 if( GetGame().GetUIManager().GetMenu() )
418 GetGame().GetUIManager().GetMenu().OnHide();
419 }

Перекрестные ссылки GetGame().

◆ GatherPlayerInfo()

void GatherPlayerInfo ( )
inlineprivate
40 {
42 GetGame().GetPlayers(players);
43 m_PlayerDebugStats.Clear();
44
45 foreach (Man playerMan : players)
46 {
49 m_PlayerDebugStats.Insert(rpd);
50 }
51 }
void RemotePlayerStatDebug(PlayerBase player)
Definition RemotePlayerStatDebug.c:16
ref array< ref RemotePlayerStatDebug > m_PlayerDebugStats
Definition PluginRemotePlayerDebugServer.c:5

Перекрестные ссылки GetGame(), m_PlayerDebugStats и RemotePlayerStatDebug().

◆ GatherTemperatureSources()

void GatherTemperatureSources ( PlayerBase player)
inlineprotected
32 {
34
35 if (!player)
36 return;
37
38 vector playerPos = player.GetPosition();
40
41 GetGame().GetObjectsAtPosition(playerPos, LOOKUP_RADIUS, nearestObjects, null);
42
45
47 {
49 if (ent && ent.IsUniversalTemperatureSource() && ent != player)
50 {
51 uts = ent.GetUniversalTemperatureSource();
53 utsd.AddHeader(ent.GetType());
54 utsd.Add("position", uts.GetPosition().ToString(false));
55 utsd.Add("fullrange", uts.GetFullRange().ToString());
56 utsd.Add("maxrange", uts.GetMaxRange().ToString());
57 utsd.Add("temperatureCap", uts.GetTemperatureCap().ToString());
58 utsd.Add("temperatureRaw", uts.GetTemperatureRaw().ToString());
59 utsd.Commit();
60
62 }
63 }
64
65 if (player.GetItemInHands() && player.GetItemInHands().IsUniversalTemperatureSource())
66 {
67 uts = player.GetItemInHands().GetUniversalTemperatureSource();
69 utsd.AddHeader(player.GetItemInHands().GetType());
70 utsd.Add("position", uts.GetPosition().ToString(false));
71 utsd.Add("fullrange", uts.GetFullRange().ToString());
72 utsd.Add("maxrange", uts.GetMaxRange().ToString());
73 utsd.Add("temperatureCap", uts.GetTemperatureCap().ToString());
74 utsd.Add("temperatureRaw", uts.GetTemperatureRaw().ToString());
75 utsd.Commit();
76
78 }
79 }
const float LOOKUP_RADIUS
[s]
Definition PluginUniversalTemperatureSourceServer.c:4

Перекрестные ссылки GetGame().

Используется в SendDebug().

◆ GetAgentAntiboticsResistance()

float GetAgentAntiboticsResistance ( int agent_id)
inlineprotected
116 {
117 if( !m_AgentList.Get(agent_id) ) return 0;
118 return m_AgentList.Get(agent_id).GetAntiboticsResistance();
119 }

◆ GetAgentAntiboticsResistanceEx()

float GetAgentAntiboticsResistanceEx ( int agent_id,
PlayerBase player )
inlineprotected
123 {
124 if( !m_AgentList.Get(agent_id) ) return 0;
125 return m_AgentList.Get(agent_id).GetAntibioticsResistanceEx(player);
126 }

◆ GetAgentDieOffSpeedEx()

float GetAgentDieOffSpeedEx ( int agent_id,
PlayerBase player )
inlineprotected
95 {
96 if( !m_AgentList.Get(agent_id) ) return true;
97 return m_AgentList.Get(agent_id).GetDieOffSpeedEx(player);
98 }

◆ GetAgentDigestibility()

float GetAgentDigestibility ( int agent_id)
inlineprotected
154 {
155 if( !m_AgentList.Get(agent_id) )
156 return 0;
157 return m_AgentList.Get(agent_id).GetDigestibility();
158 }

◆ GetAgentInvasibility()

float GetAgentInvasibility ( int agent_id)
inlineprotected
146 {
147 if( !m_AgentList.Get(agent_id) )
148 return 0;
149 return m_AgentList.Get(agent_id).GetInvasibility();
150 }

◆ GetAgentInvasibilityEx()

float GetAgentInvasibilityEx ( int agent_id,
PlayerBase player )
inlineprotected
107 {
108 if( !m_AgentList.Get(agent_id) ) return true;
109 return m_AgentList.Get(agent_id).GetInvasibilityEx(player);
110 }

◆ GetAgentList()

map< int, ref AgentBase > GetAgentList ( )
inlineprivate
48 {
49 return m_AgentList;
50 }

Перекрестные ссылки m_AgentList.

◆ GetAgentMaxCount()

static int GetAgentMaxCount ( int agent_id)
inlinestaticprotected
175 {
176 if( !m_AgentList.Get(agent_id) ) return 0;
177 return m_AgentList.Get(agent_id).GetMaxCount();
178 }

◆ GetAgentPotencyEx()

EStatLevels GetAgentPotencyEx ( int agent_id,
PlayerBase player )
inlineprotected
101 {
102 if( !m_AgentList.Get(agent_id) ) return true;
103 return m_AgentList.Get(agent_id).GetPotencyEx(player);
104 }

◆ GetAgentTransferabilityAirOut()

float GetAgentTransferabilityAirOut ( int agent_id)
inlineprotected
135 {
136 if(!m_AgentList.Get(agent_id)) return 0;
137 return m_AgentList.Get(agent_id).GetTransferabilityAirOut();
138 }

Используется в CalculateAgentsToTransmit() и DetermineChanceToTransmit().

◆ GetAgentTransferabilityIn()

float GetAgentTransferabilityIn ( int agent_id)
inlineprotected
80 {
81 if( !m_AgentList.Get(agent_id) ) return 0;
82 return m_AgentList.Get(agent_id).GetTransferabilityIn();
83 }

Используется в CalculateAgentsToTransmit() и DetermineChanceToTransmit().

◆ GetAgentTransferabilityOut()

float GetAgentTransferabilityOut ( int agent_id)
inlineprotected
129 {
130 if(!m_AgentList.Get(agent_id)) return 0;
131 return m_AgentList.Get(agent_id).GetTransferabilityOut();
132 }

Используется в CalculateAgentsToTransmit() и DetermineChanceToTransmit().

◆ GetBaseClasses()

string GetBaseClasses ( string path,
string item )
inlineprivate
539 {
540 string adjustedPath = path;
541 bool run = true;
543 resultArr.Insert(item);
544 while (run)
545 {
546 //Print("checking for path:'" + adjustedPath +"'");
547 string baseClass = "";
548 run = GetGame().ConfigGetBaseName( adjustedPath, baseClass );
549 if (baseClass)
550 {
552 adjustedPath.Split(" ",strs);
553 strs.Remove(strs.Count() - 1);
554 strs.Insert(baseClass);
555
556 adjustedPath = string.Join(" ", strs);
557 resultArr.Insert(baseClass);
558 if (adjustedPath == path)
559 break;
560 }
561
562 }
563 string result;
564 resultArr.Invert();
565 foreach (int i, string str: resultArr)
566 {
567 if (i != 0)
568 result += " >> " + str;
569 else
570 result += str;
571 }
572
573 return result;
574 }
string path
Definition OptionSelectorMultistate.c:142
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
Definition IsBoxCollidingGeometryProxyClasses.c:28
array< string > TStringArray
Definition EnScript.c:685

Перекрестные ссылки GetGame() и path.

◆ GetBaseClassPath()

string GetBaseClassPath ( string config_class_path,
string class_path,
string config_class )
inlineprivate
47 {
48 if ( class_path == "" )
49 {
50 return "";
51 }
52
53 int start = config_class_path.Length();
54 int count = class_path.Length() - start;
56
58 GetGame().ConfigGetFullPath( config_class_path, full_path );
59
60 if ( full_path.Count() > 1 && class_path_without_config_class != "" )
61 {
63 }
64 else
65 {
66 return "";
67 }
68 }
string GetBaseClassPathRecursive(string config_class_path, string class_path, string config_class)
Definition PluginConfigViewer.c:92
string GetOnlyChildPath(string config_class_path, string class_path)
Definition PluginConfigViewer.c:28

Перекрестные ссылки GetBaseClassPathRecursive(), GetGame() и GetOnlyChildPath().

Используется в GetConfigRecursive().

◆ GetBaseClassPathCombined()

string GetBaseClassPathCombined ( string child_path,
string base_class )
inlineprivate
71 {
72 int current = -1;
73 int last = 0;
74
75 while ( true )
76 {
77 current = child_path.IndexOfFrom(last, " " );
78 if ( current > -1 )
79 {
80 last = current+1;
81 }
82 else
83 {
84 break;
85 }
86 }
87
88 string result = child_path.Substring(0, last ) + base_class;
89 return result;
90 }

Используется в GetConfigRecursive().

◆ GetBaseClassPathRecursive()

string GetBaseClassPathRecursive ( string config_class_path,
string class_path,
string config_class )
inlineprivate
93 {
95 {
96 return config_class_path + " " + class_path;
97 }
98 else
99 {
101 GetGame().ConfigGetFullPath( config_class_path, full_path );
102
103 if ( full_path.Count() > 1 )
104 {
106 }
107 else
108 {
109 return "";
110 }
111 }
112 }

Перекрестные ссылки ContainsFirstClass(), GetBaseClassPathRecursive() и GetGame().

Используется в GetBaseClassPath() и GetBaseClassPathRecursive().

◆ GetConfig()

TStringArray GetConfig ( string class_path,
string filter_char )
inlineprivate
321 {
322 int i;
324
325 if ( class_path != "" )
326 {
328
330 class_path.Split( " ", path_nodes );
331
332 if ( path_nodes.Count() >= 3 )
333 {
334 string c_class_path = path_nodes.Get(0) + " " + path_nodes.Get(1) + " " + path_nodes.Get(2);
335
337 string config_class = path_nodes.Get( 1 );
338 string class_name = path_nodes.Get( 2 );
339
341
346 string tabs = MakeTabs( 1 );
347 string tabs_inherited = MakeTabs( 1, true );
348 string check_tabs = MakeTabs( path_nodes.Count() - 1, true );
349
350 nested_start.Insert( ":!" );
351 nested_end.Insert( ":#" );
352 nested_inherited_start.Insert( ":!" );
353 nested_inherited_end.Insert( ":#" );
354
355 string last_node = filter_char + MakeTabs( nested_start.Count() ) + "!";
356
357 if ( path_nodes.Count() == 3 )
358 {
359 last_node = filter_char + MakeTabs( 1 ) + "!";
360 }
361 else
362 {
363 for ( i = 1; i < path_nodes.Count() - 2; i++ )
364 {
365 tabs = MakeTabs( i );
366 tabs_inherited = MakeTabs( i, true );
367
368 string path_node = path_nodes.Get(i+2);
369 path_node.ToLower( );
370
371 nested_start.Insert( ":" + tabs + "!" + path_node );
372 nested_end.Insert( ":" + tabs + "#" + path_node );
373 nested_inherited_start.Insert( ":" + tabs_inherited + "!" + path_node );
374 nested_inherited_end.Insert( ":" + tabs_inherited + "#" + path_node );
375 }
376
377 last_node = filter_char + MakeTabs( i ) + "!";
378 }
379
380 int current_nest = 0;
381
382 for ( i = 0; i < result.Count(); i++ )
383 {
384 string current = result.Get( i );
385 string current_lower = current;
386 current_lower.ToLower( );
387
388 int len_current = current.Length();
389
390 if ( current_nest < nested_start.Count() )
391 {
392 int len_start = nested_start.Get(current_nest).Length();
393
394 if ( len_current >= len_start )
395 {
397
398 if ( current_nest == 0 )
399 {
400 prefix_start = current_lower.Substring( 0, len_start );
401 }
402
404 {
405 current_nest++;
406 continue;
407 }
408 }
409 }
410
411 if ( current_nest >= 1 )
412 {
413 int len_end = nested_end.Get(current_nest - 1).Length();
414
415 if ( len_current >= len_end )
416 {
417 string prefix_end = current_lower;
418
419 if ( current_nest == 0 )
420 {
421 prefix_start = current_lower.Substring( 0, len_start );
422 }
423
425 {
426 current_nest--;
427 }
428 }
429 }
430
431 if ( current_nest == nested_start.Count() )
432 {
433 string first_char = current.Substring( 0, 1 );
434
435 if ( first_char == filter_char )
436 {
437 int bang_pos = current.IndexOf( "!" );
438
439 if ( bang_pos > -1 )
440 {
441 int len_last_node = last_node.Length();
442
443 if ( len_current >= len_last_node )
444 {
445 string prefix_current = current_lower.Substring( 0, len_last_node );
446
447 if ( last_node == prefix_current )
448 {
449 filtered.Insert( current.Substring(bang_pos + 1, current.Length() - (bang_pos + 1)) );
450 }
451 }
452 }
453 }
454 }
455 }
456
458
460
461 for ( i = 0; i < filtered.Count(); i++ )
462 {
463 string c = filtered.Get( i );
464 string lower_c = c;
465 lower_c.ToLower();
466
467 if ( without_duplications.Find(lower_c) < 0 )
468 {
470
471 if ( lower_c != c )
472 {
473 lowered.Set( lower_c, c );
474 }
475 }
476 }
477
478 module_dev.SortStringArray( without_duplications );
479
480 for ( i = 0; i < without_duplications.Count(); i++ )
481 {
482 string cc = without_duplications.Get( i );
483
484 if ( lowered.Contains(cc) )
485 {
486 cc = lowered.Get( cc );
487 }
488
489 int tilda_index = cc.IndexOf( "~" );
490 if ( tilda_index > -1 )
491 {
492 string spaces = " ";
493 if ( cc.IndexOf( "~}" ) > -1 )
494 {
495 spaces = "";
496 }
497 cc = spaces + cc.Substring(tilda_index + 1, cc.Length() - (tilda_index + 1) );
498 }
499
500 without_duplications.Set( i, cc );
501 }
502
504 }
505 else if ( filter_char == ":" )
506 {
507 int cnt_config = GetGame().ConfigGetChildrenCount( class_path );
508
509 for ( i = 0; i < cnt_config; i++ )
510 {
511 string config_name = "";
512 GetGame().ConfigGetChildName( class_path, i, config_name );
513 filtered.Insert( config_name );
514 }
515
516 module_dev.SortStringArray( filtered );
517 }
518 }
519 else if ( filter_char == ":" )
520 {
521 filtered.Insert( "configfile" );
522 filtered.Insert( "missionconfigfile" );
523 }
524
525 return filtered;
526 }
class OptionSelectorMultistate extends OptionSelector class_name
PluginBase GetPlugin(typename plugin_type)
Definition PluginManager.c:316
string MakeTabs(int count, bool inheritance=false)
Definition PluginConfigViewer.c:7
void PluginDeveloper()
Definition PluginDeveloper.c:49
TStringArray GetConfigRecursive(string path, string name, string config_class_path, string config_class, local array< string > overridden, int depth=0, local bool check_base_class_of_class=false)
Definition PluginConfigViewer.c:153

Перекрестные ссылки class_name, GetConfigRecursive(), GetGame(), GetPlugin() и MakeTabs().

Используется в GetConfigHierarchy() и GetConfigVariables().

◆ GetConfigHierarchy()

TStringArray GetConfigHierarchy ( string class_path)
inlineprivate
534 {
535 return GetConfig( class_path, ":" );
536 }
TStringArray GetConfig(string class_path, string filter_char)
Definition PluginConfigViewer.c:320

Перекрестные ссылки GetConfig().

◆ GetConfigRecursive()

TStringArray GetConfigRecursive ( string path,
string name,
string config_class_path,
string config_class,
local array< string > overridden,
int depth = 0,
local bool check_base_class_of_class = false )
inlineprivate
154 {
155 string tabs = MakeTabs( depth + 1 );
156 string child_path = path;
157 int count = GetGame().ConfigGetChildrenCount( child_path );
158 int i = 0;
159
160 bool name_printed = false;
161
163
164 for ( i = 0; i < count; i++ )
165 {
166 string child_name = "";
167 GetGame().ConfigGetChildName( child_path, i, child_name );
168 string c_child_path = child_path + " " + child_name;
169
171 child_name_lower.ToLower();
172
173 if ( overridden.Find(child_name_lower) == -1 )
174 {
175 if ( !name_printed )
176 {
177 result.Insert( ":" + MakeTabs(depth, check_base_class_of_class) + "!" + name );
178 name_printed = true;
179 }
181
182 int type = GetGame().ConfigGetType( c_child_path );
183
184 if ( type != CT_CLASS )
185 {
186 if ( type != CT_ARRAY )
187 {
188 result.Insert( "-" + tabs + "!" + child_name + " = " + GetGame().ConfigGetTextOut(c_child_path) );
189 }
190 else
191 {
192 result.Insert( "-" + tabs + "!" + child_name + "[] = {" );
193
195 GetGame().ConfigGetTextArray( c_child_path, strs );
196 string tabs_array = MakeTabs( depth + 2 );
197 int j;
198 for ( j = 0; j < strs.Count(); j++ )
199 {
200 result.Insert( "-" + tabs + "!" + child_name + "[]" + j.ToStringLen(6) + "~" + strs.Get(j) + "," );
201 }
202
203 result.Insert( "-" + tabs + "!" + child_name + "[]" + j.ToStringLen(6) + "~}" );
204 }
205 }
206 else
207 {
209
210 if ( GetGame().ConfigGetChildrenCount(c_child_path) > 0 )
211 {
213 result.InsertAll( config1 );
214 }
215 else
216 {
217 result.Insert( ":" + tabs + "!" + child_name );
218 }
219
222 string c_child_name = child_name;
223
224 int cc = 0;
225
226 while ( true )
227 {
228 string base_class = "";
229
230 GetGame().ConfigGetBaseName( cc_child_path, base_class );
231
232 int start = c_config_class_path.Length() + 1;
233 int len = cc_child_path.Length();
234 len -= c_config_class_path.Length() + c_child_name.Length();
235 len -= 2;
236
237 if ( base_class != "" )
238 {
239 string only_child_path = "";
240 if ( len < 0 )
241 {
243 }
244 else
245 {
246 only_child_path = cc_child_path.Substring( start, len ) + " " + base_class;
247 }
248
251
252 if ( base_class_path != "" )
253 {
255 result.InsertAll( config2 );
256 }
257 else
258 {
260 result.InsertAll( config3 );
261
262 break;
263 }
264
267 c_config_class_path = cc_child_path.Substring( 0, cc_child_path.Length() - only_child_path.Length() - 1);
268 }
269 else
270 {
271 break;
272 }
273 }
274 }
275 }
276 }
277
278 if ( name_printed )
279 {
280 result.Insert( ":" + MakeTabs(depth, check_base_class_of_class) + "#" + name );
281 }
282
284 {
286 GetGame().ConfigGetFullPath( child_path, full_path );
287
288 if ( full_path.Count() > 1 )
289 {
291 result.InsertAll( config4 );
292 }
293 }
294 else
295 {
296 string class_base_class = "";
297 GetGame().ConfigGetBaseName( child_path, class_base_class );
298
299 if ( class_base_class != "" )
300 {
303
304 if ( cc_base_child_path != "" )
305 {
307 result.InsertAll( config5 );
308 }
309 else
310 {
312 result.InsertAll( config6 );
313 }
314 }
315 }
316
317 return result;
318 }
string GetBaseClassPathCombined(string child_path, string base_class)
Definition PluginConfigViewer.c:70
string GetBaseClassPath(string config_class_path, string class_path, string config_class)
Definition PluginConfigViewer.c:46

Перекрестные ссылки GetBaseClassPath(), GetBaseClassPathCombined(), GetConfigRecursive(), GetGame(), MakeTabs(), name и path.

Используется в GetConfig() и GetConfigRecursive().

◆ GetConfigVariables()

TStringArray GetConfigVariables ( string class_path)
inlineprivate
529 {
530 return GetConfig( class_path, "-" );
531 }

Перекрестные ссылки GetConfig().

◆ GetDieOffSpeed()

float GetDieOffSpeed ( int agent_id)
inlineprotected
161 {
162 if( !m_AgentList.Get(agent_id) )
163 return 0;
164 return m_AgentList.Get(agent_id).GetDieOffSpeed();
165 }

◆ GetDrawSelection()

bool GetDrawSelection ( )
inlineprivate
715 {
716 return m_ModuleConfigDebugProfile.GetSceneEditorDrawSelection();
717 }
PluginConfigDebugProfile m_ModuleConfigDebugProfile
Definition PluginSceneManager.c:1119

◆ GetFileContent()

TStringArray GetFileContent ( )
inlineprivate
151 {
152 return m_FileContent;
153 }

◆ GetFileName()

string GetFileName ( )
inlineprivate
43 {
44 return string.Empty;
45 }

Перекрестные ссылки string::Empty.

◆ GetHealthZonesSynched()

ref array< ref SyncedValue > GetHealthZonesSynched ( )
inlineprotected
527 {
529 }
ref array< ref SyncedValue > m_TargetHealthSynced
Definition PluginDeveloperSync.c:39

Перекрестные ссылки m_TargetHealthSynced.

◆ GetHitMessage()

string GetHitMessage ( TotalDamageResult damageResult,
int component,
string zone,
string ammo )
inlineprotected
104 {
105 if ( damageResult )
106 {
107 float dmg = damageResult.GetHighestDamage("Health");
108 return " into " + zone + "(" + component.ToString() + ") for " + dmg.ToString() + " damage (" + ammo + ")";
109 }
110 else // block
111 {
112 return " into Block" + "(" + component.ToString() + ") for 0 damage ";
113 }
114 }
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.

Перекрестные ссылки component.

Используется в PlayerHitBy().

◆ GetID()

int GetID ( string name)
inlineprivate
33 {
34 return m_Variables.GetKeyByValue(name);
35 }
ref map< int, string > m_Variables
Definition PluginVariables.c:25

Перекрестные ссылки name.

◆ GetInstance() [1/3]

static PluginCameraTools GetInstance ( )
inlinestaticprotected
12 {
13 return m_Instance;
14 }
static PluginCameraTools m_Instance
Definition PluginCameraTools.c:3

Перекрестные ссылки m_Instance.

◆ GetInstance() [2/3]

static PluginDeveloper GetInstance ( )
inlinestaticprotected
9 {
11 }

Перекрестные ссылки GetPlugin().

◆ GetInstance() [3/3]

static PluginSceneManager GetInstance ( )
inlinestaticprivate
39 {
41 }
void PluginSceneManager()
Definition PluginSceneManager.c:21

Перекрестные ссылки GetPlugin().

◆ GetIsTargetChanged()

bool GetIsTargetChanged ( )
inlineprotected
532 {
533 return m_IsTargetChanged;
534 }
bool m_IsTargetChanged
Definition PluginDeveloperSync.c:41

Перекрестные ссылки m_IsTargetChanged.

◆ GetKeyBindings()

array< ref KeyBinding > GetKeyBindings ( )
inlineprivate
265 {
266 return m_KeyBindings;
267 }
ref array< ref KeyBinding > m_KeyBindings
Definition PluginKeyBinding.c:281

◆ GetKitRepairCost()

float GetKitRepairCost ( ItemBase repair_kit,
Object item )
inlineprivate
144 {
147
148 item.ConfigGetIntArray("repairableWithKits", allowedRepairKitTypes);
149 item.ConfigGetFloatArray("repairCosts", repairKitCosts);
150
151 int repairKitType = repair_kit.ConfigGetInt("repairKitType");
152
153 foreach (int i, int allowedKitType : allowedRepairKitTypes)
154 {
156 {
157 return repairKitCosts.Get(i);
158 }
159 }
160
161 return 0;
162 }

◆ GetLoadedScene()

SceneData GetLoadedScene ( )
inlineprivate
978 {
979 return m_SceneData;
980 }

◆ GetLoadPlayerPos()

bool GetLoadPlayerPos ( )
inlineprivate
731 {
732 return m_ModuleConfigDebugProfile.GetSceneEditorLoadPlayerPos();
733 }

◆ GetModuleName()

string GetModuleName ( )
inlineprivate
16 {
17 return ClassName();
18 }

Используется в GetModuleType() и Log().

◆ GetModuleType()

GetModuleType ( )
inlineprivate
21 {
22 return GetModuleName().ToType();
23 }
string GetModuleName()
Definition PluginBase.c:15
proto native ToType()
Returns internal type representation. Can be used in runtime, or cached in variables and used for fas...

Перекрестные ссылки GetModuleName() и string::ToType().

◆ GetMouseBindings()

array< ref MouseBinding > GetMouseBindings ( )
inlineprivate
273 {
274 return m_MouseBindings;
275 }
ref array< ref MouseBinding > m_MouseBindings
Definition PluginKeyBinding.c:283

◆ GetMouseButtonInfo()

MouseButtonInfo GetMouseButtonInfo ( int button)
inlineprotected
358 {
359 for ( int i = 0; i < m_MouseButtons.Count(); ++i )
360 {
362
363 if ( info.GetButtonID() == button )
364 {
365 return info;
366 }
367 }
368 return NULL;
369 }
Definition MouseButtonInfo.c:2
ref array< ref MouseButtonInfo > m_MouseButtons
Definition PluginKeyBinding.c:282

◆ GetMousePositionInScene()

vector GetMousePositionInScene ( )
inlineprivate
1264 {
1265 vector dir = GetGame().GetPointerDirection();
1266 vector from = FreeDebugCamera.GetInstance().GetPosition();
1267 vector to = from + ( dir * 10000 );
1271
1273 {
1274 return contact_pos;
1275 }
1276
1277 return "0 0 0";
1278 }

Перекрестные ссылки GetGame() и DayZPhysics::RaycastRV().

◆ GetName()

string GetName ( int id)
inlineprivate
28 {
29 return m_Variables.Get(id);
30 }

◆ GetNameByID()

static string GetNameByID ( int agent_id)
inlinestaticprivate
63 {
64 return m_AgentList.Get(agent_id).GetName();
65 }

◆ GetOnlyChildPath()

string GetOnlyChildPath ( string config_class_path,
string class_path )
inlineprivate
29 {
31 int class_path_len = class_path.Length();
32
34 {
37
38 return class_path.Substring(start, count).Trim();
39 }
40 else
41 {
42 return "";
43 }
44 }

Используется в GetBaseClassPath().

◆ GetPlantMaterial()

PlantMaterialHealth GetPlantMaterial ( string plant_type)
inlineprivate
108 {
109 if ( m_PlantMaterials.Contains(plant_type) )
110 {
111 return m_PlantMaterials.Get(plant_type);
112 }
113
114 return NULL;
115 }
ref map< string, ref PlantMaterialHealth > m_PlantMaterials
Definition PluginHorticulture.c:3

◆ GetPlantType()

string GetPlantType ( Object obj)
inlineprivate
75 {
76 string seed_type = obj.GetType();
77
78 string plant_type = "";
79 GetGame().ConfigGetText( "cfgVehicles " + seed_type + " Horticulture PlantType", plant_type );
80
81 return plant_type;
82 }

Перекрестные ссылки GetGame().

◆ GetPlayerListTimer()

static int GetPlayerListTimer ( )
inlinestaticprotected
31 {
32 return 300; // seconds
33 }

◆ GetPlayerPrefix()

string GetPlayerPrefix ( PlayerBase player,
PlayerIdentity identity )
inlineprotected
68 {
69
70 m_Position = player.GetPosition();
72
73 for ( int i = 0; i < 3; i++ ) // trim position precision
74 {
76 if ( m_DotIndex != -1 )
77 {
79 }
80 }
81
82 if ( identity ) // return partial message even if it fails to fetch identity
83 {
84 //return "Player \"" + "Unknown/Dead Entity" + "\" (id=" + "Unknown" + " pos=<" + m_PosArray[0] + ", " + m_PosArray[1] + ", " + m_PosArray[2] + ">)";
85 m_PlayerName = "\"" + identity.GetName() + "\"";
86 m_Pid = identity.GetId();
87 }
88 else
89 {
90 m_PlayerName = "\"" + player.GetCachedName() + "\"";
91 m_Pid = player.GetCachedID();
92 }
93
94
95 if ( !player.IsAlive() )
96 {
97 m_PlayerName = m_PlayerName + " (DEAD)";
98 }
99
100 return "Player " + m_PlayerName + " (id=" + m_Pid + " pos=<" + m_PosArray[0] + ", " + m_PosArray[1] + ", " + m_PosArray[2] + ">)";
101 }
string m_PosArray[3]
Definition PluginAdminLog.c:15
string m_Pid
Definition PluginAdminLog.c:4
int m_DotIndex
Definition PluginAdminLog.c:16
vector m_Position
Definition PluginAdminLog.c:5
string m_PlayerName
Definition PluginAdminLog.c:3
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.

Перекрестные ссылки string::IndexOf(), m_Position, string::Substring() и vector::ToString().

Используется в BleedingOut(), OnContinouousAction(), OnPlacementComplete(), PlayerHitBy(), PlayerKilled(), PlayerList(), PlayerTeleportedLog(), Suicide(), TotemFlagChange(), UnconStart() и UnconStop().

◆ GetPotency()

EStatLevels GetPotency ( int agent_id)
inlineprotected
168 {
169 if( !m_AgentList.Get(agent_id) )
170 return 0;
171 return m_AgentList.Get(agent_id).GetPotency();
172 }

◆ GetProtectionLevel()

float GetProtectionLevel ( int type,
int slot,
Man player )
inlineprotected
369 {
370 return GetProtectionLevelEx(type, slot, player);
371 }
static float GetProtectionLevelEx(int type, int slot, Man player, bool consider_filter=true, int system=0)
Definition PluginTransmissionAgents.c:357

Перекрестные ссылки GetProtectionLevelEx().

Используется в TransmitAgentsEx().

◆ GetProtectionLevelEx()

static float GetProtectionLevelEx ( int type,
int slot,
Man player,
bool consider_filter = true,
int system = 0 )
inlinestaticprotected
358 {
359 ItemBase attachment = ItemBase.Cast(player.GetInventory().FindAttachment(slot));
360
361 if(!attachment)
362 return 0;
363
364 return attachment.GetProtectionLevel(type, consider_filter, system);
365
366 }
Definition InventoryItem.c:731

Используется в GetProtectionLevel().

◆ GetRotationAngle()

int GetRotationAngle ( )
inlineprivate
747 {
748 return m_ModuleConfigDebugProfile.GetSceneEditorRotationAngle();
749 }

◆ GetRPCModifierID()

int GetRPCModifierID ( ParamsReadContext ctx)
inlineprotected
409 {
410 Param1<int> p = new Param1<int>( 0 );
411 if ( ctx.Read( p ) )
412 {
413 return p.param1;
414 }
415
416 return 0;
417 }

Используется в OnRPC().

◆ GetRPCModifierLock()

void GetRPCModifierLock ( ParamsReadContext ctx,
out int id,
out bool lock )
inlineprotected
421 {
422 Param2<int, bool> p = new Param2<int, bool>( 0, false );
423 if ( ctx.Read( p ) )
424 {
425 id = p.param1;
426 lock = p.param2;
427 }
428 }

Используется в OnRPC().

◆ GetRPCUpdateState()

bool GetRPCUpdateState ( ParamsReadContext ctx)
inlineprotected
397 {
398 Param1<bool> p = new Param1<bool>( 0 );
399 if ( ctx.Read( p ) )
400 {
401 return p.param1;
402 }
403
404 return false;
405 }

Используется в OnRPC() и OnRPCTemp().

◆ GetSceneList()

TStringArray GetSceneList ( )
inlineprivate
1084 {
1085 return m_ModuleConfigScene.GetSceneList();
1086 }
PluginConfigScene m_ModuleConfigScene
Definition PluginSceneManager.c:1118

◆ GetSceneObjectByEntity()

SceneObject GetSceneObjectByEntity ( EntityAI entity)
inlineprivate
1060 {
1062
1063 if ( scene_objects != NULL )
1064 {
1065 for ( int i = 0; i <= scene_objects.Count(); ++i )
1066 {
1067 SceneObject obj = scene_objects.Get(i);
1068 EntityAI e = obj.GetObject();
1069
1070 if ( e == entity )
1071 {
1072 return obj;
1073 }
1074 }
1075 }
1076
1077 return NULL;
1078 }

Перекрестные ссылки SceneObject::GetObject().

◆ GetSceneObjectByIndex()

SceneObject GetSceneObjectByIndex ( int index)
inlineprivate
1042 {
1044
1045 if ( scene_objects != NULL )
1046 {
1047 if ( index > -1 && index < scene_objects.Count() )
1048 {
1049 return scene_objects.Get( index );
1050 }
1051 }
1052
1053 return NULL;
1054 }

◆ GetSceneObjects()

array< ref SceneObject > GetSceneObjects ( )
inlineprivate
1003 {
1004 if ( m_SceneData )
1005 {
1006 return m_SceneData.GetSceneObjects();
1007 }
1008
1009 return NULL;
1010 }

◆ GetSceneObjectsAll()

array< ref SceneObject > GetSceneObjectsAll ( )
inlineprivate
1029 {
1030 if ( m_SceneData )
1031 {
1032 return m_SceneData.GetSceneObjectsAll();
1033 }
1034
1035 return NULL;
1036 }

◆ GetScenePlayers()

array< ref ScenePlayer > GetScenePlayers ( )
inlineprivate
1016 {
1017 if ( m_SceneData )
1018 {
1019 return m_SceneData.GetScenePlayers();
1020 }
1021
1022 return NULL;
1023 }

◆ GetSelectedSceneObject()

SceneObject GetSelectedSceneObject ( )
inlineprivate
492 {
493 return m_SelectedObject;
494 }

Перекрестные ссылки m_SelectedObject.

◆ GetSelectedSceneObjectIndex()

int GetSelectedSceneObjectIndex ( )
inlineprivate
986 {
988 for ( int i = 0; i < scene_objects.Count(); i++ )
989 {
990 if ( GetSelectedSceneObject() == scene_objects.Get(i) )
991 {
992 return i;
993 }
994 }
995
996 return -1;
997 }

◆ GetSimpleAgentList()

map< int, string > GetSimpleAgentList ( )
inlineprivate
53 {
54 if( !m_IsConstructed )
55 {
57 m_IsConstructed = true;
58 }
59 return m_SimpleAgentList;
60 }
bool m_IsConstructed
Definition PluginTransmissionAgents.c:12
void ConstructSimpleAgentList()
Definition PluginTransmissionAgents.c:33

Перекрестные ссылки ConstructSimpleAgentList() и m_SimpleAgentList.

◆ GetSubFolderName()

string GetSubFolderName ( )
inlineprivate
48 {
49 return string.Empty;
50 }

Перекрестные ссылки string::Empty.

◆ GetSurfaceFertility()

float GetSurfaceFertility ( string surface_type)
inlineprivate
85 {
86 float fertility = 0.8;
87 if ( surface_type == "hlina" || surface_type == "CRGrass1" || surface_type == "CRGrass2" || surface_type == "CRForest1" || surface_type == "CRForest2" || surface_type == "CRGrit1" )
88 {
89 fertility = 0.8;
90 }
91
92 return fertility;
93 }

◆ GetTargetEntity()

EntityAI GetTargetEntity ( )
inlineprotected

utilizes camera position from the CGame

36 {
37 float hitFraction;
38 vector start = GetGame().GetCurrentCameraPosition();
39 vector end = start + (GetGame().GetCurrentCameraDirection() * 5.0);
40
43
44 PhxInteractionLayers hitMask = 0xFFFFFFFFFF;
45
47
48 return EntityAI.Cast(hitObj);
49 }
PhxInteractionLayers
Definition DayZPhysics.c:2
static proto bool RayCastBullet(vector begPos, vector endPos, PhxInteractionLayers layerMask, Object ignoreObj, out Object hitObject, out vector hitPosition, out vector hitNormal, out float hitFraction)
PlayerBase m_pPlayer
Definition PluginTargetTemperature.c:4

Перекрестные ссылки GetGame(), m_pPlayer и DayZPhysics::RayCastBullet().

◆ GetWatching()

bool GetWatching ( )
inlineprivate
35 {
36 return m_Watching;
37 }
bool m_Watching
Definition PluginRemotePlayerDebugServer.c:11

◆ GiveWormsToPlayer()

bool GiveWormsToPlayer ( PlayerBase player,
float chance )
inlineprivate
96 {
97 if ( Math.RandomFloat01() <= chance )
98 {
99 ItemBase item = ItemBase.Cast( player.GetHumanInventory().CreateInInventory("Food_Worm") );
100 item.SetQuantity( 1 );
101 return true;
102 }
103
104 return false;
105 }

Перекрестные ссылки Math::RandomFloat01().

◆ GrowDuringAntibioticsAttack()

bool GrowDuringAntibioticsAttack ( int agent_id,
PlayerBase player )
inlineprotected

DEPRECATED.

439 {
440 if (!m_AgentList.Get(agent_id))
441 return true;
442
443 return m_AgentList.Get(agent_id).GrowDuringMedicalDrugsAttack(EMedicalDrugsType.ANTIBIOTICS, player);
444 }
EMedicalDrugsType
Definition EMedicalDrugsType.c:2

◆ GrowDuringMedicalDrugsAttack()

bool GrowDuringMedicalDrugsAttack ( int agentId,
EMedicalDrugsType drugType,
PlayerBase player )
inlineprotected
86 {
88 if (!agent)
89 return true;
90
91 return agent.GrowDuringMedicalDrugsAttack(drugType, player);
92 }

◆ HandlePresetSpawn()

void HandlePresetSpawn ( PlayerBase player,
string presetName,
EntityAI target )
inlineprotected
190 {
191 #ifdef DEVELOPER
192
194
195 if (target)
196 {
198 }
199 if (!targetPlayer)
200 return;
201
202 targetPlayer.m_PresetSpawned = true;
203 string class_name = presetName + "_Preset";
204 typename type = class_name.ToType();
205
206 if (type)
207 {
208 PresetSpawnBase presetObj = PresetSpawnBase.Cast(type.Spawn());
209
210 if (presetObj)
211 {
213 }
214 }
215
216 #endif
217 }

Перекрестные ссылки class_name.

Используется в OnRPC().

◆ HandleSetTime()

void HandleSetTime ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected
173 {
174 #ifdef DEVELOPER
176 if (ctx.Read(p5))
177 {
178 int year = p5.param1;
179 int month = p5.param2;
180 int day = p5.param3;
181 int hour = p5.param4;
182 int minute = p5.param5;
183
184 GetGame().GetWorld().SetDate(year,month, day, hour, minute);
185 }
186 #endif
187 }

Перекрестные ссылки GetGame().

Используется в OnRPC().

◆ Hide() [1/3]

void Hide ( )
inlineprivate
180 {
181 ShowWidgets(false);
182 m_IsActive = false;
183
184 GetUApi().UpdateControls();
185
187 }
proto native UAInputAPI GetUApi()
void ShowWidgets(bool show)
Definition PluginDayZInfectedDebug.c:190
ref Timer m_TickTimer
status refresh timer
Definition PluginDayZInfectedDebug.c:101
bool m_IsActive
Definition PluginDayZInfectedDebug.c:43

Перекрестные ссылки GetUApi(), m_IsActive, m_TickTimer и ShowWidgets().

Используется в SetDebugShowMode(), ToggleDebugWindowEventOld(), ToggleDebugWindowEventP(), ToggleDebugWindowSetMode() и ToggleDebugWindowSetMode().

◆ Hide() [2/3]

void Hide ( )
inlineprivate
88 {
89 ShowWidgets(false);
90 m_IsActive = false;
91 }

Перекрестные ссылки m_IsActive и ShowWidgets().

◆ Hide() [3/3]

void Hide ( )
inlineprivate
26 {
28 }

Перекрестные ссылки m_TickTimer.

◆ Init() [1/3]

void Init ( )
inlineprivate
35 {
36 if(m_Character)
37 m_Character.Delete();
38
39 m_Initialized = true;
40 m_Character = PlayerBase.Cast( GetGame().CreateObject("SurvivorF_Judy", FreeDebugCamera.GetInstance().GetPosition(), false, false/*ai*/) );
41
42 FreeDebugCamera.GetInstance().SetFOV(FOV); //default scene FOV
43 m_demoRot = "0 0 0";
44 }
PlayerBase m_Character
Definition PluginCharPlacement.c:4
vector m_demoRot
Definition PluginCharPlacement.c:12

Перекрестные ссылки GetGame() и m_Initialized.

◆ Init() [2/3]

void Init ( )
inlineprivate
15 {
16 if(m_Ruler)
17 m_Ruler.Delete();
18
19 m_Initialized = true;
20 m_Ruler = ItemBase.Cast( GetGame().CreateObject("DoorTestCamera", FreeDebugCamera.GetInstance().GetPosition(), false, false/*ai*/) );
21 }
ItemBase m_Ruler
Definition PluginDoorRuler.c:4

Перекрестные ссылки GetGame() и m_Initialized.

◆ Init() [3/3]

void Init ( PlayerBase player)
inlineprotected
7 {
9 }

Перекрестные ссылки m_pPlayer.

◆ InitAttacks()

void InitAttacks ( )
inlineprotected
454 {
455 m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Attack Left Light", 0));
456 m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Attack Right Light", 1));
457 m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Attack Left Heavy", 2));
458 m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Attack Right Heavy", 3));
459
460 m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Crawl Attack", 7));
461 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Crawl Attack Combo", 8));
462
463 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Push Attack", 9));
464 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Head Attack", 10));
465 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Shoulder Attack", 11));
466 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door LR Attack", 12));
467 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Kick Attack", 13));
468 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Charge R", 14));
469 //m_AttackDescriptors.Insert(new PluginDayZInfectedDebugAttackDesc("Door Charge L", 15));
470
471 for( int i = 0; i < m_AttackDescriptors.Count(); ++i )
472 {
473 m_AttackTypeCB.AddItem(m_AttackDescriptors.Get(i).name);
474 }
475 }
class PluginDayZInfectedDebugUIHandler extends ScriptedWidgetEventHandler PluginDayZInfectedDebugAttackDesc(string pName, int pValue)
Definition PluginDayZInfectedDebug.c:26

Перекрестные ссылки PluginDayZInfectedDebugAttackDesc().

Используется в CreateModuleWidgets().

◆ InitLoad()

void InitLoad ( )
inlineprivate
313 {
314 PLAYER = PlayerBase.Cast( GetGame().GetPlayer() );
315
316 SceneLoad( PluginMissionConfig.GetInstance().GetSceneEditorName() );
317
319
321 }
void RestoreSceneObjectsLinks()
Definition PluginSceneManager.c:326
static PlayerBase PLAYER
Definition PluginSceneManager.c:5
void ExecuteInitScripts()
Definition PluginSceneManager.c:355
void SceneLoad(string scene_name)
Definition PluginSceneManager.c:754

Перекрестные ссылки GetGame(), GetPlayer() и PLAYER.

◆ InitWidgets()

void InitWidgets ( )
inlineprotected
41 {
42 for (int i = 0; i < MAX_SIMULTANEOUS_UTS; i++)
43 {
44 m_RootWidget[i] = GetGame().GetWorkspace().CreateWidgets("gui/layouts/debug/day_z_debug_remoteinfo.layout");
45 m_StatListWidgets[i] = TextListboxWidget.Cast(m_RootWidget[i].FindAnyWidget("TextListboxWidget0"));
46 m_HeaderWidget[i] = TextWidget.Cast(m_RootWidget[i].FindAnyWidget("TextWidget0"));
47 }
48 }
TextWidget m_HeaderWidget[MAX_SIMULTANEOUS_UTS]
Definition PluginUniversalTemperatureSourceClient.c:11
TextListboxWidget m_StatListWidgets[MAX_SIMULTANEOUS_UTS]
Definition PluginUniversalTemperatureSourceClient.c:10
proto native Widget FindAnyWidget(string pathname)

Перекрестные ссылки FindAnyWidget(), GetGame(), m_RootWidget, m_StatListWidgets и MAX_SIMULTANEOUS_UTS.

Используется в OnInit().

◆ InjectAgentsWithoutPlayer()

void InjectAgentsWithoutPlayer ( EntityAI target,
int agents )
inlineprotected
288 {
289 if( target.IsItemBase() )
290 {
292 ib_target.TransferAgents(agents);
293 }
294 }

Используется в TransmitAgentsEx().

◆ InjectAgentsWithPlayer()

void InjectAgentsWithPlayer ( EntityAI target,
int agents,
float protection,
int dose_size,
int inject_type )
inlineprotected

will add agents to a given target, using chance of transmission and full dose size if chance succeeds

298 {
299 if(target && (agents != 0) && target.IsEntityAI() )
300 {
302
303 for (int i = 0; i < bit_count; i++)
304 {
307 {
308 target.InsertAgent(agent_bit,dose_size);
309 }
310 }
311 }
312 }
bool DetermineChanceToTransmit(int agent_id, float protection, int inject_type)
Definition PluginTransmissionAgents.c:405
static proto float Pow(float v, float power)
Return power of v ^ power.
static proto int GetNthBitSet(int value, int n)
returns the the index of n-th bit set in a bit mask counting from the right, for instance,...
static proto int GetNumberOfSetBits(int i)
returns the number of bits set in a bitmask i

Перекрестные ссылки DetermineChanceToTransmit(), Math::GetNthBitSet(), Math::GetNumberOfSetBits() и Math::Pow().

Используется в TransmitAgentsEx().

◆ InjectAgentsWithPlayerCount()

void InjectAgentsWithPlayerCount ( EntityAI target,
int agents,
float protection,
int dose_size,
int inject_type )
inlineprotected

will add agents to a given target, with no probability, but the dose size is modified by m_TransferabilityOut of the agent

316 {
317 if(target && (agents != 0) && target.IsEntityAI() )
318 {
320
321 for (int i = 0; i < bit_count; i++)
322 {
325 target.InsertAgent(agent_bit,count);
326 }
327 }
328 }
float CalculateAgentsToTransmit(int agent_id, float protection, int dose_size, int inject_type)
Definition PluginTransmissionAgents.c:375

Перекрестные ссылки CalculateAgentsToTransmit(), Math::GetNthBitSet(), Math::GetNumberOfSetBits() и Math::Pow().

Используется в TransmitAgentsEx().

◆ InjectAgentWithPlayerDose()

float InjectAgentWithPlayerDose ( EntityAI target,
int agent,
float protection,
float dose_size,
int inject_type )
inlineprotected

will add agent to a given target

332 {
334 {
335 if(count > 0)
336 {
337 target.InsertAgent(agent, count);
338 return count;
339 }
340 }
341 return 0;
342 }

Перекрестные ссылки CalculateAgentsToTransmit().

Используется в TransmitAgentsEx().

◆ IsActive()

bool IsActive ( )
inlineprivate
58 {
59 return m_IsActive;
60 }

Перекрестные ссылки m_IsActive.

◆ IsCurrentUIPageValid()

bool IsCurrentUIPageValid ( int ui_page_request)
inlineprotected
305 {
307
308 if ( GetGame().GetUIManager().GetMenu() )
309 {
310 ui_page_current = GetGame().GetUIManager().GetMenu().GetID();
311 }
312
314 {
316 {
317 return false;
318 }
319 }
320
321 return true;
322 }
bool CheckMask(int source_mask, int target_mask)
Definition PluginKeyBinding.c:324
const int MENU_NONE
Definition constants.c:169
const int MENU_ANY
Definition constants.c:168

Перекрестные ссылки GetGame(), MENU_ANY и MENU_NONE.

◆ IsEnabledFreeCamera()

bool IsEnabledFreeCamera ( )
inlineprotected
44 {
46 }
Definition DeveloperFreeCamera.c:2
static bool IsFreeCameraEnabled()
Definition DeveloperFreeCamera.c:23

Перекрестные ссылки DeveloperFreeCamera::IsFreeCameraEnabled().

◆ IsEven()

bool IsEven ( int num)
inlineprivate

even or odd

64 {
65 if((num % 2) == 0)
66 return true;
67 else
68 return false;
69 }

Используется в CreateWidgetOverlay().

◆ IsFree()

bool IsFree ( Object target)
inlineprivate
19 {
20 if ( target && m_LockedObjects.Count() > 0 )
21 {
22 for ( int i = 0; i < m_LockedObjects.Count(); i++ )
23 {
24 if ( m_LockedObjects.Get(i) == target )
25 {
26 return false;
27 }
28 }
29 }
30 return true;
31 }

Используется в Lock().

◆ IsInConsole()

bool IsInConsole ( )
inlineprivate
823 {
824 UIScriptedMenu menu_curr = GetGame().GetUIManager().GetMenu();
825
826 if ( menu_curr != NULL && menu_curr.GetID() == MENU_SCRIPTCONSOLE )
827 {
828 return true;
829 }
830
831 return false;
832 }
Definition DayZGame.c:64
const int MENU_SCRIPTCONSOLE
Definition constants.c:183

Перекрестные ссылки GetGame() и MENU_SCRIPTCONSOLE.

◆ IsIngame()

bool IsIngame ( )
inlineprivate
811 {
812 UIScriptedMenu menu_curr = GetGame().GetUIManager().GetMenu();
813
814 if ( menu_curr == NULL )
815 {
816 return true;
817 }
818
819 return false;
820 }

Перекрестные ссылки GetGame().

◆ IsKeyPressed()

bool IsKeyPressed ( int key)
inlineprotected
375 {
376 return ( KeyState(key) == 1 );
377 }
proto native int KeyState(KeyCode key)

Перекрестные ссылки KeyState().

◆ IsModifierLocked()

bool IsModifierLocked ( int id,
PlayerBase player = NULL )
inlineprotected
894 {
895 if ( !player )
896 {
898 }
899 ModifiersManager mods_manager = player.GetModifiersManager();
900
901 return mods_manager.GetModifierLock( Math.AbsInt( id ) );
902 }

Перекрестные ссылки Math::AbsInt(), GetDayZGame(), GetPlayer() и ModifiersManager().

◆ IsMouseInScene()

bool IsMouseInScene ( )
inlineprivate
1228 {
1230
1231 if ( widget_under_mouse != NULL && widget_under_mouse.GetName() == "pnl_SceneControl" )
1232 {
1233 return true;
1234 }
1235
1236 return false;
1237 }
proto native Widget GetWidgetUnderCursor()

Перекрестные ссылки GetWidgetUnderCursor().

◆ IsOpened()

bool IsOpened ( )
inlineprivate
394 {
395 return m_IsOpen;
396 }

◆ IsPlayerRegistered()

bool IsPlayerRegistered ( PlayerBase player)
inlineprotected
258 {
259 if ( m_RegisteredPlayers.Contains( player ))
260 {
261 return true;
262 }
263
264 return false;
265 }

Используется в EnableUpdate(), IsSetSystemInBitmask(), RegisterPlayer() и SetSystemInBitmask().

◆ IsReadOnly()

bool IsReadOnly ( )
inlineprivate
115 {
116 return m_ReadOnly;
117 }
bool m_ReadOnly
Definition PluginFileHandler.c:19

◆ IsRepairValid()

bool IsRepairValid ( int repair_kit_type,
int repairable_with_type )
inlineprivate
122 {
124 {
126 }
127
128 return false;
129 }

◆ IsRulerActivated()

bool IsRulerActivated ( )
inlineprivate
930 {
931 return m_RulerActivated;
932 }
bool m_RulerActivated
Definition PluginSceneManager.c:8

◆ IsSetSystemInBitmask()

bool IsSetSystemInBitmask ( PlayerBase player,
int system_bit )
inlineprotected
228 {
230 {
231 return (m_RegisteredPlayers.Get(player).m_Bitmask & system_bit);
232 }
233 return false;
234 }

Перекрестные ссылки IsPlayerRegistered().

Используется в RequestDetailedInfo().

◆ LinkSceneObjects()

void LinkSceneObjects ( SceneObject scene_object1,
SceneObject scene_object2 )
inlineprivate
672 {
673 scene_object1.LinkSceneObject(scene_object2);
674 scene_object2.LinkSceneObject(scene_object1);
675 }

◆ LoadFile()

bool LoadFile ( )
inlineprivate
58 {
60
62
63 if ( file_index == 0 )
64 {
65 return false;
66 }
67
68 string line_content = "";
70 while ( char_count != -1 )
71 {
73
75 }
76
78
79 return true;
80 }
string GetFileName()
Definition PluginFileHandler.c:42
FileMode
Definition EnSystem.c:383
proto void CloseFile(FileHandle file)
Close the File.
proto int FGets(FileHandle file, string var)
Get line from file, every next call of this function returns next line.
proto FileHandle OpenFile(string name, FileMode mode)
Opens File.

Перекрестные ссылки CloseFile(), FGets(), PluginFileHandler::GetFileName() и OpenFile().

◆ LoadFromCfg()

void LoadFromCfg ( )
inlineprivate
13 {
14 string cfg_access = "CfgHorticulture"; // it is stored in dz\gear\cultivation\cfgHorticulture.hpp
15 int cfg_horticulture_count = GetGame().ConfigGetChildrenCount( cfg_access );
16
17 for ( int i = 0; i < cfg_horticulture_count; i++ )
18 {
19 string cfg_class_name = "";
20 GetGame().ConfigGetChildName( cfg_access, i, cfg_class_name );
22
23 int cfg_class_count = GetGame().ConfigGetChildrenCount( cfg_class_access );
24
25 for ( int j = 0; j < cfg_class_count; j++ )
26 {
27 string cfg_subclass_name = "";
28 GetGame().ConfigGetChildName( cfg_class_access, j, cfg_subclass_name );
30
31 int cfg_subclass_count = GetGame().ConfigGetChildrenCount( cfg_subclass_access );
32
34
35 if ( cfg_class_name == "Plants" )
36 {
39 }
40
41 for ( int k = 0; k < cfg_subclass_count; k++ )
42 {
43 string cfg_variable_name = "";
44 GetGame().ConfigGetChildName( cfg_subclass_access, k, cfg_variable_name );
46
47 if ( cfg_class_name == "Plants" )
48 {
49 string string_param = "";
50 GetGame().ConfigGetText( cfg_variable_access, string_param );
51
52 if ( cfg_variable_name == "infestedTex" )
53 {
54 plantMaterialHealth.m_InfestedTex = string_param;
55 }
56 else if ( cfg_variable_name == "infestedMat" )
57 {
58 plantMaterialHealth.m_InfestedMat = string_param;
59 }
60 else if ( cfg_variable_name == "healthyTex" )
61 {
62 plantMaterialHealth.m_HealthyTex = string_param;
63 }
64 else if ( cfg_variable_name == "healthyMat" )
65 {
66 plantMaterialHealth.m_HealthyMat = string_param;
67 }
68 }
69 }
70 }
71 }
72 }
Definition PlantMaterial.c:2

Перекрестные ссылки GetGame().

Используется в PluginHorticulture() и PluginLifespan().

◆ Lock()

void Lock ( Object target)
inlineprivate
34 {
35 if ( target && !IsFree(target) )
36 {
37 m_LockedObjects.Insert(target);
38 m_LockedObjectsDecay.Insert(0);
39 }
40 }
bool IsFree(Object target)
Definition PluginObjectsInteractionManager.c:18

Перекрестные ссылки IsFree().

◆ LockModifier()

void LockModifier ( int id,
bool lock,
PlayerBase player = NULL )
inlineprotected
884 {
885 if ( !player )
886 {
888 }
889 ModifiersManager mods_manager = player.GetModifiersManager();
890 mods_manager.SetModifierLock( Math.AbsInt( id ), lock );
891 }

Перекрестные ссылки Math::AbsInt(), GetDayZGame(), GetPlayer() и ModifiersManager().

Используется в OnRPC().

◆ Log()

void Log ( string msg,
string label )
inlineprivate
11 {
12 Debug.Log(msg, GetModuleName(), "n/a", label, "n/a");
13 }
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.
Definition Debug.c:136

Перекрестные ссылки GetModuleName() и Debug::Log().

◆ LogPrint()

void LogPrint ( string message)
inlineprotected

◆ MakeTabs()

string MakeTabs ( int count,
bool inheritance = false )
inlineprivate
8 {
9 if ( count == 0 )
10 {
11 return "";
12 }
13
14 string tabs = "|--";
15 if ( inheritance )
16 {
17 tabs = "|<<";
18 }
19
20 for ( int i = 0; i < count - 1; i++ )
21 {
22 tabs = "| " + tabs;
23 }
24
25 return tabs;
26 }

Используется в GetConfig() и GetConfigRecursive().

◆ OnChange()

bool OnChange ( Widget w,
int x,
int y,
bool finished )
inlineprivate
346 {
347 return false;
348 }

◆ OnClick()

bool OnClick ( Widget w,
int x,
int y,
int button )
inlineprivate

buttons clicks

287 {
288 if (w == m_SpawnEntityButton)
289 {
290 ResetValues();
292 return true;
293 }
294
295 if (w == m_CardMovementButton)
296 {
297 ShowCard(0);
298 return true;
299 }
300 else if (w == m_CardFightButton)
301 {
302 ShowCard(1);
303 return true;
304 }
305 else if (w == m_StartTurnButton)
306 {
307 m_CH_DoTurn = true;
308 return true;
309 }
310 else if (w == m_StartVaultButton)
311 {
312 m_CH_DoVault = true;
313 return true;
314 }
315 else if (w == m_KnucleOutButton)
316 {
317 m_CH_DoKnucleOut = true;
318 return true;
319 }
320 else if (w == m_StartCrawlingButton)
321 {
322 m_CH_GoToCrawl = true;
323 return true;
324 }
325 else if (w == m_StartHitButton)
326 {
327 m_CH_DoHit = true;
328 return true;
329 }
330 else if (w == m_StartDeathButton)
331 {
332 m_CH_StartDeath = true;
333 return true;
334 }
335 else if (w == m_StartAttackButton)
336 {
337 m_CH_DoAttack = true;
338 return true;
339 }
340
341 return false;
342 }
void ResetValues()
Definition PluginDayZInfectedDebug.c:351
void SpawnNewInfectedEntity()
Definition PluginDayZInfectedDebug.c:365

Перекрестные ссылки ResetValues(), ShowCard() и SpawnNewInfectedEntity().

◆ OnContinouousAction()

void OnContinouousAction ( ActionData action_data)
inlineprotected
336 {
337 if ( m_ActionsFilter == 1 )
338 {
339 m_Message = action_data.m_Action.GetAdminLogMessage(action_data);
340
341 if(m_Message == "")
342 return;
343
344 m_PlayerPrefix = GetPlayerPrefix( action_data.m_Player , action_data.m_Player.GetIdentity() );
345
347 }
348 }
string m_Message
Definition PluginAdminLog.c:8
int m_ActionsFilter
Definition PluginAdminLog.c:23

Перекрестные ссылки GetPlayerPrefix(), LogPrint() и m_ActionsFilter.

◆ OnDamageEvent()

void OnDamageEvent ( PlayerBase player,
TotalDamageResult damageResult )
inlineprivate
93 {
94 if ( !GetWatching() || !damageResult )
95 return;
96
97 float damage_global = damageResult.GetDamage("","");
98 float damage_blood = damageResult.GetDamage("","Blood");
99 float damage_shock = damageResult.GetDamage("","Shock");
100
101 if ( m_PlayerDebugDamage.Contains(player) )
102 {
104 }
105 else
106 {
110 }
111 }
ref map< PlayerBase, ref RemotePlayerDamageDebug > m_PlayerDebugDamage
Definition PluginRemotePlayerDebugServer.c:6
bool GetWatching()
Definition PluginRemotePlayerDebugServer.c:34
Definition RemotePlayerDamageDebug.c:2

Перекрестные ссылки m_PlayerDebugDamage.

◆ OnDestroy() [1/5]

void OnDestroy ( )
private

◆ OnDestroy() [2/5]

override void OnDestroy ( )
inlineprivate
65 {
66 FreeDebugCamera.GetInstance().SetFOV(g_Game.GetUserFOV());
67 }
DayZGame g_Game
Definition DayZGame.c:3815

Перекрестные ссылки g_Game.

◆ OnDestroy() [3/5]

override void OnDestroy ( )
inlineprivate
119 {
120 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Remove(this.OnFrame);
121 }
void OnFrame()
Definition PluginKeyBinding.c:240
const int CALL_CATEGORY_SYSTEM
Definition tools.c:8

Перекрестные ссылки CALL_CATEGORY_SYSTEM и GetGame().

◆ OnDestroy() [4/5]

override void OnDestroy ( )
inlineprivate
63 {
65 }
void SceneUnload()
Definition PluginSceneManager.c:770

◆ OnDestroy() [5/5]

override void OnDestroy ( )
inlineprivate
15 {
17 }

Перекрестные ссылки m_TickTimer.

◆ OnFrame()

void OnFrame ( )
inlineprivate
241 {
242 for ( int i = 0; i < m_MouseButtons.Count(); ++i )
243 {
245
246 if ( info.IsButtonDown() )
247 {
248 int time_curr = GetGame().GetTime();
249 int time_hold = info.GetTimeLastPress() + HOLD_CLICK_TIME_MIN;
250
251 if ( time_hold < time_curr )
252 {
253 //Log("MB_EVENT_DRAG");
254
255 OnMouse( MB_EVENT_DRAG, info.GetButtonID() );
256 }
257 }
258 }
259 }
void OnMouse(int event_id, int button)
Definition PluginKeyBinding.c:337
const int HOLD_CLICK_TIME_MIN
Definition PluginKeyBinding.c:279
const int MB_EVENT_DRAG
Definition PluginKeyBinding.c:11

Перекрестные ссылки GetGame() и MB_EVENT_DRAG.

◆ OnGUITimer()

void OnGUITimer ( )
inlineprivate
31 {
33 DbgUI.Begin("Sound debug", 10, 10);
34
35 DbgUI.PushID_Str("SoundParams");
36 DbgUI.Text("SoundParams: ");
38 string soundsetName = "BearGrowl_SoundSet";
40 DbgUI.PopID();
41
42 DbgUI.PushID_Str("Offset");
43 DbgUI.Text("Offset pos: ");
44 vector posOffset = "0 0 0";
45 float posVal;
46
49 DbgUI.InputFloat("", posVal, 80);
50 DbgUI.PopID();
51 posOffset[0] = posVal;
52
55 DbgUI.InputFloat("", posVal, 80);
56 DbgUI.PopID();
57 posOffset[1] = posVal;
58
61 DbgUI.InputFloat("", posVal, 80);
62 DbgUI.PopID();
63 posOffset[2] = posVal;
64 DbgUI.PopID();
65
66 if(DbgUI.Button("Create"))
67 {
70 m_soundObject = m_soundBuilder.BuildSoundObject();
72 }
73
74 DbgUI.Text("SoundObjectBuilder: ");
75
76 DbgUI.Text("SoundObject: ");
77
78 DbgUI.Text("AbstractWave: ");
79
80 vector posOffset2 = "0 10 0";
81
82 if(m_soundParams != NULL)
83 {
84 DbgUI.Text("FadeInFactor: ");
86 DbgUI.PushID_Str("fadeIn");
88 DbgUI.PopID();
89
90 DbgUI.Text("FadeOutFactor: ");
92 DbgUI.PushID_Str("fadeOut");
94 DbgUI.PopID();
95
96 DbgUI.PushID_Str("Offset2");
97 DbgUI.Text("Offset2 pos: ");
98 float posVal2;
99
100 DbgUI.SameLine();
101 DbgUI.PushID_Int(100);
102 posVal2 = posOffset2[0];
103 DbgUI.InputFloat("", posVal2, 80);
104 DbgUI.PopID();
105 posOffset2[0] = posVal2;
106
107 DbgUI.SameLine();
108 DbgUI.PushID_Int(101);
109 posVal2 = posOffset2[1];
110 DbgUI.InputFloat("", posVal2, 80);
111 DbgUI.PopID();
112 posOffset2[1] = posVal2;
113
114 DbgUI.SameLine();
115 DbgUI.PushID_Int(102);
116 posVal2 = posOffset2[2];
117 DbgUI.InputFloat("", posVal2, 80);
118 DbgUI.PopID();
119 posOffset2[2] = posVal2;
120 DbgUI.PopID();
121
122 DbgUI.Text("skip: ");
123 DbgUI.SameLine();
124 float skip = 0.0;
125 DbgUI.PushID_Int(200);
126 DbgUI.InputFloat("", skip, 80);
127 DbgUI.PopID();
128
129 if(DbgUI.Button("Create and play"))
130 {
131 m_wave = GetGame().GetSoundScene().Play3D(m_soundObject, m_soundBuilder);
135 }
136 }
137
138 if(m_wave != NULL)
139 {
140 DbgUI.Text("Wave length: " + m_wave.GetLength() + "s");
141
142 //DbgUI.Text("Wave position: " + Math.Round(m_wave.GetCurrPosition() * 100) + "%");
143 DbgUI.Text("Volume: ");
144 DbgUI.SameLine();
145 float volume = 1.0;
146 DbgUI.InputFloat(" ", volume, 80);
147 DbgUI.SameLine();
148 if(DbgUI.Button("SetVolume"))
150 DbgUI.SameLine();
151 if(DbgUI.Button("SetVolumeRelative"))
153
154 if(DbgUI.Button("Play"))
155 m_wave.Play();
156 if(DbgUI.Button("Stop"))
157 m_wave.Stop();
158 if(DbgUI.Button("Restart"))
159 m_wave.Restart();
160 if(DbgUI.Button("Repeat"))
161 m_wave.Loop(true);
162 if(DbgUI.Button("StopRepeat"))
163 m_wave.Loop(false);
164 if(DbgUI.Button("Set position"))
166 }
167
168 DbgUI.End();
170 }
void SoundObjectBuilder(SoundParams soundParams)
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
proto void SetVolume(float value)
proto void SetFadeInFactor(float volume)
proto void Play()
proto void SetPosition(vector position, vector velocity="0 0 0")
proto void Loop(bool setLoop)
proto void SetVolumeRelative(float value)
proto void Restart()
proto void Skip(float timeSec)
proto void Stop()
proto float GetLength()
WARNING: Blocking! Waits for header to load.
ref SoundParams m_soundParams
Definition PluginSoundDebug.c:175
float fadeInVolume
Definition PluginSoundDebug.c:178
ref SoundObjectBuilder m_soundBuilder
Definition PluginSoundDebug.c:176
AbstractWave m_wave
Definition PluginSoundDebug.c:180
ref SoundObject m_soundObject
Definition PluginSoundDebug.c:177
float fadeOutVolume
Definition PluginSoundDebug.c:179
Definition Sound.c:101
static proto native void PushID_Int(int int_id)
static proto native bool Button(string txt, int minWidth=0)
static proto void BeginCleanupScope()
static proto void InputFloat(string txt, out float value, int pxWidth=150)
static proto native void PopID()
static proto native void EndCleanupScope()
static proto void InputText(string txt, out string value, int pxWidth=150)
static proto native void PushID_Str(string str_id)
static proto native void SameLine()

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::Button(), DbgUI::End(), DbgUI::EndCleanupScope(), GetGame(), GetPlayer(), GetPosition, DbgUI::InputFloat(), DbgUI::InputText(), DbgUI::PopID(), DbgUI::PushID_Int(), DbgUI::PushID_Str(), DbgUI::SameLine(), SoundObjectBuilder() и DbgUI::Text().

◆ OnInit() [1/9]

void OnInit ( )
private

◆ OnInit() [2/9]

override void OnInit ( )
inlineprotected
7 {
8 m_Instance = this;
9 }

Перекрестные ссылки m_Instance.

◆ OnInit() [3/9]

override void OnInit ( )
inlineprotected
55 {
56 super.OnInit();
57
59 }
static void OnInit()

Перекрестные ссылки DeveloperFreeCamera::OnInit().

◆ OnInit() [4/9]

override void OnInit ( )
inlineprotected
21 {
22 #ifndef NO_GUI
24 #endif
25 }
void InitWidgets()
Definition PluginUniversalTemperatureSourceClient.c:40

Перекрестные ссылки InitWidgets().

◆ OnInit() [5/9]

override void OnInit ( )
inlineprotected
74 {
75 super.OnInit();
76
77 if ( GetGame().IsServer() )
78 {
79 //create timer
81 }
82 }
Definition DayZPlayerImplement.c:63
const int CALL_CATEGORY_GAMEPLAY
Definition tools.c:10

Перекрестные ссылки CALL_CATEGORY_GAMEPLAY, GetGame() и m_UpdateTimer.

◆ OnInit() [6/9]

override void OnInit ( )
inlineprivate
38 {
39 super.OnInit();
40 }

◆ OnInit() [7/9]

override void OnInit ( )
inlineprivate
31 {
32 super.OnInit();
33
37 m_MouseButtons.Insert ( new MouseButtonInfo( MouseState.LEFT ) );
38 m_MouseButtons.Insert ( new MouseButtonInfo( MouseState.RIGHT ) );
39 m_MouseButtons.Insert ( new MouseButtonInfo( MouseState.MIDDLE ) );
40 GetGame().GetUpdateQueue(CALL_CATEGORY_SYSTEM).Insert(this.OnFrame);
41
43 //Keyboard Binds |UI_ID |Key1 |Key2 |Callback Plugin |Callback Function |Info Shrtcut |Info Description
44 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
45 // |constants.h |constants.h |constants.h |only plugin name |only function | |
46 // |MENU_*** |KeyCode.KC_*** |KeyCode.KC_*** | |in plugin | |
47 //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
48 #ifdef DEVELOPER
49 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_F1 ,"PluginDeveloper" ,"ToggleHelpScreen" ,"[LCTRL]+[F1]" ,"Show/Hide help screen");
50 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_F2 ,"PluginDeveloper" ,"ResetGUI" ,"[LCTRL]+[F2]" ,"Resets shown UI for testing purposes");
51 RegisterKeyBind( MENU_NONE|MENU_SCRIPTCONSOLE ,KeyCode.KC_LCONTROL ,KeyCode.KC_GRAVE ,"PluginDeveloper" ,"ToggleScriptConsole" ,"[LCTRL]+[~]" ,"Show/Hide this script console");
52 RegisterKeyBind( MENU_NONE|MENU_SCRIPTCONSOLE ,KeyCode.KC_RCONTROL ,KeyCode.KC_GRAVE ,"PluginDeveloper" ,"ToggleScriptConsole" ,"[RCTRL]+[~]" ,"Show/Hide this script console");
53 RegisterKeyBind( MENU_NONE|MENU_SCENE_EDITOR ,KeyCode.KC_LCONTROL ,KeyCode.KC_TAB ,"PluginSceneManager" ,"EditorToggle" ,"[LCTRL]+[TAB]" ,"Show/Hide Scripted Scene Editor");
54 RegisterKeyBind( MENU_NONE|MENU_SCENE_EDITOR ,KeyCode.KC_RCONTROL ,KeyCode.KC_TAB ,"PluginSceneManager" ,"EditorToggle" ,"[RCTRL]+[TAB]" ,"Show/Hide Scripted Scene Editor");
55 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_V ,"PluginDeveloper" ,"SpawnFromClipboard" ,"[Right Shift]" ,"Spawn item from clipboard");
56 #endif
57
58 #ifdef DIAG_DEVELOPER
59 RegisterKeyBind( MENU_NONE ,KeyCode.KC_INSERT ,-1 ,"PluginDeveloper" ,"TeleportAtCursor" ,"[Insert]" ,"Teleport player to cursor position");
60 RegisterKeyBind( MENU_NONE ,KeyCode.KC_HOME ,-1 ,"PluginDeveloper" ,"ToggleFreeCamera" ,"[Home]" ,"Toggle free camera and teleport player to its position");
61 RegisterKeyBind( MENU_NONE ,KeyCode.KC_DIVIDE ,-1 ,"PluginDeveloper" ,"ToggleFreeCameraBackPos" ,"[Divide numeric]" ,"Toggle free camera, no player teleport");
62 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_NUMPAD9 ,"PluginDeveloperSync" ,"ToggleFocus" ,"[LCtrl]+[NUMPAD9]" ,"Toggle game focus");
63 #endif
64
65 #ifdef DEVELOPER
66 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_Z ,"PluginDeveloper" ,"SetDeveloperItemClient" ,"Starts watching the item" ,"Sets the target as Watched item for debug purposes");
67 RegisterKeyBind( MENU_SCRIPTCONSOLE ,KeyCode.KC_PRIOR ,-1 ,"PluginDeveloper" ,"ScriptHistoryBack" ,"[Page Up]" ,"Debug Console => Script history back");
68 RegisterKeyBind( MENU_SCRIPTCONSOLE ,KeyCode.KC_NEXT ,-1 ,"PluginDeveloper" ,"ScriptHistoryNext" ,"[Page Down]" ,"Debug Console => Script history next");
69 RegisterKeyBind( MENU_SCENE_EDITOR ,KeyCode.KC_DELETE ,-1 ,"PluginSceneManager" ,"DeleteSelectedObject" ,"[Delete]" ,"Scene Editor => Delete current selected object");
70 RegisterKeyBind( MENU_SCENE_EDITOR ,KeyCode.KC_LCONTROL ,KeyCode.KC_S ,"PluginSceneManager" ,"SceneSave" ,"[LCtrl]+[S]" ,"Scene Editor => Save Current Scene");
71 RegisterKeyBind( MENU_SCENE_EDITOR ,KeyCode.KC_LCONTROL ,KeyCode.KC_D ,"PluginSceneManager" ,"SelectedObjectDuplicate" ,"[LCtrl]+[D]" ,"Scene Editor => Duplicate current selected object");
72 RegisterKeyBind( MENU_SCENE_EDITOR ,KeyCode.KC_LCONTROL ,KeyCode.KC_F ,"PluginSceneManager" ,"SelectedObjectFocus" ,"[LCtrl]+[F]" ,"Scene Editor => Focus camera on selected object");
73 RegisterKeyBind( MENU_SCENE_EDITOR ,KeyCode.KC_LCONTROL ,KeyCode.KC_E ,"PluginSceneManager" ,"RulerToggle" ,"[LCtrl]+[E]" ,"Scene Editor => Enable/Disable addition of ruler points");
74 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_PRIOR ,"PluginRecipesManager" ,"CallbackGenerateCache" ,"[LCtrl]+[BACKSPACE]" ,"PluginRecipesManager => Generate recipe cache and save it to file");
75 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_DECIMAL ,"PluginItemDiagnostic" ,"ToggleDebugWindowEvent" ,"[LCtrl]+[DECIMAL]" ,"Close the Item Debug window");
76 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_NUMPAD0 ,"PluginDayzPlayerDebug","ToggleDebugWindowEvent" ,"[LCtrl]+[NUMPAD0]" ,"Open/Close Player debug window");
77 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_DECIMAL ,"PluginDayzPlayerDebug","ToggleDebugWindowEventP" ,"[LCtrl]+[DECIMAL]" ,"Open/Close Player debug window");
78 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_I ,"PluginDayZInfectedDebug","ToggleDebugWindowEvent" ,"[LCtrl]+[NUMPAD1]" ,"Open/Close Infected debug window");
79 RegisterKeyBind( MENU_ANY ,KeyCode.KC_LCONTROL ,KeyCode.KC_O ,"PluginDayZInfectedDebug","PossesInfected" ,"[LCtrl]+[NUMPAD1]" ,"Open/Close Infected debug window");
80 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_SCROLL ,"PluginNutritionDumper" ,"CheckInit" ,"[LCtrl]+[SCROLL LOCK]" ,"Enable Door Ruler");
81 RegisterKeyBind( MENU_NONE ,KeyCode.KC_LCONTROL ,KeyCode.KC_RBRACKET,"PluginCharPlacement" ,"CheckInit" ,"[LCtrl]+[)]" ,"Enable CharPlacer");
82
83 RegisterKeyBind( MENU_NONE|MENU_CAMERA_TOOLS ,KeyCode.KC_LCONTROL ,KeyCode.KC_K ,"PluginCameraTools" ,"ToggleCameraTools" ,"[LCtrl]+[K]" ,"Toggle Camera Recording Tools");
84 RegisterKeyBind( MENU_CAMERA_TOOLS ,KeyCode.KC_LCONTROL ,KeyCode.KC_S ,"PluginCameraTools" ,"Save" ,"[X]" ,"Recording Tools => Start Recording Camera Path");
85 RegisterKeyBind( MENU_CAMERA_TOOLS ,KeyCode.KC_P ,-1 ,"PluginCameraTools" ,"PlayPause" ,"[C]" ,"Recording Tools => Stop Recording Camera Path");
86 RegisterKeyBind( MENU_CAMERA_TOOLS ,KeyCode.KC_LCONTROL ,KeyCode.KC_Q ,"PluginCameraTools" ,"AddKeyframe" ,"[C]" ,"Recording Tools => Add Camera Point");
87 RegisterKeyBind( MENU_CAMERA_TOOLS ,KeyCode.KC_LCONTROL ,KeyCode.KC_E ,"PluginCameraTools" ,"DeleteKeyframe" ,"[V]" ,"Recording Tools => Play Camera Line");
88
89 //--------------------------------------------------------------------------------------------------------------------------------------------------------------
92 // Mouses Binds |UI_ID |Mouse Button |Mouse Event |Callback Plugin |Callback Function |Info Shrtcut |Info Description
93 //----------------------------------------------------------------------------------------------------------------------------------------------------------------
94 // |constants.h |MouseState.LEFT |MB_EVENT_CLICK |only plugin name |only function | |
95 // |MENU_*** |MouseState.RIGHT |MB_EVENT_DOUBLECLICK | |in plugin | |
96 // |MouseState.MIDDLE |MB_EVENT_DRAG | | | |
97 // | |MB_EVENT_RELEASE | | | |
98 //--------------------------------------------------------------------------------------------------------------------------------------------------------------
99 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.LEFT ,MB_EVENT_CLICK ,"PluginSceneManager" ,"Event_OnClick" ,"[LMB] Click" ,"Mission Editor => Select object in scene");
100 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.LEFT ,MB_EVENT_DOUBLECLICK ,"PluginSceneManager" ,"Event_OnDoubleClick" ,"[LMB] Double Click" ,"Mission Editor => Craete new object in scene");
101 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.LEFT ,MB_EVENT_DRAG ,"PluginSceneManager" ,"Event_OnDrag" ,"[LMB] Hold" ,"Mission Editor => Moving with selected object");
102 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.MIDDLE ,MB_EVENT_CLICK ,"PluginSceneManager" ,"Event_OnClickMiddle" ,"[MMB] Click" ,"Mission Editor => Link clicked object with selected object");
103 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.RIGHT ,MB_EVENT_PRESS ,"PluginSceneManager" ,"FreeCameraControlEnable" ,"[RMB] Hold" ,"Mission Editor => Enable camera movement");
104 RegisterMouseBind( MENU_SCENE_EDITOR ,MouseState.RIGHT ,MB_EVENT_RELEASE ,"PluginSceneManager" ,"FreeCameraControlDisable" ,"[RMB] Release" ,"Mission Editor => Disable camera movement");
105 RegisterMouseBind( MENU_NONE ,MouseState.LEFT ,MB_EVENT_CLICK ,"PluginDayZCreatureAIDebug","Event_OnClick" ,"[LMB] Click" ,"DayZCreature graph debug => Capture entity during capture mode");
106 RegisterMouseBind( MENU_CAMERA_TOOLS ,MouseState.RIGHT ,MB_EVENT_RELEASE ,"PluginCameraTools" ,"CursorShow" ,"[LMB] Click" ,"DayZCreature graph debug => Capture entity during capture mode");
107 // TO DO: (Boris V.) Remove the following commented-out mouse binds when weapon particles can be implemented properly. Also remove the events they call.
108 //RegisterMouseBind( MENU_NONE ,MouseState.LEFT ,MB_EVENT_PRESS ,"PluginDeveloper" ,"MuzzleParticleTestStart" ,"[LMB] Hold" ,"Debug particle");
109 //RegisterMouseBind( MENU_NONE ,MouseState.LEFT ,MB_EVENT_RELEASE ,"PluginDeveloper" ,"MuzzleParticleTestEnd" ,"[LMB] Release" ,"Debug particle2");
110 #endif
111 //--------------------------------------------------------------------------------------------------------------------------------------------------------------
113 }
void RegisterMouseBind(int ui_id, int mouse_button, int mouse_event, string plugin_name, string fnc_name, string info_shortcut, string info_description)
Definition PluginKeyBinding.c:296
void RegisterKeyBind(int ui_id, int key_code1, int key_code2, string plugin_name, string fnc_name, string info_shortcut, string info_description)
Definition PluginKeyBinding.c:288
const int MENU_CAMERA_TOOLS
Definition constants.c:199
const int MB_EVENT_RELEASE
Definition PluginKeyBinding.c:9
const int MB_EVENT_CLICK
Definition PluginKeyBinding.c:8
const int MB_EVENT_DOUBLECLICK
Definition PluginKeyBinding.c:10
const int MB_EVENT_PRESS
Definition PluginKeyBinding.c:7
MouseState
Definition EnSystem.c:311

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame(), MB_EVENT_CLICK, MB_EVENT_DOUBLECLICK, MB_EVENT_DRAG, MB_EVENT_PRESS, MB_EVENT_RELEASE, MENU_ANY, MENU_CAMERA_TOOLS, MENU_NONE, MENU_SCENE_EDITOR и MENU_SCRIPTCONSOLE.

◆ OnInit() [8/9]

override void OnInit ( )
inlineprivate
47 {
51
52 //Ruler
53 m_RulerActivated = false;
57 }
PluginDeveloper m_ModuleDeveloper
Definition PluginCharPlacement.c:3
Definition PluginConfigDebugProfileFixed.c:2

Перекрестные ссылки GetPlugin().

◆ OnInit() [9/9]

override void OnInit ( )
inlineprivate
4 {
5 m_TickTimer = new Timer();
6 m_TickTimer.Run(0.1, this, "OnGUITimer", NULL, true);
7 }

Перекрестные ссылки m_TickTimer.

◆ OnKeyPress()

void OnKeyPress ( int key)
inlineprivate
127 {
128 //Print("OnKeyPress "+ key );
129
130 for ( int i = 0; i < m_KeyBindings.Count(); ++i )
131 {
133
134 if ( !IsCurrentUIPageValid( key_binding.GetUIMenuID() ) )
135 {
136 continue;
137 }
138
139 bool key1_match = false;
140 bool key2_match = false;
141
142 if ( key_binding.GetKey1() > -1 )
143 {
144 if ( IsKeyPressed(key_binding.GetKey1()) )
145 {
146 // Key1 is down
147 key1_match = true;
148 }
149 }
150 else
151 {
152 // Key1 is not set
153 key1_match = true;
154 }
155
156 if ( key_binding.GetKey2() > -1 )
157 {
158 if ( IsKeyPressed(key_binding.GetKey2()) )
159 {
160 // Key2 is down
161 key2_match = true;
162 }
163 }
164 else
165 {
166 // Key2 is not set
167 key2_match = true;
168 }
169
170 if ( key1_match && key2_match )
171 {
172 //Log( "Call Method -> key press: " + itoa(key) + " " + key_binding.GetInfoDescription() );
173
174 PluginBase m = GetPlugin(key_binding.GetCallbackTarget().ToType());
175 GetGame().GameScript.CallFunction(m, key_binding.GetCallbackFunction(), NULL, 0);
176
177 break;
178 }
179 }
180 }
Definition KeyBinding.c:2
Definition PluginBase.c:2
bool IsKeyPressed(int key)
Definition PluginKeyBinding.c:374
bool IsCurrentUIPageValid(int ui_page_request)
Definition PluginKeyBinding.c:304

Перекрестные ссылки GetGame() и GetPlugin().

◆ OnKeyRelease()

void OnKeyRelease ( int key)
inlineprivate
186 {
187 }

◆ OnMouse()

void OnMouse ( int event_id,
int button )
inlineprotected
338 {
339 for ( int i = 0; i < m_MouseBindings.Count(); ++i )
340 {
342
343 if ( mouse_binding.GetButtonID() == button && mouse_binding.GetMouseEvent() == event_id )
344 {
345 if ( IsCurrentUIPageValid( mouse_binding.GetUIMenuID() ) )
346 {
347 PluginBase m = GetPlugin(mouse_binding.GetCallbackTarget().ToType());
348 GetGame().GameScript.CallFunction(m, mouse_binding.GetCallbackFunction(), NULL, 0);
349 }
350 }
351 }
352 }
Definition MouseBinding.c:2

Перекрестные ссылки GetGame() и GetPlugin().

◆ OnMouseButtonPress()

void OnMouseButtonPress ( int button)
inlineprivate
193 {
195 if (button_info == NULL) return;
196 button_info.Press();
197
198 //Log("****************************");
199 //Log(" MB_EVENT_PRESS");
200
202 }
MouseButtonInfo GetMouseButtonInfo(int button)
Definition PluginKeyBinding.c:357

Перекрестные ссылки MB_EVENT_PRESS.

◆ OnMouseButtonRelease()

void OnMouseButtonRelease ( int button)
inlineprivate
208 {
210 if (button_info == NULL) return;
211 int time_curr = GetGame().GetTime();
212 int time_last_press = button_info.GetTimeLastPress();
213 int time_last_release = button_info.GetTimeLastRelease();
216
218 {
219 //Log(" DOUBLE_CLICK_TIME ");
220
222 }
223 else if ( time_delta_press < CLICK_TIME )
224 {
225 //Log(" MB_EVENT_CLICK ");
226
228 }
229
230 //Log(" MB_EVENT_RELEASE");
231
233
234 button_info.Release();
235 }
const int DOUBLE_CLICK_TIME
Definition PluginKeyBinding.c:278
const int CLICK_TIME
Definition PluginKeyBinding.c:277

Перекрестные ссылки GetGame(), MB_EVENT_CLICK, MB_EVENT_DOUBLECLICK и MB_EVENT_RELEASE.

◆ OnMouseWheel()

void OnMouseWheel ( int wheel)
inlineprivate
71 {
72 if ( !IsMouseInScene() )
73 {
74 return;
75 }
76
78 {
80 }
81
83 }
int GetRotationAngle()
Definition PluginSceneManager.c:746
void AddRotation(float add_rot)
Definition SceneObject.c:523

◆ OnPlacementComplete()

void OnPlacementComplete ( Man player,
ItemBase item )
inlineprotected
317 {
318 if ( m_PlacementFilter == 1 )
319 {
320 m_Source = PlayerBase.Cast( player );
321 m_PlayerPrefix = GetPlayerPrefix( m_Source , m_Source.GetIdentity() );
322 m_DisplayName = item.GetDisplayName();
323
324 if ( m_DisplayName == "" )
325 {
326 LogPrint( m_PlayerPrefix + " placed unknown object" );
327 }
328 else
329 {
330 LogPrint( m_PlayerPrefix + " placed " + m_DisplayName );
331 }
332 }
333 }
PlayerBase m_Source
Definition PluginAdminLog.c:13
string m_DisplayName
Definition PluginAdminLog.c:9
int m_PlacementFilter
Definition PluginAdminLog.c:22

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ OnRequestReceived() [1/2]

void OnRequestReceived ( PlayerBase player,
bool enable )
inlineprivate
115 {
116 int index = m_ClientList.Find(player);
117
118 if (enable)
119 {
120 m_ClientList.Insert(player);
121 SetWatching(true);
122 }
123 else if (index != -1 && m_ClientList.Count() != 0)
124 {
125 m_ClientList.Remove(index);
126 }
127
128 if ( m_ClientList.Count() == 0 )
129 {
130 SetWatching(false);
131 }
132 }
ref set< PlayerBase > m_ClientList
Definition PluginRemotePlayerDebugServer.c:3
void SetWatching(bool enable)
Definition PluginRemotePlayerDebugServer.c:29

Используется в OnRPC().

◆ OnRequestReceived() [2/2]

void OnRequestReceived ( PlayerBase player,
bool enable )
inlineprotected
99 {
100 int index = m_ClientList.Find(player);
101
102 if (enable)
103 {
104 m_ClientList.Insert(player);
105 }
106 else if (index != -1 && m_ClientList.Count() > 0)
107 {
108 m_ClientList.Remove(index);
109 }
110 }

◆ OnRPC() [1/5]

void OnRPC ( ParamsReadContext ctx)
inlineprotected
235 {
236 //Debug.Log("OnRPC called", "PluginUniversalTemperatureSourceClient");
237 //PrintedDebug();
239 }

◆ OnRPC() [2/5]

void OnRPC ( ParamsReadContext ctx,
PlayerBase player )
inlineprivate
135 {
136 bool enable;
137 ctx.Read(enable);
139 }
void OnRequestReceived(PlayerBase player, bool enable)
Definition PluginRemotePlayerDebugServer.c:114

◆ OnRPC() [3/5]

void OnRPC ( ParamsReadContext ctx,
PlayerBase player )
inlineprotected
113 {
114 bool enable;
115 ctx.Read(enable);
116
118 }

Перекрестные ссылки OnRequestReceived().

◆ OnRPC() [4/5]

void OnRPC ( PlayerBase player,
int rpc_type,
ParamsReadContext ctx )
inlineprotected
62 {
63 #ifdef DIAG_DEVELOPER
64 switch (rpc_type)
65 {
66 case ERPCs.DEV_RPC_SPAWN_ITEM_ON_GROUND:
68 break;
69
70 case ERPCs.DEV_RPC_SPAWN_ITEM_ON_GROUND_PATTERN_GRID:
72 break;
73
74 case ERPCs.DEV_RPC_SPAWN_ITEM_ON_CURSOR:
76 break;
77
78 case ERPCs.DEV_RPC_SPAWN_ITEM_IN_INVENTORY:
80 break;
81
82 case ERPCs.DEV_RPC_CLEAR_INV:
84 break;
85
86 case ERPCs.DEV_RPC_SEND_SERVER_LOG:
88 break;
89
90 case ERPCs.RPC_SYNC_SCENE_OBJECT:
92 break;
93
94 case ERPCs.DEV_RPC_PLUGIN_DZCREATURE_DEBUG:
96 break;
97
98 case ERPCs.DEV_RPC_SPAWN_PRESET:
99 string presetName;
101
102 ctx.Read(presetName);
103 ctx.Read(target);
104
106 break;
107
108 case ERPCs.DEV_RPC_SET_TIME:
110 break;
111 }
112
114 #endif
115 }
Definition DeveloperTeleport.c:2
static void OnRPC(PlayerBase player, int rpc_type, ParamsReadContext ctx)
Definition DeveloperTeleport.c:168
void HandlePresetSpawn(PlayerBase player, string presetName, EntityAI target)
Definition PluginDeveloper.c:189
void HandleSetTime(PlayerBase player, ParamsReadContext ctx)
Definition PluginDeveloper.c:172
void OnRPCClearInventory(PlayerBase player)
Definition PluginDeveloper.c:231
void OnRPCSpawnEntityOnCursorDir(PlayerBase player, ParamsReadContext ctx)
Definition PluginDeveloper.c:237
void OnRPCSpawnEntity(PlayerBase player, ParamsReadContext ctx)
Definition PluginDeveloper.c:263
void OnRPCSpawnEntityOnGroundPatternGrid(PlayerBase player, ParamsReadContext ctx)
Definition PluginDeveloper.c:255
void OnRPCSpawnEntityOnGround(PlayerBase player, ParamsReadContext ctx)
Definition PluginDeveloper.c:246
void OnRPCServerLogRecieved(ParamsReadContext ctx)
Definition PluginDeveloper.c:221
void OnRPCSyncSceneObject(ParamsReadContext ctx)
Definition PluginDeveloper.c:149
void OnRPCPluginDayzCreatureDebug(PlayerBase player, int rpc_type, ParamsReadContext ctx)
Definition PluginDeveloper.c:163

Перекрестные ссылки HandlePresetSpawn(), HandleSetTime(), DeveloperTeleport::OnRPC(), OnRPCClearInventory(), OnRPCPluginDayzCreatureDebug(), OnRPCServerLogRecieved(), OnRPCSpawnEntity(), OnRPCSpawnEntityOnCursorDir(), OnRPCSpawnEntityOnGround(), OnRPCSpawnEntityOnGroundPatternGrid() и OnRPCSyncSceneObject().

◆ OnRPC() [5/5]

void OnRPC ( PlayerBase player,
int rpc_type,
ParamsReadContext ctx )
inlineprotected
271 {
272 if ( !GetGame().IsDebug() )
273 {
274 return;
275 }
276
277 switch ( rpc_type )
278 {
279 case ERPCs.DEV_STATS_UPDATE:
280 {
281 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_STATS_UPDATE, player ); break;
282 }
283
284 case ERPCs.DEV_LEVELS_UPDATE:
285 {
286 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_LEVELS_UPDATE, player ); break;
287 }
288
289 case ERPCs.DEV_MODS_UPDATE:
290 {
291 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_MODS_UPDATE, player ); break;
292 }
293
294 case ERPCs.DEV_AGENTS_UPDATE:
295 {
296 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_AGENTS_UPDATE, player ); break;
297 }
298
299 case ERPCs.DEV_STOMACH_UPDATE:
300 {
301 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_STOMACH_UPDATE, player ); break;
302 }
303
304 case ERPCs.DEV_HEALTH_UPDATE:
305 {
306 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_HEALTH_UPDATE, player ); break;
307 }
308
309 case ERPCs.DEV_RPC_STATS_DATA:
310 {
311 OnRPCStats( ctx ); break;
312 }
313
314 case ERPCs.DEV_RPC_LEVELS_DATA:
315 {
316 OnRPCLevels( ctx ); break;
317 }
318
319 case ERPCs.DEV_RPC_MODS_DATA:
320 {
321 OnRPCMods( ctx ); break;
322 }
323
324 case ERPCs.DEV_RPC_MODS_DATA_DETAILED:
325 {
326 OnRPCModsDetailed( ctx ); break;
327 }
328
329 case ERPCs.DEV_RPC_AGENTS_DATA:
330 {
331 OnRPCAgents( ctx ); break;
332 }
333 case ERPCs.DEV_RPC_STOMACH_DATA:
334 {
335 OnRPCStomach( ctx ); break;
336 }
337
338 case ERPCs.DEV_RPC_MODS_ACTIVATE:
339 {
341 }
342 case ERPCs.DEV_RPC_MODS_DETAILED:
343 {
345 }
346
347 case ERPCs.DEV_RPC_MODS_DEACTIVATE:
348 {
350 }
351
352 case ERPCs.DEV_RPC_MODS_LOCK:
353 {
354 int id;
355 bool lock;
357 LockModifier( id, lock, player ); break;
358 }
359
360 case ERPCs.DEV_RPC_MODS_RESET:
361 {
362 player.GetModifiersManager().DeactivateAllModifiers();
363 break;
364 }
365
366 case ERPCs.DEV_RPC_STATS_RESET:
367 {
368 player.GetPlayerStats().ResetAllStats();
369 break;
370 }
371
372 case ERPCs.DEV_RPC_STAT_SET:
373 {
375 break;
376 }
377 case ERPCs.DEV_TEMP_UPDATE:
378 {
380 break;
381 }
382 case ERPCs.DEV_RPC_HEALTH_DATA:
383 {
384 OnRPCHealth(ctx, player); break;
385 }
386
387 case ERPCs.DEV_RPC_HEALTH_SET:
388 {
390 break;
391 }
392 }
393 }
int GetRPCModifierID(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:408
void OnRPCModsDetailed(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:816
void RequestDetailedInfo(int id, notnull PlayerBase player)
Definition PluginDeveloperSync.c:844
void OnRPCLevels(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:715
void OnRPCHealth(ParamsReadContext ctx, PlayerBase player)
Definition PluginDeveloperSync.c:579
void OnRPCAgents(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:952
void DeactivateModifier(int id, PlayerBase player=NULL)
Definition PluginDeveloperSync.c:872
void OnRPCStomach(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:991
void OnRPCStatSet(ParamsReadContext ctx, PlayerBase player)
Definition PluginDeveloperSync.c:505
void EnableUpdate(bool enable, int type, PlayerBase player)
Definition PluginDeveloperSync.c:85
void GetRPCModifierLock(ParamsReadContext ctx, out int id, out bool lock)
Definition PluginDeveloperSync.c:420
void OnRPCStats(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:459
bool GetRPCUpdateState(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:396
void ActivateModifier(int id, PlayerBase player=NULL)
Definition PluginDeveloperSync.c:861
void OnRPCTemp(ParamsReadContext ctx, PlayerBase player)
Definition PluginDeveloperSync.c:917
void OnRPCHealthSet(ParamsReadContext ctx, PlayerBase player)
Definition PluginDeveloperSync.c:642
void OnRPCMods(ParamsReadContext ctx)
Definition PluginDeveloperSync.c:791
void LockModifier(int id, bool lock, PlayerBase player=NULL)
Definition PluginDeveloperSync.c:883

Перекрестные ссылки ActivateModifier(), DeactivateModifier(), EnableUpdate(), GetGame(), GetRPCModifierID(), GetRPCModifierLock(), GetRPCUpdateState(), LockModifier(), OnRPCAgents(), OnRPCHealth(), OnRPCHealthSet(), OnRPCLevels(), OnRPCMods(), OnRPCModsDetailed(), OnRPCStats(), OnRPCStatSet(), OnRPCStomach(), OnRPCTemp() и RequestDetailedInfo().

◆ OnRPCAgents()

void OnRPCAgents ( ParamsReadContext ctx)
inlineprotected
953 {
954 //clear values
955 m_PlayerAgentsSynced.Clear();
956
958 Param1<int> p1 = new Param1<int>(0);
959
960 //get param count
961 int paramCount = 0;
962 if (ctx.Read(p1))
963 paramCount = p1.param1;
964
965 //read values and set
966 for (int i = 0; i < paramCount; i++)
967 {
968 ctx.Read(p4);
969 m_PlayerAgentsSynced.Insert(new SyncedValueAgent(p4.param1, p4.param2, p4.param3, p4.param4));
970 }
971 }
void SyncedValueAgent(string name, string value, int id, float temporaryResistance)
Definition SyncedValue.c:111
ref array< ref SyncedValueAgent > m_PlayerAgentsSynced
Definition PluginDeveloperSync.c:38

Перекрестные ссылки SyncedValueAgent().

Используется в OnRPC().

◆ OnRPCClearInventory()

void OnRPCClearInventory ( PlayerBase player)
inlineprotected
232 {
234 }
override void ClearInventory()
Definition ItemBase.c:8232

Перекрестные ссылки ClearInventory().

Используется в OnRPC().

◆ OnRPCHealth()

void OnRPCHealth ( ParamsReadContext ctx,
PlayerBase player )
inlineprotected
580 {
581 m_TargetHealthSynced.Clear();
582
585
586 int paramCount = 0;
587 if ( ctx.Read(paramsHeader) )
588 {
589 paramCount = paramsHeader.param1;
591 }
592
593 for ( int i = 0; i < paramCount; i++ )
594 {
595 ctx.Read(p);
596 m_TargetHealthSynced.Insert( new SyncedValue( p.param1, p.param2, p.param4, p.param3 ) );
597 }
598 }
void SetTargetChanged(bool state)
Definition PluginDeveloperSync.c:536
Definition SyncedValue.c:2

Перекрестные ссылки SetTargetChanged().

Используется в OnRPC().

◆ OnRPCHealthSet()

void OnRPCHealthSet ( ParamsReadContext ctx,
PlayerBase player )
inlineprotected
643 {
645 if ( !ctx.Read(p) )
646 return;
647
648 int buttonID = p.param1;
649 string zoneName = p.param2;
650 string healthType = p.param3;
651
652 if (buttonID > 3) // target change only
653 {
654 if (buttonID == 4) // ButtonTarget
655 m_HealthObserverMode.Set(player, true);
656 else if (buttonID == 5) // ButtonSelf
657 m_HealthObserverMode.Set(player, false);
658
659 return;
660 }
661
663 if (m_HealthObserverMode.Get(player) == false)
664 target = player;
665 else
666 {
668 target = EntityAI.Cast(itemDiagPlugin.GetWatchedItem(player));
669 }
670
671 if (zoneName == "Global")
672 zoneName = "";
673
674 float zoneMax = target.GetMaxHealth(zoneName, healthType);
675 float zoneCurrentHealth = target.GetHealth(zoneName, healthType);
676 float targetHealth;
677
678 if (buttonID == 0) // ButtonMin
679 targetHealth = 0;
680 else if (buttonID == 1) // ButtonMax
682 else if (buttonID == 2) // ButtonAdd
684 else if (buttonID == 3) // ButtonSubtract
686
688 }
void PluginItemDiagnostic()
Definition PluginItemDiagnostic.c:83
ref map< PlayerBase, bool > m_HealthObserverMode
Definition PluginDeveloperSync.c:42

Перекрестные ссылки GetPlugin() и PluginItemDiagnostic().

Используется в OnRPC().

◆ OnRPCLevels()

void OnRPCLevels ( ParamsReadContext ctx)
inlineprotected
716 {
717 //clear values
718 m_PlayerLevelsSynced.Clear();
719
721
722 //get param count
723 int param_count = 0;
724 if ( ctx.Read(p3) )
725 {
726 param_count = p3.param2;
727 }
728
729 //read values and set
730 for ( int i = 0; i < param_count; i++ )
731 {
732 if ( ctx.Read(p3) )
733 m_PlayerLevelsSynced.Insert( new SyncedValueLevel( p3.param1, p3.param2, p3.param3 ) );
734 }
735 }
void SyncedValueLevel(string name, float value, float value2)
Definition SyncedValue.c:43
ref array< ref SyncedValueLevel > m_PlayerLevelsSynced
Definition PluginDeveloperSync.c:34

Перекрестные ссылки SyncedValueLevel().

Используется в OnRPC().

◆ OnRPCMods()

void OnRPCMods ( ParamsReadContext ctx)
inlineprotected
792 {
793 //clear values
794 m_PlayerModsSynced.Clear();
795
796 //ref Param3<string, float, bool> p = new Param3<string, float, bool>( "", 0, false );
797 Param1<int> p1 = new Param1<int>(0);
799 //get param count
800 int param_count = 0;
801 if ( ctx.Read(p1) )
802 {
803 param_count = (int) p1.param1;
804 }
805
806 //read values and set
807 for ( int i = 0; i < param_count; i++ )
808 {
809 if (ctx.Read(p4))
810 {
811 m_PlayerModsSynced.Insert( new SyncedValueModifier( p4.param1, p4.param2, p4.param3, p4.param4 ) );
812 }
813 }
814 }
Param3 int
ref array< ref SyncedValueModifier > m_PlayerModsSynced
Definition PluginDeveloperSync.c:35
Definition SyncedValue.c:68

Используется в OnRPC().

◆ OnRPCModsDetailed()

void OnRPCModsDetailed ( ParamsReadContext ctx)
inlineprotected
817 {
819
820 //get param count
821 if ( ctx.Read(p1) )
822 {
824 }
825 }
string m_PlayerModsDetailedSynced
Definition PluginDeveloperSync.c:36

Используется в OnRPC().

◆ OnRPCPluginDayzCreatureDebug()

void OnRPCPluginDayzCreatureDebug ( PlayerBase player,
int rpc_type,
ParamsReadContext ctx )
inlineprotected
164 {
167 {
169 }
170 }
void PluginDayZCreatureAIDebug()
Definition PluginDayZCreatureAIDebug.c:101

Перекрестные ссылки GetPlugin() и PluginDayZCreatureAIDebug().

Используется в OnRPC().

◆ OnRPCServerLogRecieved()

void OnRPCServerLogRecieved ( ParamsReadContext ctx)
inlineprotected
222 {
224
225 if ( ctx.Read(param) && param.param1 != "" )
226 {
228 }
229 }
static void ReceivedLogMessageFromServer(string message)
Definition Debug.c:285

Перекрестные ссылки Debug::ReceivedLogMessageFromServer().

Используется в OnRPC().

◆ OnRPCSpawnEntity()

void OnRPCSpawnEntity ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected
264 {
265 #ifdef DEVELOPER
267 if ( ctx.Read(p) )
268 {
269 EntityAI target = EntityAI.Cast(p.param1);
271
272 EntityAI ent = SpawnEntityInInventory( target, p.param2, p.param3, p.param4, p.param5, "", p.param7);
273 if (playerTarget && p.param5)
274 {
275 if (playerTarget.m_PresetSpawned)
276 {
277 playerTarget.m_PresetSpawned = false;
278 playerTarget.m_PresetItems.Clear();
279 }
280 if (ent)
281 {
282 playerTarget.m_PresetItems.Insert(ent);
283 }
284 }
285 }
286 #endif
287 }
FindInventoryLocationType
flags for searching locations in inventory
Definition InventoryLocation.c:17
Param7< EntityAI, string, float, float, bool, string, FindInventoryLocationType > DevSpawnItemParams
Definition PluginDeveloper.c:1
EntityAI SpawnEntityInInventory(notnull EntityAI target, string className, float health, float quantity, bool special=false, string presetName="", FindInventoryLocationType locationType=FindInventoryLocationType.ANY)
tries to spawn item somewhere in inventory
Definition PluginDeveloper.c:502

Перекрестные ссылки SpawnEntityInInventory().

Используется в OnRPC().

◆ OnRPCSpawnEntityOnCursorDir()

void OnRPCSpawnEntityOnCursorDir ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected
238 {
240 if ( ctx.Read(p) )
241 {
242 SpawnEntityOnCursorDir(player, p.param1, p.param2, p.param3, p.param4, p.param5, p.param6, p.param7);
243 }
244 }
EntityAI SpawnEntityOnCursorDir(PlayerBase player, string item_name, float quantity, float distance, float health=-1, bool special=false, string presetName="", bool withPhysics=false)
spawns entity in direction of cursor at specified distance
Definition PluginDeveloper.c:459

Перекрестные ссылки SpawnEntityOnCursorDir().

Используется в OnRPC().

◆ OnRPCSpawnEntityOnGround()

void OnRPCSpawnEntityOnGround ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected
247 {
249 if ( ctx.Read(p) )
250 {
251 SpawnEntityOnGroundPos(player, p.param1, p.param2, p.param3, p.param4, p.param5, p.param6);
252 }
253 }
EntityAI SpawnEntityOnGroundPos(PlayerBase player, string item_name, float health, float quantity, vector pos, bool special=false, bool withPhysics=false)
spawns entity on exact position
Definition PluginDeveloper.c:428

Перекрестные ссылки SpawnEntityOnGroundPos().

Используется в OnRPC().

◆ OnRPCSpawnEntityOnGroundPatternGrid()

void OnRPCSpawnEntityOnGroundPatternGrid ( PlayerBase player,
ParamsReadContext ctx )
inlineprotected
256 {
257 auto p = new Param10<string,int, float, float, int, int, float, float, bool, bool>("",0,0,0,0,0,0,0, false, false);
258 if ( ctx.Read(p) )
259 {
260 SpawnEntityOnGroundPatternGrid(player, p.param1, p.param2, p.param3, p.param4, p.param5, p.param6, p.param7, p.param8, p.param9, p.param10);
261 }
262 }
void SpawnEntityOnGroundPatternGrid(PlayerBase player, string item_name, int count, float health, float quantity, int rows, int columns, float gapRow=1, float gapColumn=1, bool special=false, bool withPhysics=false)
Definition PluginDeveloper.c:340

Перекрестные ссылки SpawnEntityOnGroundPatternGrid().

Используется в OnRPC().

◆ OnRPCStats()

void OnRPCStats ( ParamsReadContext ctx)
inlineprotected
460 {
461 //clear values
462 m_PlayerStatsSynced.Clear();
463
464
466
468
469 //get param count
470 int param_count = 0;
471 if ( ctx.Read(p_count) )
472 {
473 param_count = p_count.param1;
474 }
475
476 //read values and set
477 for ( int i = 0; i < param_count; i++ )
478 {
479 ctx.Read(p);
480 m_PlayerStatsSynced.Insert( new SyncedValue( p.param1, p.param2, false, p.param3 ) );
481 }
482 }
ref array< ref SyncedValue > m_PlayerStatsSynced
Definition PluginDeveloperSync.c:32

Используется в OnRPC().

◆ OnRPCStatSet()

void OnRPCStatSet ( ParamsReadContext ctx,
PlayerBase player )
inlineprotected
506 {
508 if ( ctx.Read(p) )
509 {
510 for ( int i = 0; i < player.m_PlayerStats.GetPCO().Get().Count(); i++ )
511 {
512 string label = player.m_PlayerStats.GetPCO().Get().Get( i ).GetLabel();
513 if ( label == p.param1 )
514 {
515 player.m_PlayerStats.GetPCO().Get().Get( i).SetByFloatEx(p.param2);
516 }
517
518 }
519 }
520
521 }
override float Get()
Definition PlayerStatBase.c:137
@ Count
Definition RandomGeneratorSyncManager.c:8

Перекрестные ссылки Count и Get().

Используется в OnRPC().

◆ OnRPCStomach()

void OnRPCStomach ( ParamsReadContext ctx)
inlineprotected
992 {
993 //clear values
994 m_PlayerStomachSynced.Clear();
995
996 Param1<int> p1 = new Param1<int>(0);
997 int param_count = 0;
998 if ( ctx.Read(p1) )
999 {
1000 param_count = p1.param1;
1001 }
1002
1003 if (param_count)
1004 {
1005 //invidividual stomach items
1006 for ( int i = 0; i < param_count; i++ )
1007 {
1009 ctx.Read(p5);
1010 m_PlayerStomachSynced.Insert(p5);
1011 }
1012 //volume
1014 ctx.Read(p1b);
1015 m_PlayerStomachSynced.Insert(p1b);
1016 //temperature
1018 ctx.Read(paramTemp);
1020 }
1021 }
ref array< ref Param > m_PlayerStomachSynced
Definition PluginDeveloperSync.c:33

Используется в OnRPC().

◆ OnRPCSyncSceneObject()

void OnRPCSyncSceneObject ( ParamsReadContext ctx)
inlineprotected
150 {
152
153 if ( ctx.Read( par ) )
154 {
156 SceneData scene_data = module_scene_editor.GetLoadedScene();
157 SceneObject scene_object = scene_data.GetSceneObjectByEntityAI( par.param2 );
158
159 GetGame().GetCallQueue( CALL_CATEGORY_SYSTEM ).CallByName( scene_object, par.param1, par.param3 );
160 }
161 }
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
Definition SceneData.c:2

Перекрестные ссылки CALL_CATEGORY_SYSTEM, GetGame() и GetPlugin().

Используется в OnRPC().

◆ OnRPCTemp()

void OnRPCTemp ( ParamsReadContext ctx,
PlayerBase player )
inlineprotected
918 {
919 if (GetGame().IsServer() && GetGame().IsMultiplayer())
920 {
921 EnableUpdate( GetRPCUpdateState( ctx ), ERPCs.DEV_TEMP_UPDATE, player );
922 }
923 else if (!GetGame().IsMultiplayer() || GetGame().IsClient())
924 {
926 {
928 }
929 }
930
931 }
Definition UtilityClasses.c:10
static ref Param1< string > PARAM1_STRING
Definition UtilityClasses.c:14
string m_EnvironmentDebugMessage
Definition PluginDeveloperSync.c:37

Перекрестные ссылки EnableUpdate(), GetGame(), GetRPCUpdateState() и CachedObjectsParams::PARAM1_STRING.

Используется в OnRPC().

◆ OnSetFreeCameraEvent()

void OnSetFreeCameraEvent ( PlayerBase player,
FreeDebugCamera camera )
inlineprotected
290 {
292 }
static void OnSetFreeCameraEvent(PlayerBase player, FreeDebugCamera camera)
Definition DeveloperFreeCamera.c:67

Перекрестные ссылки DeveloperFreeCamera::OnSetFreeCameraEvent().

◆ OnSpawnErrorReport()

void OnSpawnErrorReport ( string name)
inlineprotected
295 {
296 PrintString("PluginDeveloper.SpawnEntity() Warning- Cant spawn object: " + name);
297 //DumpStack();
298 PrintString("PluginDeveloper.SpawnEntity() Warning END");
299 }
void PrintString(string s)
Helper for printing out string expression. Example: PrintString("Hello " + var);.
Definition EnScript.c:345

Перекрестные ссылки name и PrintString().

Используется в SpawnEntityAsAttachment(), SpawnEntityInPlayerInventory(), SpawnEntityOnCursorDir() и SpawnEntityOnGroundPos().

◆ OnUIEditorClosed()

void OnUIEditorClosed ( )
inlineprivate
103 {
104 m_IsOpen = false;
105
107
108 m_ModuleDeveloper.ToggleFreeCameraBackPos();
109
110 EditorUpdate();
111 }
void FreeCameraControlEnable()
Definition PluginSceneManager.c:409

◆ OnUIEditorOpened()

void OnUIEditorOpened ( )
inlineprivate
89 {
90 m_IsOpen = true;
91
93
94 GetGame().GetCallQueue(CALL_CATEGORY_SYSTEM).Call(this.FreeCameraControlDisable);
95
97 }
static void EnableFreeCameraSceneEditor(PlayerBase player)
Definition DeveloperFreeCamera.c:18
void FreeCameraControlDisable()
Definition PluginSceneManager.c:424

Перекрестные ссылки CALL_CATEGORY_SYSTEM, DeveloperFreeCamera::EnableFreeCameraSceneEditor(), GetGame() и GetPlayer().

◆ OnUpdate() [1/8]

void OnUpdate ( float delta_time)
private

◆ OnUpdate() [2/8]

override void OnUpdate ( float delta_time)
inlineprivate
199 {
200 super.OnUpdate(delta_time);
201
203
204 if (m_IsActive)
205 {
207 return;
208
209 m_DebugShapes.Insert(Debug.DrawSphere(m_ControlledInfected.GetPosition() + "0 2 0", 0.25, FadeColors.RED));
210 }
211 }
void CleanupDebugShapes(array< Shape > shapesArr)
Definition PluginDayZInfectedDebug.c:477
ref array< Shape > m_DebugShapes
Definition PluginDayZInfectedDebug.c:98

Перекрестные ссылки CleanupDebugShapes(), Debug::DrawSphere() и m_IsActive.

◆ OnUpdate() [3/8]

override void OnUpdate ( float delta_time)
inlineprivate
47 {
48 if(!m_Initialized) return;
49 if(!FreeDebugCamera.GetInstance().IsActive()) return;
50 if(!m_Character) return;
51 m_camera_orientation = FreeDebugCamera.GetInstance().GetOrientation();
53 FreeDebugCamera.GetInstance().SetOrientation(m_camera_orientation); //remove to unlock vertical axis
54 m_cam_pos = FreeDebugCamera.GetInstance().GetPosition();
55 m_character_pos = m_Character.GetPosition();
56 m_camera_dir = FreeDebugCamera.GetInstance().GetDirection();
57
59 m_Character.SetPosition(CalculatePos());//(FreeDebugCamera.GetInstance().GetPosition() + ( m_camera_dir * 2) );
61 m_Character.SetOrientation(m_demoRot);//(FreeDebugCamera.GetInstance().GetPosition() - m_demoPos);
62 }
vector CalculatePos()
Definition PluginCharPlacement.c:69
vector m_character_pos
Definition PluginCharPlacement.c:8
vector m_camera_orientation
Definition PluginCharPlacement.c:13
proto float Normalize()
Normalizes vector. Returns length.
static proto float Atan2(float y, float x)
Returns angle in radians from tangent.
static const float RAD2DEG
Definition EnMath.c:16

Перекрестные ссылки Math::Atan2(), m_Initialized, vector::Normalize() и Math::RAD2DEG.

◆ OnUpdate() [4/8]

override void OnUpdate ( float delta_time)
inlineprivate
24 {
25 if(!m_Initialized) return;
26 if(!FreeDebugCamera.GetInstance().IsActive()) return;
27 if(!m_Ruler) return;
28 vector cam_pos = FreeDebugCamera.GetInstance().GetPosition();
29 vector ruler_pos = m_Ruler.GetPosition();
30 vector camera_dir = FreeDebugCamera.GetInstance().GetDirection();
31 camera_dir.Normalize();
32 m_Ruler.SetPosition(FreeDebugCamera.GetInstance().GetPosition() + ( camera_dir * 2) );
33 m_Ruler.SetAngles(FreeDebugCamera.GetInstance().GetAngles());
34 }

Перекрестные ссылки m_Initialized.

◆ OnUpdate() [5/8]

override void OnUpdate ( float delta_time)
inlineprivate
14 {
15 #ifdef SERVER
16 if ( m_ClientList.Count() != 0 )
17 {
19
20 if ( m_AccuTime > INTERVAL )
21 {
22 m_AccuTime = 0;
23 SendDebug();
24 }
25 }
26 #endif
27 }
const int INTERVAL
Definition PluginRemotePlayerDebugServer.c:8
void SendDebug()
Definition PluginRemotePlayerDebugServer.c:53
float m_AccuTime
[m]
Definition PluginRemotePlayerDebugServer.c:7

◆ OnUpdate() [6/8]

override void OnUpdate ( float delta_time)
inlineprotected
28 {
29 #ifndef NO_GUI
30 if (!m_Player)
31 {
32 return;
33 }
34
36 DrawDebugs();
37 #endif
38 }
void UpdateStatWidgets()
Definition PluginUniversalTemperatureSourceClient.c:155
void DrawDebugs()
Definition PluginUniversalTemperatureSourceClient.c:50

Перекрестные ссылки DrawDebugs(), m_Player и UpdateStatWidgets().

◆ OnUpdate() [7/8]

override void OnUpdate ( float delta_time)
inlineprotected
18 {
19 if (m_ClientList.Count() > 0)
20 {
22
23 if (m_AccuTime > INTERVAL)
24 {
25 m_AccuTime = 0;
26 SendDebug();
27 }
28 }
29 }

Перекрестные ссылки SendDebug().

◆ OnUpdate() [8/8]

override void OnUpdate ( float delta_time)
inlineprivate
10 {
11 ;
12 }

◆ PlayerHitBy()

void PlayerHitBy ( TotalDamageResult damageResult,
int damageType,
PlayerBase player,
EntityAI source,
int component,
string dmgZone,
string ammo )
inlineprotected
190 {
191 if ( player && source )
192 {
193 string playerPrefix = GetPlayerPrefix( player , player.GetIdentity() ) + "[HP: " + player.GetHealth().ToString() + "]";
194 string playerPrefix2;
197
198 if ( source.IsPlayer() )// Fists
200 else
201 playerSource = PlayerBase.Cast( source.GetHierarchyParent() );
202
203 if (playerSource)
205
206 switch ( damageType )
207 {
208 case DamageType.CLOSE_COMBAT: // Player melee, animals, infected
209
210 if (source.IsZombie() || source.IsAnimal()) // Infected & Animals
211 {
212 if (m_HitFilter == 1)
213 break;
214
215 m_DisplayName = source.GetDisplayName();
216
217 LogPrint( playerPrefix + " hit by " + m_DisplayName + m_HitMessage );
218 }
219 else if (source.IsPlayer())// Fists
220 {
222 }
223 else if ( playerSource && (source.IsMeleeWeapon() || source.IsWeapon())) // Melee weapons
224 {
225 m_ItemInHands = source.GetDisplayName();
226
227 LogPrint( playerPrefix + " hit by " + playerPrefix2 + m_HitMessage + " with " + m_ItemInHands );
228 }
229 else
230 {
231 m_DisplayName = source.GetType();
232
233 LogPrint( playerPrefix + " hit by " + m_DisplayName + m_HitMessage );
234 }
235 break;
236
237 case DamageType.FIRE_ARM: // Player ranged
238
239 if ( source.IsWeapon() && playerSource )
240 {
241 m_ItemInHands = source.GetDisplayName();
242 m_Distance = vector.Distance( player.GetPosition(), playerSource.GetPosition() );
243
244 LogPrint( playerPrefix + " hit by " + playerPrefix2 + m_HitMessage + " with " + m_ItemInHands + " from " + m_Distance + " meters ");
245 }
246 else
247 {
248 m_DisplayName = source.GetType();
249
250 LogPrint( playerPrefix + " hit by " + m_DisplayName + m_HitMessage );
251 }
252 break;
253
254 case DamageType.EXPLOSION: // Explosion
255
256 LogPrint( playerPrefix + " hit by explosion (" + ammo + ")" );
257 break;
258
259 case DamageType.STUN: // unused atm
260
261 LogPrint( playerPrefix + " stunned by " + ammo );
262 break;
263
264 case DamageType.CUSTOM: // Others (Vehicle hit, fall, fireplace, barbed wire ...)
265 float globalHealthDamage = damageResult.GetDamage("", "Health");
266 if (ammo == DayZPlayerImplementFallDamage.FALL_DAMAGE_AMMO_HEALTH || ammo == DayZPlayerImplementFallDamage.FALL_DAMAGE_AMMO_SHOCK || ammo == DayZPlayerImplementFallDamage.FALL_DAMAGE_AMMO_HEALTH_OTHER_ATTACHMENTS)
267 {
268 if (globalHealthDamage > 0.0)
269 LogPrint(playerPrefix + " hit by " + ammo);
270 }
271 else if ( source.GetType() == "AreaDamageManager" )
272 {
273 EntityAI parent = EntityAI.Cast( source );
274 if ( parent )
275 {
276 LogPrint( playerPrefix + " hit by " + parent.GetType() + " with " + ammo );
277 }
278 }
279 else
280 {
281 m_DisplayName = source.GetType();
282
283 LogPrint( playerPrefix + " hit by " + m_DisplayName + " with " + ammo );
284 }
285 break;
286
287 default:
288
289 LogPrint("DEBUG: PlayerHitBy() unknown damageType: " + ammo );
290 break;
291 }
292 }
293 else
294 {
295 LogPrint("DEBUG: player/source does not exist");
296 }
297 }
DamageType
exposed from C++ (do not change)
Definition DamageSystem.c:11
void DayZPlayerImplementFallDamage(DayZPlayer pPlayer)
Definition DayZPlayerImplementFallDamage.c:73
string m_ItemInHands
Definition PluginAdminLog.c:14
string m_HitMessage
Definition PluginAdminLog.c:10
int m_HitFilter
Definition PluginAdminLog.c:21
float m_Distance
Definition PluginAdminLog.c:11
string GetHitMessage(TotalDamageResult damageResult, int component, string zone, string ammo)
Definition PluginAdminLog.c:103

Перекрестные ссылки component, DayZPlayerImplementFallDamage(), vector::Distance(), GetHitMessage(), GetPlayerPrefix() и LogPrint().

◆ PlayerKilled()

void PlayerKilled ( PlayerBase player,
Object source )
inlineprotected
117 {
118
119 if (!player || !source)
120 {
121 LogPrint("DEBUG: PlayerKilled() player/source does not exist");
122 return;
123 }
124
125 PlayerBase playerSource = PlayerBase.Cast( EntityAI.Cast( source ).GetHierarchyParent() );
126 if (!playerSource)
127 {
128 playerSource = PlayerBase.Cast( source );
129 }
130
132 if (playerSource)
133 {
135 }
136
137 playerPrefix = GetPlayerPrefix( player , player.GetIdentity() );
138 if (player == source) // deaths not caused by another object (starvation, dehydration)
139 {
140 m_StatWater = player.GetStatWater();
141 m_StatEnergy = player.GetStatEnergy();
142 m_BleedMgr = player.GetBleedingManagerServer();
143
145 {
146 LogPrint( playerPrefix + " died. Stats> Water: " + m_StatWater.Get().ToString() + " Energy: " + m_StatEnergy.Get().ToString() + " Bleed sources: " + m_BleedMgr.GetBleedingSourcesCount().ToString() );
147 }
148 else if ( m_StatWater && m_StatEnergy && !m_BleedMgr )
149 {
150 LogPrint( playerPrefix + " died. Stats> Water: " + m_StatWater.Get().ToString() + " Energy: " + m_StatEnergy.Get().ToString() );
151 }
152 else
153 {
154 LogPrint( playerPrefix + " died. Stats> could not fetch");
155 }
156 }
157 else if (source.IsWeapon() || source.IsMeleeWeapon()) // player
158 {
159 if (ExplosivesBase.Cast(source))
160 {
161 LogPrint( playerPrefix + " killed by " + source.GetDisplayName() );
162 }
163 else if (source.IsMeleeWeapon())
164 {
165 LogPrint( playerPrefix + " killed by " + playerPrefix2 + " with " + source.GetDisplayName() );
166 }
167 else
168 {
169 m_Distance = vector.Distance( player.GetPosition(), playerSource.GetPosition() );
170 LogPrint( playerPrefix + " killed by " + playerPrefix2 + " with " + source.GetDisplayName() + " from " + m_Distance + " meters " );
171 }
172 }
173 else
174 {
175 if (playerSource)
176 {
177 //fists
178 LogPrint( playerPrefix + " killed by " + playerPrefix2 + " with (MeleeFist)" );
179 }
180 else
181 {
182 //rest, Animals, Zombies
183 LogPrint( playerPrefix + " killed by " + source.GetType());
184 }
185
186 }
187 }
PlayerStat< float > m_StatEnergy
Definition PluginAdminLog.c:18
PlayerStat< float > m_StatWater
Definition PluginAdminLog.c:17
BleedingSourcesManagerServer m_BleedMgr
Definition PluginAdminLog.c:19

Перекрестные ссылки vector::Distance(), GetPlayerPrefix() и LogPrint().

◆ PlayerList()

void PlayerList ( )
inlineprotected
383 {
384 GetGame().GetPlayers( m_PlayerArray );
385
386 if ( m_PlayerArray.Count() != 0 )
387 {
388 LogPrint( "##### PlayerList log: " + m_PlayerArray.Count().ToString() + " players" );
389
390 foreach ( Man player: m_PlayerArray )
391 {
392 m_Player = PlayerBase.Cast(player);
393 m_PlayerPrefix = GetPlayerPrefix( m_Player , m_Player.GetIdentity() );
394
396 }
397
398 LogPrint( "#####" );
399 }
400 }
autoptr array< Man > m_PlayerArray
Definition PluginAdminLog.c:27

Перекрестные ссылки GetGame(), GetPlayerPrefix(), LogPrint(), m_Player и m_PlayerArray.

◆ PlayerTeleportedLog()

void PlayerTeleportedLog ( notnull PlayerBase player,
vector startPos,
vector targetPos,
string reason )
inlineprotected
403 {
405
406 LogPrint(m_PlayerPrefix + " was teleported from: " + startPos.ToString() + " to: " + targetPos.ToString() + ". Reason: " + reason);
407 }

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ PlayPause()

void PlayPause ( )
inlineprotected
57 {
58 if( GetGame().GetUIManager().GetMenu() )
59 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_P );
60 }

Перекрестные ссылки GetGame().

◆ PluginAdminLog()

void PluginAdminLog ( )
inlineprotected
43 {
44 m_HitFilter = GetGame().ServerConfigGetInt("adminLogPlayerHitsOnly"); // 1 - log player hits only / 0 - log all hits ( animals/infected )
45 m_PlacementFilter = GetGame().ServerConfigGetInt("adminLogPlacement"); // 1 - log placement ( traps, tents )
46 m_ActionsFilter = GetGame().ServerConfigGetInt("adminLogBuildActions"); // 1 - log basebuilding actions ( build, dismantle, destroy )
47 m_PlayerListFilter = GetGame().ServerConfigGetInt("adminLogPlayerList"); // 1 - log periodic player list with position every 5 minutes
48
50
51 if ( m_PlayerListFilter == 1 )
52 {
53 m_Timer = new Timer();
54 m_Timer.Run( TIMER_PLAYERLIST , this, "PlayerList", NULL, true );
55 }
56 }
const int TIMER_PLAYERLIST
Definition PluginAdminLog.c:28
int m_PlayerListFilter
Definition PluginAdminLog.c:24
ref Timer m_Timer
Definition PluginAdminLog.c:26

Перекрестные ссылки GetGame(), m_ActionsFilter и m_Timer.

◆ PluginConfigViewer()

void PluginConfigViewer ( )
inlineprivate
4 {
5 }

◆ PluginDayZInfectedDebug()

void PluginDayZInfectedDebug ( )
inlineprivate
104 {
105 #ifndef NO_GUI
107 #endif
108 }
void CreateModuleWidgets()
Definition PluginDayZInfectedDebug.c:214

Перекрестные ссылки CreateModuleWidgets().

◆ PluginDeveloper()

void PluginDeveloper ( )
inlineprotected
50 {
51
52 }

◆ PluginDeveloperSync()

void PluginDeveloperSync ( )
inlineprotected
52 {
62
63 m_StatsUpdateStatus = false;
65 m_ModsUpdateStatus = false;
68 }
bool m_StatsUpdateStatus
Definition PluginDeveloperSync.c:45
ref map< PlayerBase, EntityAI > m_HealthObserverEntity
Definition PluginDeveloperSync.c:43
bool m_StomachUpdateStatus
Definition PluginDeveloperSync.c:49
bool m_ModsUpdateStatus
Definition PluginDeveloperSync.c:47
bool m_AgentsUpdateStatus
Definition PluginDeveloperSync.c:48
bool m_LevelsUpdateStatus
Definition PluginDeveloperSync.c:46

◆ PluginDrawCheckerboard()

void PluginDrawCheckerboard ( )
inlineprivate
10 {
12 }
void CreateWidgetOverlay()
Definition PluginDrawCheckerboard.c:16

Перекрестные ссылки CreateWidgetOverlay().

◆ PluginFileHandler()

void PluginFileHandler ( )
inlineprivate
25 {
27 m_LineLimit = -1;
28
29 LoadFile();
30 }
bool LoadFile()
Definition PluginFileHandler.c:57

◆ PluginHorticulture()

void PluginHorticulture ( )
inlineprivate
6 {
8
10 }
void LoadFromCfg()
Definition PluginHorticulture.c:12

Перекрестные ссылки LoadFromCfg().

◆ PluginKeyBinding()

void PluginKeyBinding ( )
inlineprivate
20 {
21 if ( instance == null )
22 {
23 instance = this;
24 }
25 }

◆ PluginMessageManager()

void PluginMessageManager ( )
inlineprivate
10 {
11 for (int i = 0; i < NUM_OF_CHANNELS; i++)
12 {
14 }
15 }
const int NUM_OF_CHANNELS
Definition constants.c:332

Перекрестные ссылки NUM_OF_CHANNELS.

◆ PluginObjectsInteractionManager()

void PluginObjectsInteractionManager ( )
inlineprivate
10 {
13 //TIMERDEPRECATED - timer for decaying objects
14 m_DecayTimer = new Timer();
15 m_DecayTimer.Run(TICK_RATE, this, "Decay", NULL,true);
16 }
ref Timer m_DecayTimer
Definition PluginObjectsInteractionManager.c:7

Перекрестные ссылки m_DecayTimer.

◆ PluginPlayerStatus()

void PluginPlayerStatus ( )
inlineprivate
9 {
10 m_NotifiersLabel = new multiMap<int, string>; // [key] label
11 m_NotifiersIndexColor = new multiMap<int, int>; // [key] index, color
12
13 m_NotifiersIcons = new multiMap<int, string>; // [key] iconName
14 m_NotifiersIcons.Insert( NTFKEY_HUNGRY, "iconHunger" );
15 m_NotifiersIcons.Insert( NTFKEY_THIRSTY, "iconThirsty" );
16 m_NotifiersIcons.Insert( NTFKEY_SICK, "iconHealth" );
17 m_NotifiersIcons.Insert( NTFKEY_BACTERIA, "iconBacteria" );
18 m_NotifiersIcons.Insert( NTFKEY_BLEEDISH, "iconBlood" );
19 m_NotifiersIcons.Insert( NTFKEY_FEVERISH, "iconTemperature" );
20 m_NotifiersIcons.Insert( NTFKEY_FRACTURE, "iconFracture" );
21 }
const int NTFKEY_BACTERIA
Definition _constants.c:45
const int NTFKEY_SICK
Definition _constants.c:40
enum eBadgeLevel NTFKEY_THIRSTY
const int NTFKEY_HUNGRY
Definition _constants.c:34
const int NTFKEY_FRACTURE
Definition _constants.c:37
const int NTFKEY_BLEEDISH
Definition _constants.c:42
const int NTFKEY_FEVERISH
Definition _constants.c:39
ref multiMap< int, string > m_NotifiersLabel
Definition PluginPlayerStatus.c:3
ref multiMap< int, int > m_NotifiersIndexColor
Definition PluginPlayerStatus.c:4

Перекрестные ссылки NTFKEY_BACTERIA, NTFKEY_BLEEDISH, NTFKEY_FEVERISH, NTFKEY_FRACTURE, NTFKEY_HUNGRY, NTFKEY_SICK и NTFKEY_THIRSTY.

◆ PluginSceneManager()

void PluginSceneManager ( )
inlineprivate
22 {
23 if ( instance == NULL )
24 {
25 instance = this;
26 }
27 }

◆ PluginTransmissionAgents()

void PluginTransmissionAgents ( )
inlineprivate
15 {
16 //add new agents here
26 }
Definition HeavyMetalAgent.c:2
Definition InfluenzaAgent.c:2
void RegisterAgent(AgentBase agent)
Definition PluginTransmissionAgents.c:28
Definition WoundAgent.c:2

Перекрестные ссылки RegisterAgent().

◆ PluginUniversalTemperatureSourceClient()

void PluginUniversalTemperatureSourceClient ( )
inlineprotected

◆ PluginUniversalTemperatureSourceServer()

void PluginUniversalTemperatureSourceServer ( )
inlineprotected

◆ PluginVariables()

void PluginVariables ( )
inlineprivate
4 {
5 m_Id = 0;
7 // ("variable name")
8 RegisterVariable("varNote");
9 RegisterVariable("varColor");
10
11 }
int m_Id
Definition PluginVariables.c:24
void RegisterVariable(string name)
Definition PluginVariables.c:17

Перекрестные ссылки m_Id и RegisterVariable().

◆ PossesInfected()

void PossesInfected ( )
inlineprotected
372 {
373 ResetValues();
374 FreeDebugCamera.GetInstance().SetActive(true);
375 m_ControlledInfected = DayZInfected.Cast(FreeDebugCamera.GetInstance().GetCrosshairObject());
376 FreeDebugCamera.GetInstance().SetActive(false);
377 }
Definition ZombieBase.c:2

Перекрестные ссылки ResetValues().

◆ PrintedDebug()

void PrintedDebug ( )
inlineprotected
225 {
227 {
228 PrintString("-------------------------------------");
229 utsd.Debug();
230 PrintString("-------------------------------------");
231 }
232 }

Перекрестные ссылки m_UTemperatureSourceDebugs и PrintString().

◆ PrintLogClient()

void PrintLogClient ( string msg_log)
inlineprotected
120 {
121 if ( g_Game.GetUIManager().IsMenuOpen(MENU_SCRIPTCONSOLE) )
122 {
125 }
126 }
const CallID CALL_ID_SCR_CNSL_ADD_PRINT
Definition Dispatcher.c:6
Param CallMethod(CallID call_id, Param params)
Definition Dispatcher.c:36

Перекрестные ссылки CALL_ID_SCR_CNSL_ADD_PRINT, CallMethod(), g_Game и MENU_SCRIPTCONSOLE.

◆ ProcessUniversalTemperatureSources()

void ProcessUniversalTemperatureSources ( )
inlineprotected

next temp source is too far (not cleaned on server, like in Environment, client need to know about all sources in MAXRANGE)

90 {
91 if (m_UTemperatureSourceDebugs.Count() == 0)
92 {
94
95 return;
96 }
97
99
100 // get temperature from the source (based on distance), save it for min/max filtering
102 {
104 if (vector.DistanceSq(m_Player.GetPosition(), utsd.GetValue(0).ToVector()) > Math.SqrFloat(utsd.GetValue(2).ToFloat()))
105 continue;
106
108 }
109
110 float min = MiscGameplayFunctions.GetMinValue(utsTemperatures);
111 float max = MiscGameplayFunctions.GetMaxValue(utsTemperatures);
112
113 if (max > 0 && min < 0)
114 {
115 m_UTSAverageTemperature = (max + min) * 0.5;
116 }
117 else
118 {
120 }
121
122 }
float CalcTemperatureFromTemperatureSource(notnull UTemperatureSourceDebug utsd)
Definition PluginUniversalTemperatureSourceClient.c:124
Definition UniversalTemperatureSource.c:56
static proto native float DistanceSq(vector v1, vector v2)
Returns the square distance between tips of two 3D vectors.
static proto float SqrFloat(float f)
Returns squared value.

Перекрестные ссылки CalcTemperatureFromTemperatureSource(), vector::DistanceSq(), m_Player, m_UTemperatureSourceDebugs и Math::SqrFloat().

Используется в DrawDebugs().

◆ QuickSort()

void QuickSort ( TStringArray arr,
int left,
int right )
inlineprivate
880 {
881 int j;
882
883 if ( left < right )
884 {
886 QuickSort( arr, left, j - 1 );
887 QuickSort( arr, j + 1, right );
888 }
889 }
int QuickSortPartition(TStringArray arr, int left, int right)
Definition PluginDeveloper.c:835
void QuickSort(TStringArray arr, int left, int right)
Definition PluginDeveloper.c:879

Перекрестные ссылки QuickSort() и QuickSortPartition().

Используется в QuickSort() и SortStringArray().

◆ QuickSortPartition()

int QuickSortPartition ( TStringArray arr,
int left,
int right )
inlineprivate
836 {
837 string pivot = arr.Get( left );
838 int i = left;
839 int j = right + 1;
840 string temp;
841
842 while ( true )
843 {
844 while ( true )
845 {
846 i++;
847 if ( i > right || arr.Get(i) > pivot )
848 {
849 break;
850 }
851 }
852
853 while ( true )
854 {
855 j--;
856 if ( arr.Get(j) <= pivot )
857 {
858 break;
859 }
860 }
861
862 if ( i >= j )
863 {
864 break;
865 }
866
867 temp = arr.Get( i );
868 arr.Set( i, arr.Get(j) );
869 arr.Set( j, temp );
870 }
871
872 temp = arr.Get( left );
873 arr.Set( left, arr.Get(j) );
874 arr.Set( j, temp );
875
876 return j;
877 }

Используется в QuickSort().

◆ RegisterAgent()

void RegisterAgent ( AgentBase agent)
inlineprivate
29 {
30 m_AgentList.Insert(agent.GetAgentType(), agent);
31 }

Используется в PluginTransmissionAgents().

◆ RegisterKeyBind()

void RegisterKeyBind ( int ui_id,
int key_code1,
int key_code2,
string plugin_name,
string fnc_name,
string info_shortcut,
string info_description )
inlineprotected

◆ RegisterMouseBind()

void RegisterMouseBind ( int ui_id,
int mouse_button,
int mouse_event,
string plugin_name,
string fnc_name,
string info_shortcut,
string info_description )
inlineprotected

◆ RegisterPlayer()

void RegisterPlayer ( PlayerBase player)
inlineprotected
241 {
242 if ( !IsPlayerRegistered( player ) )
243 {
245 }
246 }
void RegisterPlayerData()
Definition PluginDeveloperSync.c:19

Перекрестные ссылки IsPlayerRegistered() и RegisterPlayerData().

Используется в EnableUpdate().

◆ RegisterVariable()

void RegisterVariable ( string name)
inlineprivate
18 {
19 m_Id++;
20 m_Variables.Set(m_Id,name);//REWORK.V maybe have 2 maps, one with key
21
22 }

Перекрестные ссылки m_Id и name.

Используется в PluginVariables().

◆ Release()

void Release ( Object target)
inlineprivate
43 {
44 if ( target && m_LockedObjects.Count() > 0 )
45 {
46 for ( int i = 0; i < m_LockedObjects.Count(); i++ )
47 {
48 if ( m_LockedObjects.Get(i) == target )
49 {
50 m_LockedObjects.Remove(i);
51 m_LockedObjectsDecay.Remove(i);
52 break;
53 }
54 }
55 }
56 }

◆ ReleaseFocus() [1/2]

void ReleaseFocus ( )
inlineprivate
153 {
154 if (m_HasFocus)
155 {
156 GetGame().GetInput().ChangeGameFocus(-1);
157 GetGame().GetUIManager().ShowUICursor(false);
158 m_HasFocus = false;
159 }
160 }

Перекрестные ссылки GetGame() и m_HasFocus.

Используется в ToggleDebugWindowEventOld(), ToggleDebugWindowEventP(), ToggleDebugWindowSetMode(), ToggleDebugWindowSetMode() и ~PluginDayzPlayerDebug().

◆ ReleaseFocus() [2/2]

void ReleaseFocus ( )
inlineprotected
1033 {
1034 GetGame().GetInput().ChangeGameFocus( -1 );
1035 GetGame().GetUIManager().ShowUICursor( false );
1036 }

Перекрестные ссылки GetGame().

◆ RemoveAgent()

static void RemoveAgent ( EntityAI target,
int agent_id )
inlinestaticprivate
73 {
74 target.RemoveAgent( agent_id );
75 }

◆ RemoveAllAgents()

void RemoveAllAgents ( EntityAI target)
inlineprivate
68 {
69 target.RemoveAllAgents();
70 }

◆ Repair()

bool Repair ( PlayerBase player,
ItemBase repair_kit,
Object item,
float specialty_weight,
string damage_zone = "",
bool use_kit_qty = true )
inlineprivate
4 {
5 switch (item.GetHealthLevel(damage_zone))
6 {
8 break;
10 #ifdef DEVELOPER
11 Debug.Log("repairing from GameConstants.STATE_RUINED");
12 #endif
14 break;
17 {
18 CalculateHealth(player, repair_kit, item, specialty_weight,/* GameConstants.DAMAGE_PRISTINE_VALUE,*/ damage_zone, use_kit_qty);
19 }
20 break;
21 default:
23 break;
24 }
25
26 return true;
27 }
void CalculateHealth(PlayerBase player, ItemBase kit, Object item, float specialty_weight, string damage_zone="", bool use_kit_qty=true)
Definition PluginRepairing.c:29
const int STATE_PRISTINE
Definition constants.c:811

Перекрестные ссылки Debug::Log(), GameConstants::STATE_PRISTINE, GameConstants::STATE_RUINED и GameConstants::STATE_WORN.

◆ RequestDetailedInfo()

void RequestDetailedInfo ( int id,
notnull PlayerBase player )
inlineprotected
845 {
846 int modifier_id = Math.AbsInt( id );
847 m_RegisteredPlayers.Get(player).m_DetailedModifierIndex = modifier_id;
848
849 if (IsSetSystemInBitmask(player, PDS_SYSTEMS.MODS_DETAILED ))
850 {
851 SetSystemInBitmask(player, PDS_SYSTEMS.MODS_DETAILED, false);
852 }
853 else
854 {
855 SetSystemInBitmask(player, PDS_SYSTEMS.MODS_DETAILED, true);
856 }
857 }
bool IsSetSystemInBitmask(PlayerBase player, int system_bit)
Definition PluginDeveloperSync.c:227

Перекрестные ссылки Math::AbsInt(), IsSetSystemInBitmask() и SetSystemInBitmask().

Используется в OnRPC().

◆ RequestUniversalTemperatureSources()

void RequestUniversalTemperatureSources ( PlayerBase player,
int enable )
inlineprotected
206 {
207 //Debug.Log("RequestUniversalTemperatureSources called", "PluginUniversalTemperatureSourceClient");
208
209 if (!enable)
210 {
212 m_Player = null;
213 EnableWidgets(false);
214 return;
215 }
216
217 ScriptRPC rpc = new ScriptRPC();
218 rpc.Write(enable);
219 rpc.Send(player, ERPCs.DEV_REQUEST_UTS_DEBUG, true, player.GetIdentity());
220
222 }
void EnableWidgets(bool enable)
Definition PluginUniversalTemperatureSourceClient.c:147
Definition gameplay.c:105

Перекрестные ссылки EnableWidgets() и m_Player.

◆ ResetGUI()

void ResetGUI ( )
inlineprivate
897 {
898 if ( GetGame() && GetGame().GetMission() )
899 {
900 GetGame().GetMission().ResetGUI();
901 }
902 }

Перекрестные ссылки GetGame().

◆ ResetValues()

void ResetValues ( )
inlineprivate
352 {
353 m_CH_DoTurn = false;
354 m_CH_DoVault = false;
355 m_CH_DoKnucleOut = false;
356 m_CH_GoToCrawl = false;
357 m_CH_DoHit = false;
358 m_CH_StartDeath = false;
359 m_CH_DoAttack = false;
360 m_MovementSpeedEB.SetText("0");
361 m_MainWnd.Update();
362 }

Перекрестные ссылки m_MainWnd.

Используется в OnClick() и PossesInfected().

◆ RestoreSceneObjectsLinks()

void RestoreSceneObjectsLinks ( )
inlineprivate
327 {
329
330 for ( int i = 0; i < scene_objects.Count(); i++ )
331 {
333
334 array<int> linked_scene_objects_indices = scene_object.m_LinkedSceneObjectsIndices;
336 {
337 for ( int j = 0; j < linked_scene_objects_indices.Count(); j++ )
338 {
340 if ( index >= 0 && index < scene_objects.Count() )
341 {
342 scene_object.LinkSceneObject( scene_objects.Get(index), false );
343
344//PrintString("Load link: "+ ToString(scene_object.GetObject()) +" <-> "+ ToString(scene_objects.Get(index).GetObject()) );
345 }
346 }
347 }
348 scene_object.m_LinkedSceneObjectsIndices = NULL;
349 }
350 }

◆ RulerAddPoint()

void RulerAddPoint ( )
inlineprivate
938 {
940
941 m_RulerPoints.Insert( point_pos );
942
944 }
vector GetMousePositionInScene()
Definition PluginSceneManager.c:1263
void EditorUpdateRuler()
Definition PluginSceneManager.c:1242

◆ RulerClearVisuals()

void RulerClearVisuals ( )
inlineprivate
950 {
951 for ( int i = 0; i < m_RulerLines.Count(); ++i )
952 {
953 m_RulerLines.Get(i).Destroy();
954 }
955 m_RulerLines.Clear();
956
957 for ( int j = 0; j < m_RulerSpheres.Count(); ++j )
958 {
959 m_RulerSpheres.Get(j).Destroy();
960 }
961 m_RulerSpheres.Clear();
962 }

◆ RulerDelete()

void RulerDelete ( )
inlineprivate
968 {
969 m_RulerPoints.Clear();
970
972 }

◆ RulerToggle()

void RulerToggle ( )
inlineprivate
913 {
914 if ( IsRulerActivated() )
915 {
916 m_RulerActivated = false;
917 }
918 else
919 {
920 m_RulerActivated = true;
921 }
922
924 }

◆ Save()

void Save ( )
inlineprotected
51 {
52 if( GetGame().GetUIManager().GetMenu() )
53 GetGame().GetUIManager().GetMenu().OnKeyPress( null, 0, 0, KeyCode.KC_S );
54 }

Перекрестные ссылки GetGame().

◆ SaveFile()

bool SaveFile ( )
inlineprivate
83 {
84 if ( m_ReadOnly )
85 {
86 return false;
87 }
88
90 {
92 }
93
94 //Log("SaveFile -> Opening File: "+GetFileName());
95
97
98 if ( file_index == 0 )
99 {
100 return false;
101 }
102
103 for ( int i = 0; i < m_FileContent.Count(); ++i)
104 {
105 //Log("SaveFile -> Writing: "+m_FileContent.Get(i));
107 }
108
110
111 return true;
112 }
string GetSubFolderName()
Definition PluginFileHandler.c:47
proto native bool MakeDirectory(string name)
Makes a directory.
proto bool FileExist(string name)
Check existence of file.
proto void FPrintln(FileHandle file, void var)
Write to file and add new line.

Перекрестные ссылки CloseFile(), FileExist(), FPrintln(), PluginFileHandler::GetFileName(), GetSubFolderName(), MakeDirectory() и OpenFile().

◆ SceneCanDelete()

bool SceneCanDelete ( string scene_name)
inlineprivate
791 {
792 if ( scene_name == m_SceneData.GetNameScene() )
793 {
794 return false;
795 }
796
797 return true;
798 }

◆ SceneDelete()

bool SceneDelete ( string scene_name)
inlineprivate
804 {
805 if ( scene_name == m_SceneData.GetNameScene() )
806 {
807 return false;
808 }
809
810 m_ModuleConfigScene.SceneDelete(scene_name);
811
812 EditorUpdate();
813
814 return true;
815 }

◆ SceneDuplicate()

void SceneDuplicate ( string scene_name)
inlineprivate
821 {
822 m_ModuleConfigScene.SceneDuplicate(scene_name);
823
824 EditorUpdate();
825 }

◆ SceneEditorMenuCmdPopup()

void SceneEditorMenuCmdPopup ( string message)
inlineprivate
1212 {
1214 }
const CallID CALL_ID_SCENE_EDITOR_COMMAND
Definition Dispatcher.c:9
Definition PPEConstants.c:68
static const int SCENE_EDITOR_CMD_POPUP
Definition PluginSceneManager.c:14

Перекрестные ссылки CALL_ID_SCENE_EDITOR_COMMAND и CallMethod().

◆ SceneEditorMenuCmdRefresh()

void SceneEditorMenuCmdRefresh ( )
inlineprivate
1204 {
1206 }
static const int SCENE_EDITOR_CMD_REFRESH
Definition PluginSceneManager.c:13

Перекрестные ссылки CALL_ID_SCENE_EDITOR_COMMAND и CallMethod().

◆ SceneEditorMenuCmdSave()

void SceneEditorMenuCmdSave ( )
inlineprivate
1220 {
1222 }
static const int SCENE_EDITOR_CMD_SAVE
Definition PluginSceneManager.c:15

Перекрестные ссылки CALL_ID_SCENE_EDITOR_COMMAND и CallMethod().

◆ SceneGetName()

string SceneGetName ( )
inlineprivate
846 {
847 if ( m_SceneData )
848 {
849 return m_SceneData.GetNameScene();
850 }
851
852 return STRING_EMPTY;
853 }
const string STRING_EMPTY
Definition constants.c:54

Перекрестные ссылки STRING_EMPTY.

◆ SceneLoad()

void SceneLoad ( string scene_name)
inlineprivate
755 {
756 SceneUnload();
757
758 PluginMissionConfig.GetInstance().SetSceneEditorName(scene_name);
760
761 if ( !(GetGame().IsMultiplayer() && GetGame().IsServer()) )
762 {
763 EditorUpdate();
764 }
765 }

Перекрестные ссылки GetGame().

◆ SceneRename()

void SceneRename ( string scene_name,
string new_name )
inlineprivate
831 {
833
834 if ( scene_name == m_SceneData.GetNameScene() )
835 {
836 m_SceneData.SetNameScene(new_name);
837 }
838
839 EditorUpdate();
840 }

◆ SceneSave()

void SceneSave ( )
inlineprivate
780 {
781 m_ModuleConfigScene.ClearParams();
782 m_ModuleConfigScene.SceneDataSave(m_SceneData);
784 EditorUpdate();
785 }
void SceneEditorMenuCmdSave()
Definition PluginSceneManager.c:1219

◆ SceneUnload()

void SceneUnload ( )
inlineprivate
771 {
774 }

◆ ScriptHistoryBack()

void ScriptHistoryBack ( )
inlineprivate
802 {
803 // Console key press
804 if ( g_Game.GetUIManager().IsMenuOpen(MENU_SCRIPTCONSOLE) )
805 {
807 }
808 }
const CallID CALL_ID_SCR_CNSL_HISTORY_BACK
Definition Dispatcher.c:4

Перекрестные ссылки CALL_ID_SCR_CNSL_HISTORY_BACK, CallMethod(), g_Game и MENU_SCRIPTCONSOLE.

◆ ScriptHistoryNext()

void ScriptHistoryNext ( )
inlineprivate
793 {
794 // Console key press
795 if ( g_Game.GetUIManager().IsMenuOpen(MENU_SCRIPTCONSOLE) )
796 {
798 }
799 }
const CallID CALL_ID_SCR_CNSL_HISTORY_NEXT
Definition Dispatcher.c:5

Перекрестные ссылки CALL_ID_SCR_CNSL_HISTORY_NEXT, CallMethod(), g_Game и MENU_SCRIPTCONSOLE.

◆ SelectAndFocusPlayerObject()

void SelectAndFocusPlayerObject ( )
inlineprivate
882 {
884 for ( int i = 0; i < scene_objects.Count(); i++ )
885 {
886 if ( scene_objects.Get(i).GetObject() == GetGame().GetPlayer() )
887 {
890 break;
891 }
892 }
893 }
void SelectedObjectFocus()
Definition PluginSceneManager.c:610

Перекрестные ссылки GetGame() и GetPlayer().

◆ SelectClassName()

void SelectClassName ( string class_name)
inlineprivate
402 {
404 }

Перекрестные ссылки class_name.

◆ SelectedObjectAddAttachment()

void SelectedObjectAddAttachment ( string att_name)
inlineprivate
646 {
648 {
650 }
651
652 EditorUpdate();
653 }
void AddAttachment(string att_name)
Definition SceneObject.c:546

◆ SelectedObjectDuplicate()

void SelectedObjectDuplicate ( )
inlineprivate
500 {
502
503 if ( selected_obj )
504 {
505 if ( selected_obj.GetObject() == PLAYER )
506 {
507 return;
508 }
509
511
512 vector new_pos = selected_obj.GetPosition() + Vector(1, 0, 1) + size;
513
514 SceneObject obj = m_SceneData.CreateSceneObject(selected_obj.GetTypeName(), new_pos );
515 obj.SetRotation(selected_obj.GetRotation());
516
517 array<EntityAI> attachments = selected_obj.GetAttachments();
518 for ( int i = 0; i < attachments.Count(); i++ )
519 {
520 obj.AddAttachment( attachments.Get(i).GetType() );
521 }
522
523 SelectObject(obj);
524 }
525 }
void SetRotation(float rot)
Definition SceneObject.c:504
vector GetSize()
Definition SceneObject.c:143

Перекрестные ссылки SceneObject::AddAttachment(), PLAYER, SceneObject::SetRotation() и Vector().

◆ SelectedObjectFocus()

void SelectedObjectFocus ( )
inlineprivate
611 {
613
614 if ( selected_obj )
615 {
616 vector cam_pos = FreeDebugCamera.GetInstance().GetPosition();
617 vector obj_pos = selected_obj.GetPosition();
619
620 vector obj_size = selected_obj.GetSize();
621
623
624 cam_pos[0] = cam_pos[0] + ( obj_size[0] * 2 );
625 cam_pos[1] = cam_pos[1] + obj_size[1] + 0.5;
626 cam_pos[2] = cam_pos[2] + ( obj_size[2] * 2 );
627
628 view_target[1] = view_target[1] + (obj_size[1] * 0.5);
629
631 cam_dir.Normalize();
632
633 FreeDebugCamera.GetInstance().SetPosition(cam_pos);
634 FreeDebugCamera.GetInstance().SetDirection(cam_dir);
635
636 //vector debug_pos = cam_pos + (cam_dir * 50);
637 //Debug.DrawLine(cam_pos, debug_pos);
638 //Debug.DrawSphere(cam_pos);
639 }
640 }

◆ SelectedObjectRemoveAttachment()

void SelectedObjectRemoveAttachment ( EntityAI e)
inlineprivate
659 {
661 {
663 }
664
665 EditorUpdate();
666 }
void RemoveAttachment(EntityAI e)
Definition SceneObject.c:562

◆ SelectedObjectSetDamage()

void SelectedObjectSetDamage ( float value)
inlineprivate
595 {
598
599 if ( selected_obj )
600 {
601 selected_obj.SetHealth(Math.Clamp ( value, 0, selected_obj_EAI.GetMaxHealth("", "") ));
602
603 EditorUpdate();
604 }
605 }

Перекрестные ссылки Math::Clamp().

◆ SelectedObjectSetPosX()

void SelectedObjectSetPosX ( float value)
inlineprivate
544 {
546
547 if ( selected_obj )
548 {
549 vector v = selected_obj.GetPosition();
550 v[0] = value;
551 selected_obj.SetPosition(v);
552
553 EditorUpdate();
554 }
555 }

◆ SelectedObjectSetPosY()

void SelectedObjectSetPosY ( float value)
inlineprivate
561 {
563
564 if ( selected_obj )
565 {
566 vector v = selected_obj.GetPosition();
567 v[1] = value;
568 selected_obj.SetPosition(v);
569
570 EditorUpdate();
571 }
572 }

◆ SelectedObjectSetPosZ()

void SelectedObjectSetPosZ ( float value)
inlineprivate
578 {
580
582 {
583 vector v = selected_obj.GetPosition();
584 v[2] = value;
585 selected_obj.SetPosition(v);
586
587 EditorUpdate();
588 }
589 }

◆ SelectedObjectSetRot()

void SelectedObjectSetRot ( float dir)
inlineprivate
531 {
533 {
535
536 EditorUpdate();
537 }
538 }

◆ SelectObject()

void SelectObject ( SceneObject obj)
inlineprivate
475 {
477 {
478 return;
479 }
480
482
483 m_SelectedObject = obj;
484
485 EditorUpdate();
486 }

Перекрестные ссылки m_SelectedObject.

◆ SendDebug() [1/2]

void SendDebug ( )
inlineprivate
54 {
55#ifdef DIAG_DEVELOPER
58
59 for(int i = 0; i < m_ClientList.Count(); ++i)
60 {
62 if (player)
63 {
64 ScriptRPC rpc = new ScriptRPC();
66
68 {
69 if (player2)
70 {
71 player_damage.Insert(value);
72
73 }
74 //int xs = 1 + 1;
75 }
76
77 rpc.Write(player_damage);
78
79 rpc.Send(player, ERPCs.DEV_PLAYER_DEBUG_DATA, true, player.GetIdentity());
80 m_PlayerDebugDamage.Clear();
81 }
82 else
83 {
84 m_ClientList.Remove(i);
85 --i;
86 }
87 }
88#endif
89 }
void GatherPlayerInfo()
Definition PluginRemotePlayerDebugServer.c:39

Перекрестные ссылки m_PlayerDebugDamage и m_PlayerDebugStats.

Используется в OnUpdate().

◆ SendDebug() [2/2]

void SendDebug ( )
inlineprotected
82 {
83 int clientCount = m_ClientList.Count();
85 {
86 if (player)
87 {
89 ScriptRPC rpc = new ScriptRPC();
91 rpc.Send(player, ERPCs.DEV_UTS_DEBUG_DATA, true, player.GetIdentity());
92 }
93 else
94 m_ClientList.RemoveItem(player);
95 }
96 }
void GatherTemperatureSources(PlayerBase player)
Definition PluginUniversalTemperatureSourceServer.c:31

Перекрестные ссылки GatherTemperatureSources() и m_ClientList.

◆ SendRPCAgents()

void SendRPCAgents ( PlayerBase player)
inlineprotected
938 {
939 //write and send values
940 if ( ( player && player.GetIdentity() && player.m_AgentPool != null ) || ( player && !GetGame().IsMultiplayer() && player.m_AgentPool != null ) )
941 {
942
943 //get agent pool data
945 player.m_AgentPool.GetDebugObject( agent_pool );
946
947 GetDayZGame().RPC( player, ERPCs.DEV_RPC_AGENTS_DATA, agent_pool, true, player.GetIdentity() );
948 }
949 }

Перекрестные ссылки GetDayZGame() и GetGame().

Используется в Update().

◆ SendRPCHealth()

void SendRPCHealth ( PlayerBase player)
inlineprotected
542 {
543 //write and send values
544 if ( player )
545 {
547
549 if (m_HealthObserverMode.Get(player) == false)
550 target = player;
551 else
552 {
554 target = EntityAI.Cast(itemDiagPlugin.GetWatchedItem(player));
555 }
556
557 if (target)
558 {
559 DamageZoneMap dmgZones = target.GetEntityDamageZoneMap();
560
564 }
565
566 bool targetChanged = false;
568 {
569 targetChanged = true;
571 }
572
573 rpc_params.InsertAt( new Param2<int, bool>(rpc_params.Count(), targetChanged), 0);
574
575 GetDayZGame().RPC( player, ERPCs.DEV_RPC_HEALTH_DATA, rpc_params, true, player.GetIdentity() );
576 }
577 }
void SetupZoneValues(inout array< ref Param > rpc_params, DamageZoneMap dmgZones, EntityAI target, string healthType, int typeID)
Definition PluginDeveloperSync.c:600

Перекрестные ссылки GetDayZGame(), GetPlugin(), PluginItemDiagnostic() и SetupZoneValues().

Используется в Update().

◆ SendRPCLevels()

void SendRPCLevels ( PlayerBase player)
inlineprotected
695 {
696 //write and send values
697 if ( player )
698 {
700
701 rpc_params.Insert(new Param3<string, float, float>( "Immunity: "+ typename.EnumToString(EStatLevels, player.GetImmunityLevel() ),player.GetImmunityLevel(), player.GetBordersImmunity()));
702 rpc_params.Insert(new Param3<string, float, float>( "Blood: "+ typename.EnumToString(EStatLevels, player.GetStatLevelBlood()),player.GetStatLevelBlood(), player.GetStatBordersBlood()));
703 rpc_params.Insert(new Param3<string, float, float>( "Health: "+ typename.EnumToString(EStatLevels, player.GetStatLevelHealth() ),player.GetStatLevelHealth(), player.GetStatBordersHealth()));
704 rpc_params.Insert(new Param3<string, float, float>( "Energy: "+ typename.EnumToString(EStatLevels, player.GetStatLevelEnergy() ),player.GetStatLevelEnergy(), player.GetStatBordersEnergy()));
705 rpc_params.Insert(new Param3<string, float, float>( "Water: "+ typename.EnumToString(EStatLevels, player.GetStatLevelWater() ),player.GetStatLevelWater(), player.GetStatBordersWater()));
706
707 int param_count = rpc_params.Count();
708 rpc_params.InsertAt( new Param3<string, float, float>( "PARAM_COUNT", param_count,0 ), 0);
709 //send params
710 GetDayZGame().RPC( player, ERPCs.DEV_RPC_LEVELS_DATA, rpc_params, true, player.GetIdentity() );
711 }
712 }
EStatLevels
Definition EStatLevels.c:2

Перекрестные ссылки GetDayZGame().

Используется в Update().

◆ SendRPCMods()

void SendRPCMods ( PlayerBase player)
inlineprotected
739 {
740 //write and send values
741 if ( player )
742 {
744
745 //get modifiers
746 ModifiersManager mods_manager = player.GetModifiersManager();
747
748 //param count
750 mods_manager.DbgGetModifiers( modifiers );
751
752 float param_count = ( float ) modifiers.Count();
753 rpc_params.Insert( new Param1<int>( param_count ));
754
755 //set modifiers
756 for ( int i = 0; i < modifiers.Count(); ++i )
757 {
758 int id = modifiers.Get(i).GetID();
759 string name = modifiers.Get(i).GetName();
760 bool active = modifiers.Get(i).IsActive();
761 bool locked = modifiers.Get(i).IsLocked();
762
764 }
765
766 //send params
767 GetDayZGame().RPC( player, ERPCs.DEV_RPC_MODS_DATA, rpc_params, true, player.GetIdentity() );
768 }
769 }
Definition EnConvert.c:97

Перекрестные ссылки GetDayZGame(), ModifiersManager() и name.

Используется в Update().

◆ SendRPCModsDetail()

void SendRPCModsDetail ( PlayerBase player)
inlineprotected
776 {
777 //write and send values
778 if ( player )
779 {
781 ModifiersManager mods_manager = player.GetModifiersManager();
782 int mod_id = m_RegisteredPlayers.Get(player).m_DetailedModifierIndex;
783 p1.param1 = mods_manager.GetModifier(mod_id).GetDebugText();
784 //send params
785 if (p1.param1 != "")
786 GetDayZGame().RPCSingleParam( player, ERPCs.DEV_RPC_MODS_DATA_DETAILED, p1, true, player.GetIdentity() );
787 }
788 }

Перекрестные ссылки GetDayZGame() и ModifiersManager().

Используется в Update().

◆ SendRPCStats()

void SendRPCStats ( PlayerBase player)
inlineprotected
435 {
436 //write and send values
437 if ( player )
438 {
440
441 //param count
442 for ( int i = 0; i < player.m_PlayerStats.GetPCO().Get().Count(); i++ )
443 {
444 string label = player.m_PlayerStats.GetPCO().Get().Get( i ).GetLabel();
445 float value = (float) player.m_PlayerStats.GetPCO().Get().Get( i ).Get();
446 float value_norm = (float) player.m_PlayerStats.GetPCO().Get().Get( i ).GetNormalized();
448 }
449 rpc_params.Insert(new Param3<string, float, float>( "(NaS)Immunity", player.GetImmunity(),0 ));
450 rpc_params.Insert(new Param3<string, float, float>( "(NaS)BrokenLegs", player.m_BrokenLegState,0 ));
451
452 rpc_params.InsertAt( new Param1<int>(rpc_params.Count() ), 0);// param count
453 //send params
454 GetDayZGame().RPC( player, ERPCs.DEV_RPC_STATS_DATA, rpc_params, true, player.GetIdentity() );
455 }
456 }

Перекрестные ссылки Count, Get() и GetDayZGame().

Используется в Update().

◆ SendRPCStomach()

void SendRPCStomach ( PlayerBase player)
inlineprotected
978 {
979 //write and send values
980 if ( player )
981 {
983 int count = player.m_PlayerStomach.GetDebugObject( stomach );
984 stomach.InsertAt(new Param1<int>(count), 0);
985
986 GetDayZGame().RPC( player, ERPCs.DEV_RPC_STOMACH_DATA, stomach, true, player.GetIdentity() );
987 }
988 }

Перекрестные ссылки GetDayZGame().

Используется в Update().

◆ SendRPCTemp()

void SendRPCTemp ( PlayerBase player)
inlineprotected
909 {
910 if ( player )
911 {
912 CachedObjectsParams.PARAM1_STRING.param1 = player.m_Environment.GetDebugMessage();
913 GetDayZGame().RPCSingleParam( player, ERPCs.DEV_TEMP_UPDATE, CachedObjectsParams.PARAM1_STRING, true, player.GetIdentity() );
914 }
915 }

Перекрестные ссылки GetDayZGame() и CachedObjectsParams::PARAM1_STRING.

Используется в Update().

◆ SendServerLogToClient()

void SendServerLogToClient ( string msg)
inlineprotected
130 {
131 if ( GetGame() )
132 {
134 GetGame().GetPlayers( players );
135
136 for ( int i = 0; i < players.Count(); ++i )
137 {
139 Man player = players.Get(i);
140
141 if ( player && player.HasNetworkID() )
142 {
143 player.RPCSingleParam(ERPCs.DEV_RPC_SEND_SERVER_LOG, param, true, player.GetIdentity());
144 }
145 }
146 }
147 }

Перекрестные ссылки GetGame().

◆ SetBadge()

void SetBadge ( int key,
int value )
inlineprivate
65 {
66 if ( key )
67 {
68 Mission mission = GetGame().GetMission();
69 if ( mission )
70 {
72 if ( hud )
73 {
74 hud.DisplayBadge( key, value );
75 }
76 }
77 }
78 }

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

◆ SetDate()

void SetDate ( int year,
int month,
int day,
int hour,
int minute )
inlineprivate
870 {
871 m_SceneData.SetInitYear(year);
872 m_SceneData.SetInitMonth(month);
873 m_SceneData.SetInitDay(day);
874 m_SceneData.SetInitHour(hour);
875 m_SceneData.SetInitMinute(minute);
876 }

◆ SetDeveloperItemClient()

void SetDeveloperItemClient ( )
inlineprivate
929 {
930 #ifdef DEVELOPER
933
935 if (debugCam && debugCam.GetCurrentCamera())
936 {
937 entity = debugCam.GetCrosshairObject();
938 }
939 else
940 {
941
942 if (player && player.GetActionManager())
943 {
944 ActionTarget at = player.GetActionManager().FindActionTarget();
945 entity = at.GetObject();
946 }
947 }
948
949 if (entity)
950 {
952 }
953 #endif
954 }
static void SetDeveloperItemClientEx(notnull Object entity, bool getFocus=false)
Definition PluginDeveloper.c:904

Перекрестные ссылки GetGame(), GetPlayer() и SetDeveloperItemClientEx().

◆ SetDeveloperItemClientEx()

static void SetDeveloperItemClientEx ( notnull Object entity,
bool getFocus = false )
inlinestaticprivate
905 {
907
908 if (getFocus)
909 {
910 GetGame().GetInput().ChangeGameFocus(1);
911 GetGame().GetUIManager().ShowUICursor(true);
912 }
913
914 if (GetGame().IsMultiplayer())
915 {
916 GetGame().RPCSingleParam(GetGame().GetPlayer(), ERPCs.DEV_SET_DEV_ITEM, new Param1<Object>(entity), true, GetGame().GetPlayer().GetIdentity());
917 }
918 else
919 {
921 mid2.RegisterDebugItem(entity, player);
922 }
923 #ifdef DEVELOPER
925 #endif
926 }

Перекрестные ссылки GetGame(), GetPlayer(), GetPlugin() и PluginItemDiagnostic().

Используется в SetDeveloperItemClient().

◆ SetDirection()

void SetDirection ( PlayerBase player,
vector direction )
inlineprotected

Set player direction.

27 {
29 }
static void SetPlayerDirection(PlayerBase player, vector direction)
Definition DeveloperTeleport.c:153

Перекрестные ссылки DeveloperTeleport::SetPlayerDirection().

◆ SetDrawSelection()

void SetDrawSelection ( bool draw)
inlineprivate
705 {
706 m_ModuleConfigDebugProfile.SetSceneEditorDrawSelection(draw);
707
708 EditorUpdate();
709 }

◆ SetLoadPlayerPos()

void SetLoadPlayerPos ( bool save)
inlineprivate
723 {
724 m_ModuleConfigDebugProfile.SetSceneEditorLoadPlayerPos(save);
725 }

◆ SetNotifier()

void SetNotifier ( int key,
int index = 9,
string label = "",
int color = 0xFFFFFFFF )
inlineprivate
24 {
25 if ( key )
26 {
27 if ( m_NotifiersLabel.HasKey( key ) )
28 {
29 m_NotifiersLabel.Remove( key );
30 m_NotifiersIndexColor.Remove( key );
31 }
32
33 if ( label != "" )
34 {
35 m_NotifiersLabel.Insert( key, label );
38 }
39 }
40 }

◆ SetRotationAngle()

void SetRotationAngle ( int angle)
inlineprivate
739 {
740 m_ModuleConfigDebugProfile.SetSceneEditorRotationAngle(angle);
741 }

◆ SetStamina()

void SetStamina ( int value,
int range )
inlineprivate
81 {
82 // Log( String( "SetStamina" + itoa( value) ), LogTemplates.TEMPLATE_JANOSIK );
83 Mission mission = GetGame().GetMission();
84 if ( mission )
85 {
87 if ( hud )
88 {
89 hud.SetStamina( Math.Clamp( value, 0, range ), range );
90 }
91 }
92 }

Перекрестные ссылки Math::Clamp(), GetGame(), Mission::GetHud() и mission.

◆ SetStance()

void SetStance ( int value)
inlineprivate
95 {
96 Mission mission = GetGame().GetMission();
97 if ( mission )
98 {
100 if ( hud )
101 {
102 hud.DisplayStance( value );
103 }
104 }
105 }

Перекрестные ссылки GetGame(), Mission::GetHud() и mission.

◆ SetSystemInBitmask()

void SetSystemInBitmask ( PlayerBase player,
int system_bit,
bool state )
inlineprotected
214 {
216 {
217 int current_mask = m_RegisteredPlayers.Get(player).m_Bitmask;
218 if (state)
220 else
222 }
223
224 }

Перекрестные ссылки IsPlayerRegistered().

Используется в EnableUpdate() и RequestDetailedInfo().

◆ SetTargetChanged()

void SetTargetChanged ( bool state)
inlineprotected
537 {
539 }

Используется в OnRPCHealth().

◆ SetupSpawnedEntity()

void SetupSpawnedEntity ( PlayerBase player,
EntityAI entity,
float health,
float quantity = -1,
bool special = false,
string presetName = "" )
inlineprotected
302 {
303 #ifdef DEVELOPER
304 if (presetName && player.m_PresetSpawned)//this is how we ascertain this is the first item being spawned from a new preset after a previous preset was already spawned in
305 {
306 player.m_PresetItems.Clear();
307 player.m_PresetSpawned = false;//is set to 'true' elsewhere after all the items have been spawned in
308 }
309 if ( entity.IsInherited( PlayerBase ) )
310 {
312 plr.OnSpawnedFromConsole();
313 }
314 else if ( entity.IsInherited(ItemBase) )
315 {
316 ItemBase item = ItemBase.Cast( entity );
318 }
319 else if (entity.IsInherited(House))
320 {
321 entity.PlaceOnSurface();
322 vector pos = entity.GetPosition();
323 vector ori = GetGame().GetSurfaceOrientation(pos[0], pos[2]);
324 entity.SetOrientation(ori);
325 }
326 if (presetName)
327 {
328 player.m_PresetItems.Insert(entity);
329 }
330
331 if ( special )
332 {
333 auto debugParams = DebugSpawnParams.WithPlayer(player);
334 entity.OnDebugSpawnEx(debugParams);
335 }
336 #endif
337 }
void SetupSpawnedItem(ItemBase item, float health, float quantity)
Definition ItemBase.c:4794
Definition CrashBase.c:2

Перекрестные ссылки GetGame() и SetupSpawnedItem().

Используется в SpawnEntityOnCursorDir() и SpawnEntityOnGroundPos().

◆ SetupZoneValues()

void SetupZoneValues ( inout array< ref Param > rpc_params,
DamageZoneMap dmgZones,
EntityAI target,
string healthType,
int typeID )
inlineprotected
601 {
603
604 //title entry
605 bool isTitleEntry = true;
607
608 // global entry
609 isTitleEntry = false;
610 float value;
611 target.GetAdditionalHealthTypes("", outHealthTypes);
612 if (healthType == "Health" || outHealthTypes.Find(healthType) != -1) // zone might not have additional health type
613 {
614 value = target.GetHealth("", healthType);
616 }
617
618 //entries
619 int count = dmgZones.Count();
620 for (int i = 0; i < count; i++)
621 {
622 string zoneName = dmgZones.GetKey(i);
623 outHealthTypes.Clear();
624 target.GetAdditionalHealthTypes(zoneName, outHealthTypes);
625
626 if (healthType != "Health")
627 {
628 if (outHealthTypes.Find(healthType) == -1)
629 continue;
630 }
631
632 if (target.GetMaxHealth(zoneName, healthType) == 0)
633 continue;
634
635 isTitleEntry = false;
636 value = target.GetHealth(zoneName, healthType);
638 }
639 }

Используется в SendRPCHealth().

◆ SetWatching()

void SetWatching ( bool enable)
inlineprivate
30 {
32 }

◆ SetWeather()

void SetWeather ( float overcast,
float rain,
float fog,
float wind_force )
inlineprivate
859 {
860 m_SceneData.SetInitOvercast(overcast);
861 m_SceneData.SetInitRain(rain);
862 m_SceneData.SetInitFog(fog);
863 m_SceneData.SetInitWindForce(wind_force);
864 }

◆ Show() [1/3]

void Show ( )
inlineprivate
164 {
165 ShowWidgets(true);
166 m_IsActive = true;
167
168 GetUApi().ActivateExclude("menu");
169 GetUApi().UpdateControls();
170
171 if (!m_TickTimer)
172 {
173 m_TickTimer = new Timer();
174 m_TickTimer.Run(0.1, this, "Tick", NULL, true);
175 }
176 }

Перекрестные ссылки GetUApi(), m_IsActive, m_TickTimer и ShowWidgets().

Используется в SetDebugShowMode(), ToggleDebugWindowEventOld(), ToggleDebugWindowEventP(), ToggleDebugWindowSetMode() и ToggleDebugWindowSetMode().

◆ Show() [2/3]

void Show ( )
inlineprivate
81 {
82 ShowWidgets(true);
83 m_IsActive = true;
84 }

Перекрестные ссылки m_IsActive и ShowWidgets().

◆ Show() [3/3]

void Show ( )
inlineprivate
20 {
21 m_TickTimer = new Timer();
22 m_TickTimer.Run(0.1, this, "OnGUITimer", NULL, true);
23 }

Перекрестные ссылки m_TickTimer.

◆ ShowCard()

void ShowCard ( int pCard)
inlineprivate
280 {
281 m_CardMovementFrame.Show(pCard == 0);
282 m_CardFightFrame.Show(pCard == 1);
283 }

Используется в CreateModuleWidgets(), CreateModuleWidgets() и OnClick().

◆ ShowDebug()

void ShowDebug ( bool show)
inlineprotected
12 {
14
15 if (show && m_pPlayer)
16 {
18
19 DbgUI.Begin("Target Temperature", 10, 10);
20 DbgUI.Panel("", 150, 1);
21 if (ent)
22 {
23 DbgUI.Text("Entity: : " + ent.GetType());
24 DbgUI.Text("Temperature: " + ent.GetTemperature());
25 DbgUI.Text("Frozen State: " + ent.GetIsFrozen());
26 DbgUI.Text("Freeze/Thaw Progress: " + ent.GetFreezeThawProgress());
27 }
28 DbgUI.End();
29 }
30
32 }
EntityAI GetTargetEntity()
utilizes camera position from the CGame
Definition PluginTargetTemperature.c:35
static proto native void Panel(string label, int width, int height, int color=0xaa555555)

Перекрестные ссылки DbgUI::Begin(), DbgUI::BeginCleanupScope(), DbgUI::End(), DbgUI::EndCleanupScope(), GetTargetEntity(), m_pPlayer, DbgUI::Panel() и DbgUI::Text().

◆ ShowWidgets() [1/2]

void ShowWidgets ( bool show)
inlineprivate
191 {
192 if(m_MainWnd)
193 {
194 m_MainWnd.Show(show);
195 }
196 }

Перекрестные ссылки m_MainWnd.

Используется в Hide(), Hide(), Show() и Show().

◆ ShowWidgets() [2/2]

void ShowWidgets ( bool show)
inlineprivate
72 {
73 if(m_MainWindow)
74 {
75 m_MainWindow.Show(show);
76 }
77 }

◆ SortStringArray()

void SortStringArray ( TStringArray arr)
inlineprivate
892 {
893 QuickSort( arr, 0, arr.Count() - 1 );
894 }

Перекрестные ссылки QuickSort().

◆ SpawnEntityAsAttachment()

SpawnEntityAsAttachment ( PlayerBase player,
EntityAI parent,
string att_name,
float health,
float quantity )
inlineprotected

tries to spawn item as attachment

Аргументы
[in]healthhealth of the item
[in]quantityquantity to set if item.HasQuantity() (-1 == set to max)
Возвращает
entity if ok, null otherwise
635 {
636 if ( GetGame().IsServer() )
637 {
638 Weapon_Base wpn = Weapon_Base.Cast(parent);
639 if (wpn)
640 {
641 GameInventory inventory = parent.GetInventory();
642 return inventory.CreateInInventory(att_name);
643 /*
644 vector pos = player.GetPosition();
645 EntityAI eai_gnd = SpawnEntityOnGroundPos(player, att_name, health, quantity, pos);
646 Magazine mag_gnd = Magazine.Cast(eai_gnd);
647 if (mag_gnd && player.GetWeaponManager().CanAttachMagazine(wpn, mag_gnd))
648 {
649 player.GetWeaponManager().AttachMagazine(mag_gnd);
650 }
651 return eai_gnd;
652 */
653 }
654 else
655 {
656 EntityAI eai = parent.GetInventory().CreateAttachment(att_name);
657 if (eai)
658 {
659 if ( eai.IsInherited(ItemBase) )
660 {
661 ItemBase i = ItemBase.Cast( eai );
663 }
664 return eai;
665 }
666 else
668 }
669 return NULL;
670 }
671 else
672 {
673 // Client -> Server Spawning: Client Side
675 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_AS_ATTACHMENT, params, true);
676 }
677 return NULL;
678 }
script counterpart to engine's class Inventory
Definition Inventory.c:79
void OnSpawnErrorReport(string name)
Definition PluginDeveloper.c:294
shorthand
Definition BoltActionRifle_Base.c:6

Перекрестные ссылки GetGame(), OnSpawnErrorReport() и SetupSpawnedItem().

◆ SpawnEntityInInventory()

SpawnEntityInInventory ( notnull EntityAI target,
string className,
float health,
float quantity,
bool special = false,
string presetName = "",
FindInventoryLocationType locationType = FindInventoryLocationType.ANY )
inlineprotected

tries to spawn item somewhere in inventory

SpawnEntityInInventory queries future parent about free inventory location of the future item

Аргументы
[in]healthhealth of the item
[in]quantityquantity to set if item.HasQuantity() (-1 == set to max)
Возвращает
entity if ok, null otherwise
503 {
504 if (target.IsPlayer())
505 {
507 }
508 if ( GetGame().IsServer() )
509 {
511 if (target.GetInventory() && target.GetInventory().FindFirstFreeLocationForNewEntity(className, FindInventoryLocationType.ANY, il))
512 {
514 if ( eai && eai.IsInherited(ItemBase) )
515 {
516 if ( health < 0 )//check for default (-1)
517 {
518 health = eai.GetMaxHealth();
519 }
520 ItemBase i = ItemBase.Cast( eai );
522 if ( special )
523 {
524 auto debugParams = DebugSpawnParams.WithPlayer(null);
525 eai.OnDebugSpawnEx(debugParams);
526 }
527 }
528 return eai;
529 }
530 }
531 else
532 {
534 GetGame().GetPlayer().RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_IN_INVENTORY, params, true, GetGame().GetPlayer().GetIdentity());
535 }
536 return null;
537 }
proto native void SpawnEntity(string sClassName, vector vPos, float fRange, int iCount)
Spawn an entity through CE.
const int ECE_IN_INVENTORY
Definition CentralEconomy.c:36
const int RF_DEFAULT
Definition CentralEconomy.c:65
InventoryLocation.
Definition InventoryLocation.c:29
EntityAI SpawnEntityInPlayerInventory(PlayerBase player, string item_name, float health, float quantity, bool special=false, string presetName="", FindInventoryLocationType locationType=FindInventoryLocationType.ANY)
Definition PluginDeveloper.c:539

Перекрестные ссылки ECE_IN_INVENTORY, GetGame(), GetPlayer(), RF_DEFAULT, SetupSpawnedItem(), SpawnEntity() и SpawnEntityInPlayerInventory().

Используется в OnRPCSpawnEntity().

◆ SpawnEntityInPlayerInventory()

EntityAI SpawnEntityInPlayerInventory ( PlayerBase player,
string item_name,
float health,
float quantity,
bool special = false,
string presetName = "",
FindInventoryLocationType locationType = FindInventoryLocationType.ANY )
inlineprotected
540 {
541 if (player)
542 {
543 if (GetGame().IsServer())
544 {
545 if (locationType == FindInventoryLocationType.HANDS && player.GetItemInHands())
546 {
547 if (!GetGame().IsMultiplayer())
548 player.DropItem(player.GetItemInHands());
549 else
550 player.ServerDropEntity(player.GetItemInHands());
551
553
554 return null;
555 }
556
557
558 #ifdef DEVELOPER
559 if (GetGame().IsKindOf(item_name, "Transport"))
560 {
562 auto debugParams = DebugSpawnParams.WithPlayer(player);
563 vehicle.OnDebugSpawnEx(debugParams);
564
565 if (GetGame().IsMultiplayer())
566 {
567 DayZPlayerSyncJunctures.SendGetInVehicle(player, vehicle);
568 }
569 else
570 {
571 player.SetGetInVehicleDebug(vehicle);
572 }
573
574 return vehicle;
575 }
576 #endif
577
579 if (player.GetInventory() && player.GetInventory().FindFirstFreeLocationForNewEntity(item_name, locationType, il))
580 {
581 Weapon_Base wpn = Weapon_Base.Cast(il.GetParent());
582 bool is_mag = il.GetSlot() == InventorySlots.MAGAZINE || il.GetSlot() == InventorySlots.MAGAZINE2 || il.GetSlot() == InventorySlots.MAGAZINE3;
583 if (wpn && is_mag)
584 {
585 vector pos = player.GetPosition();
588 if (mag_gnd && player.GetWeaponManager().CanAttachMagazine(wpn, mag_gnd))
589 {
590 player.GetWeaponManager().AttachMagazine(mag_gnd);
591 }
592 return eai_gnd;
593 }
594 else
595 {
597 if ( eai && eai.IsInherited(ItemBase) )
598 {
599 if ( health < 0 )//check for default (-1)
600 {
601 health = eai.GetMaxHealth();
602 }
603 ItemBase i = ItemBase.Cast( eai );
605 if ( special )
606 {
607 auto debugParams2 = DebugSpawnParams.WithPlayer(player);
608 eai.OnDebugSpawnEx(debugParams2);
609 }
610 }
611 return eai;
612 }
613 }
614 else
616 return NULL;
617 }
618 else
619 {
620 // Client -> Server Spawning: Client Side
622 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_IN_INVENTORY, params, true);
623 }
624 }
625 return NULL;
626 }
Definition DayZPlayerSyncJunctures.c:5
provides access to slot configuration
Definition InventorySlots.c:6

Перекрестные ссылки CALL_CATEGORY_SYSTEM, ECE_IN_INVENTORY, GetGame(), OnSpawnErrorReport(), RF_DEFAULT, SetupSpawnedItem(), SpawnEntity() и SpawnEntityOnGroundPos().

Используется в SpawnEntityInInventory().

◆ SpawnEntityOnCursorDir()

SpawnEntityOnCursorDir ( PlayerBase player,
string item_name,
float quantity,
float distance,
float health = -1,
bool special = false,
string presetName = "",
bool withPhysics = false )
inlineprotected

spawns entity in direction of cursor at specified distance

Аргументы
[in]healthhealth of the item
[in]quantityquantity to set if item.HasQuantity() (-1 == set to max)
[in]distancedistance of the item from player
Возвращает
entity if ok, null otherwise
460 {
461
462 if ( GetGame().IsServer() )
463 {
464 // Client -> Server Spawning: Server Side
465 EntityAI entity = player.SpawnEntityOnGroundOnCursorDir(item_name, distance);
466
467 if ( entity )
468 {
469 if ( !entity.IsBuilding() && health < 0 && entity.GetMaxHealth() > 0)//check for default (-1)
470 {
471 health = entity.GetMaxHealth();
472 }
474 }
475 else
477
480 item.ThrowPhysically(null, "0 0 0");
481
482 return entity;
483 }
484 else
485 {
486 // Client -> Server Spawning: Client Side
488 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_ON_CURSOR, params, true);
489 }
490 return NULL;
491 }
Definition ItemBase.c:15
void SetupSpawnedEntity(PlayerBase player, EntityAI entity, float health, float quantity=-1, bool special=false, string presetName="")
Definition PluginDeveloper.c:301

Перекрестные ссылки Class::CastTo(), GetGame(), OnSpawnErrorReport() и SetupSpawnedEntity().

Используется в OnRPCSpawnEntityOnCursorDir() и SpawnFromClipboard().

◆ SpawnEntityOnGroundPatternGrid()

void SpawnEntityOnGroundPatternGrid ( PlayerBase player,
string item_name,
int count,
float health,
float quantity,
int rows,
int columns,
float gapRow = 1,
float gapColumn = 1,
bool special = false,
bool withPhysics = false )
inlineprotected
341 {
342 if (!item_name)
343 {
344 return;
345 }
346 if ( GetGame().IsServer() )
347 {
348 float rowDist = 0;
349 float columnDist = 0;
350
351 vector playerPos = player.GetPosition();
352 vector camDirForward = player.GetDirection();
353 vector camDirRight = camDirForward.Perpend() * -1;
354 int countLoop = 0;
355 for (int i = 0; i < rows; i++)
356 {
359 columnDist = 0;
360 for (int j = 0; j < columns; j++)
361 {
364 float hlth = health * MiscGameplayFunctions.GetTypeMaxGlobalHealth( item_name );
366 ent.PlaceOnSurface();
367
370 item.ThrowPhysically(null, "0 0 0");
371
372 countLoop++;
373 if (countLoop == count)
374 {
375 return;
376 }
378 }
379 rowDist += gapRow;
380 }
381 }
382 else
383 {
385 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_ON_GROUND_PATTERN_GRID, params, true);
386 }
387 }

Перекрестные ссылки Class::CastTo(), GetGame() и SpawnEntityOnGroundPos().

Используется в OnRPCSpawnEntityOnGroundPatternGrid().

◆ SpawnEntityOnGroundPos()

SpawnEntityOnGroundPos ( PlayerBase player,
string item_name,
float health,
float quantity,
vector pos,
bool special = false,
bool withPhysics = false )
inlineprotected

spawns entity on exact position

Аргументы
[in]healthhealth of the item
[in]quantityquantity to set if item.HasQuantity() (-1 == set to max)
[in]posposition where to spawn
Возвращает
entity if ok, null otherwise
429 {
430 if ( GetGame().IsServer() )
431 {
432 EntityAI entity = player.SpawnEntityOnGroundPos(item_name, pos);
433 if (entity)
435 else
437
440 item.ThrowPhysically(null, "0 0 0");
441
442 return entity;
443 }
444 else
445 {
447 player.RPCSingleParam(ERPCs.DEV_RPC_SPAWN_ITEM_ON_GROUND, params, true);
448 }
449 return NULL;
450 }

Перекрестные ссылки Class::CastTo(), GetGame(), OnSpawnErrorReport() и SetupSpawnedEntity().

Используется в OnRPCSpawnEntityOnGround(), SpawnEntityInPlayerInventory(), SpawnEntityOnGroundPatternGrid() и SpawnItemOnCrosshair().

◆ SpawnFromClipboard()

EntityAI SpawnFromClipboard ( )
inlineprotected
681 {
682 UIScriptedMenu menu_curr = GetGame().GetUIManager().GetMenu();
683
684 if ( menu_curr == NULL )
685 {
687 if ( player )
688 {
689 if ( !GetGame().GetWorld().Is3rdPersonDisabled() )
690 {
691 player.SetIsInThirdPerson(!player.IsInThirdPerson());//this counters the effect of switching camera through pressing the 'V' key
692 }
693
694 vector pos_player = player.GetPosition();
695
696 // Get item from clipboard
697 string clipboard;
698 GetGame().CopyFromClipboard(clipboard);
699
700 if (!clipboard.Contains(","))
701 {
702 //single item
704 SpawnItemOnCrosshair(player, clipboard.Trim(), -1, 1, 40, true );
705 else
707 }
708 else
709 {
711 clipboard.Split( ",", items );
712
713 foreach (string item:items)
714 {
716 SpawnItemOnCrosshair(player, item.Trim(), -1, 1, 40, true );
717 else
718 SpawnEntityOnCursorDir(player, item.Trim(), 1, 1);
719 }
720 }
721
722 }
723 }
724
725 return NULL;
726 }
void SpawnItemOnCrosshair(notnull PlayerBase player, string itemName, float health, float quantity, float maxDist=100, bool allowFreeflight=false, bool special=false, bool withPhysics=false)
Definition PluginDeveloper.c:389

Перекрестные ссылки GetGame(), GetPlayer(), DeveloperFreeCamera::IsFreeCameraEnabled(), SpawnEntityOnCursorDir() и SpawnItemOnCrosshair().

◆ SpawnItemOnCrosshair()

void SpawnItemOnCrosshair ( notnull PlayerBase player,
string itemName,
float health,
float quantity,
float maxDist = 100,
bool allowFreeflight = false,
bool special = false,
bool withPhysics = false )
inlineprotected
390 {
391 vector from, to;
392 if (allowFreeflight && FreeDebugCamera.GetInstance().IsActive())
393 {
394 from = FreeDebugCamera.GetInstance().GetPosition();
395 to = from + FreeDebugCamera.GetInstance().GetDirection() * maxDist;
396 }
397 else
398 {
399 from = GetGame().GetCurrentCameraPosition();
400 to = from + GetGame().GetCurrentCameraDirection() * maxDist;
401 }
402
403 float hitFraction;
406
408 Object obj;
409
412
413 // something is hit
414 if (hitPos != vector.Zero)
415 {
417 }
418 }
static const vector Zero
Definition EnConvert.c:110

Перекрестные ссылки GetGame(), DayZPhysics::RayCastBullet(), SpawnEntityOnGroundPos() и vector::Zero.

Используется в SpawnFromClipboard().

◆ SpawnNewInfectedEntity()

void SpawnNewInfectedEntity ( )
inlineprivate
366 {
368 m_ControlledInfected.GetAIAgent().SetKeepInIdle(true);
369 }
const int ECE_EQUIP_ATTACHMENTS
Definition CentralEconomy.c:20
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
const int ECE_INITAI
Definition CentralEconomy.c:17

Перекрестные ссылки ECE_EQUIP_ATTACHMENTS, ECE_INITAI, ECE_PLACE_ON_SURFACE, GetGame(), GetPlayer() и GetPosition.

Используется в OnClick().

◆ Subscribe()

void Subscribe ( MessageReceiverBase receiver,
int index )
inlineprivate

Subscribes an object to listen to messages on a channel provided in the 'index' parameter.

110 {
111 if(index > channelsUsed) //this is used to speed up the unsubscribeAll method, instead of all channels, we sweep just those in usage
112 {
114 }
116 if( chan.Find(receiver) >= 0 ) return;
117 chan.Insert(receiver);
118 }
int channelsUsed
Definition PluginMessageManager.c:6

◆ Suicide()

void Suicide ( PlayerBase player)
inlineprotected
351 {
352 m_PlayerPrefix = GetPlayerPrefix( player , player.GetIdentity() );
353
354 LogPrint( m_PlayerPrefix + " committed suicide" );
355 }

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ SwitchPermanentCrossHair()

void SwitchPermanentCrossHair ( bool state)
inlineprivate
6 {
7 if (!m_Hud)
8 m_Hud = GetGame().GetMission().GetHud();
10 }
void SetPermanentCrossHair(bool show)
Definition gameplay.c:672
Hud m_Hud
Definition PluginPermanentCrossHair.c:3

Перекрестные ссылки GetGame(), m_Hud и Hud::SetPermanentCrossHair().

◆ Teleport()

void Teleport ( PlayerBase player,
vector position )
inlineprotected

Teleport player at position.

21 {
23 }
static void SetPlayerPosition(PlayerBase player, vector position, bool breakSync=false)
Definition DeveloperTeleport.c:115

Перекрестные ссылки DeveloperTeleport::SetPlayerPosition().

◆ TeleportAtCursor()

void TeleportAtCursor ( )
inlineprotected

Set Player position at his cursor position in the world.

15 {
17 }
static void TeleportAtCursorEx()
Definition DeveloperTeleport.c:45

Перекрестные ссылки DeveloperTeleport::TeleportAtCursorEx().

◆ Tick()

void Tick ( )
inlineprotected
446 {
448 return;
449
450 }

◆ ToggleCameraTools()

void ToggleCameraTools ( )
inlineprotected
20 {
21 if( !m_IsOpen )
22 {
23 GetGame().GetUIManager().EnterScriptedMenu( MENU_CAMERA_TOOLS, null );
24 }
25 else
26 {
27 GetGame().GetUIManager().Back();
28 }
30 }

Перекрестные ссылки GetGame() и MENU_CAMERA_TOOLS.

◆ ToggleDebugWindowEvent()

void ToggleDebugWindowEvent ( )
inlineprivate
119 {
121 if (m_CurrentMode > 2)
122 {
123 m_CurrentMode = 0;
124 }
125
127 }
void ToggleDebugWindowSetMode(int pMode)
Definition PluginDayZInfectedDebug.c:130
int m_CurrentMode
Definition PluginDayZInfectedDebug.c:41

Перекрестные ссылки m_CurrentMode и ToggleDebugWindowSetMode().

◆ ToggleDebugWindowSetMode()

void ToggleDebugWindowSetMode ( int pMode)
inlineprivate
131 {
132 switch (pMode)
133 {
135 case 1: Show(); ReleaseFocus(); break;
136 case 2: Show(); CaptureFocus(); break;
137 }
138 }
void Hide()
Definition PluginDayZInfectedDebug.c:179
void ReleaseFocus()
Definition PluginDayZInfectedDebug.c:152
void Show()
Definition PluginDayZInfectedDebug.c:163
void CaptureFocus()
Definition PluginDayZInfectedDebug.c:141

Перекрестные ссылки CaptureFocus(), CleanupDebugShapes(), Hide(), ReleaseFocus() и Show().

Используется в ToggleDebugWindowEvent() и ToggleDebugWindowEvent().

◆ ToggleFocus()

void ToggleFocus ( )
inlineprotected
1039 {
1040 if ( GetGame().GetInput().HasGameFocus() )
1041 {
1042 GetGame().GetInput().ChangeGameFocus( 1 );
1043 GetGame().GetUIManager().ShowUICursor( true );
1044 }
1045 else
1046 {
1047 GetGame().GetInput().ResetGameFocus();
1048 GetGame().GetUIManager().ShowUICursor( false );
1049 }
1050 }

Перекрестные ссылки GetGame().

◆ ToggleFreeCamera()

void ToggleFreeCamera ( )
inlineprotected

Enable / Disable Free camera (Fly mod) - disable of camera will teleport player at current free camera position.

39 {
41 }
static void FreeCameraToggle(PlayerBase player, bool teleport_player=false)
Enable / Disable Free camera (Fly mod) - disable of camera will teleport player at current free camer...
Definition DeveloperFreeCamera.c:6

Перекрестные ссылки DeveloperFreeCamera::FreeCameraToggle(), GetGame() и GetPlayer().

◆ ToggleFreeCameraBackPos()

void ToggleFreeCameraBackPos ( )
inlineprotected

Enable / Disable Free camera (Fly mod)

33 {
35 }

Перекрестные ссылки DeveloperFreeCamera::FreeCameraToggle(), GetGame() и GetPlayer().

◆ ToggleHelpScreen()

void ToggleHelpScreen ( )
inlineprotected
743 {
744 if ( g_Game.GetUIManager().GetMenu() == NULL )
745 {
746 g_Game.GetUIManager().EnterScriptedMenu(MENU_HELP_SCREEN, NULL);
747 }
748 else if ( g_Game.GetUIManager().IsMenuOpen(MENU_HELP_SCREEN) )
749 {
750 g_Game.GetUIManager().Back();
751 }
752 }
const int MENU_HELP_SCREEN
Definition constants.c:191

Перекрестные ссылки g_Game и MENU_HELP_SCREEN.

◆ ToggleMissionLoader()

void ToggleMissionLoader ( )
inlineprotected
774 {
775 if ( g_Game.GetUIManager().IsMenuOpen(MENU_MISSION_LOADER) )
776 {
777 g_Game.GetUIManager().Back();
778 GetGame().GetMission().RemoveActiveInputExcludes({"menu"},true);
779 return;
780 }
781
782 if ( g_Game.GetUIManager().GetMenu() )
783 g_Game.GetUIManager().GetMenu().Close();
784
785 g_Game.GetUIManager().EnterScriptedMenu(MENU_MISSION_LOADER, NULL);
786 GetGame().GetMission().AddActiveInputExcludes({"menu"});
787
788
789 }
const int MENU_MISSION_LOADER
Definition constants.c:212

Перекрестные ссылки g_Game, GetGame() и MENU_MISSION_LOADER.

◆ ToggleScriptConsole()

void ToggleScriptConsole ( )
inlineprotected
755 {
756 if (GetGame() != null && !g_Game.IsLoading() && GetGame().GetMission())
757 {
758 if ( g_Game.GetUIManager().GetMenu() == NULL )
759 {
760 m_ScriptConsole = g_Game.GetUIManager().EnterScriptedMenu(MENU_SCRIPTCONSOLE, NULL);
761 GetGame().GetMission().AddActiveInputExcludes({"menu"});
762
763 }
764 else if ( g_Game.GetUIManager().IsMenuOpen(MENU_SCRIPTCONSOLE) )
765 {
766 g_Game.GetUIManager().Back();
767 GetGame().GetMission().RemoveActiveInputExcludes({"menu"},true);
768 }
769 }
770 }
UIScriptedMenu m_ScriptConsole
Definition PluginDeveloper.c:6

Перекрестные ссылки g_Game, GetGame() и MENU_SCRIPTCONSOLE.

◆ TotemFlagChange()

void TotemFlagChange ( bool top,
notnull PlayerBase player,
notnull EntityAI totem )
inlineprotected
366 {
367 if (m_ActionsFilter !=1)
368 return;
369
370 string prefix = GetPlayerPrefix(player, player.GetIdentity());
371 string flagType = totem.FindAttachmentBySlotName("Material_FPole_Flag").ClassName();
372 string action;
373
374 if (top)
375 action = "raised ";
376 else
377 action = "lowered ";
378
379 LogPrint( prefix + " has " + action + flagType + " on " + totem.ClassName() + " at " + totem.GetPosition());
380 }

Перекрестные ссылки GetPlayerPrefix(), LogPrint() и m_ActionsFilter.

◆ TransmitAgents()

void TransmitAgents ( EntityAI source,
EntityAI target,
int pathway,
int dose_size = 1000 )
inlineprotected
283 {
285 }
float TransmitAgentsEx(EntityAI source, EntityAI target, int pathway, int dose_size=1000, int agents=0)
Definition PluginTransmissionAgents.c:194

Перекрестные ссылки TransmitAgentsEx().

◆ TransmitAgentsEx()

float TransmitAgentsEx ( EntityAI source,
EntityAI target,
int pathway,
int dose_size = 1000,
int agents = 0 )
inlineprotected
195 {
196 //Debug.Log("Transmitting agents for source: " +source.ToString()+", target: " +target.ToString(),"Agents");
197 int sourceAgents = agents;
198 int targetAgents;
199 if(!sourceAgents && source) sourceAgents = source.GetAgents();//do not set sourceAgents again if already set
200 if(target) targetAgents = target.GetAgents();
201 int pollution = GetGame().GetMission().GetWorldData().GetPollution();
202
203 float count = 0;
204
205 switch (pathway)
206 {
207 case AGT_INV_OUT: //item leaving inventory
208 break;
209
210 case AGT_INV_IN: //item entering inventory
211 break;
212
213 case AGT_UACTION_TOUCH: //player touched the item
214 //InjectAgents( source, targetAgents ,GetProtectionLevel(DEF_BIOLOGICAL,InventorySlots.GLOVES, player) );
215 break;
216
217 case AGT_WATER_POND:
218 if (pollution & EPollution.HEAVYMETAL)
219 {
220 sourceAgents = sourceAgents | eAgents.HEAVYMETAL;
221 }
223 InjectAgentsWithPlayer( target, sourceAgents , 0, 1, InjectTypes.ITEM_TO_PLAYER );
224 break;
225
227 sourceAgents = sourceAgents | eAgents.FOOD_POISON | eAgents.HEAVYMETAL;
228 InjectAgentsWithPlayer( target, sourceAgents , 0, 1, InjectTypes.ITEM_TO_PLAYER );
229 break;
230
231 case AGT_SNOW:
232 if (pollution & EPollution.HEAVYMETAL)
233 {
234 sourceAgents = sourceAgents | eAgents.HEAVYMETAL;
235 }
236 InjectAgentsWithPlayer( target, sourceAgents , 0, 1, InjectTypes.ITEM_TO_PLAYER );
237 break;
238
240 //InjectAgentsWithPlayer( target, sourceAgents , 0, dose_size, InjectTypes.ITEM_TO_PLAYER );
241 InjectAgentsWithPlayer( source, targetAgents , 0, 1, InjectTypes.PLAYER_TO_ITEM );
242 break;
243
244 case AGT_UACTION_TO_PLAYER: //user action of a consumption, only from item to player
246 break;
247
248 case AGT_UACTION_TO_ITEM: //to transfer from the player to the consumed item
249 InjectAgentsWithPlayer( target, sourceAgents , 0, 1, InjectTypes.PLAYER_TO_ITEM );
250 break;
251
252 case AGT_TRANSFER_COPY: //transferring liquid
254 break;
255
256 case AGT_ITEM_TO_FLESH: //transferring liquid
257 InjectAgentsWithPlayer( target, sourceAgents , 0, 1, InjectTypes.ITEM_TO_PLAYER);
258 break;
259
265 float prot_level_target = Math.Max(prot_level_mask_target, prot_level_headgear_target);//find the bigger of the 2, TODO: should be improved
266 float prot_level_source = Math.Max(prot_level_mask_source, prot_level_headgear_source);//find the bigger of the 2, TODO: should be improved
269 break;
272
274 break;
275 default:
276 break;
277 }
278 return count;
279 }
eAgents
Definition EAgents.c:3
void InjectAgentsWithPlayer(EntityAI target, int agents, float protection, int dose_size, int inject_type)
will add agents to a given target, using chance of transmission and full dose size if chance succeeds
Definition PluginTransmissionAgents.c:297
void InjectAgentsWithPlayerCount(EntityAI target, int agents, float protection, int dose_size, int inject_type)
will add agents to a given target, with no probability, but the dose size is modified by m_Transferab...
Definition PluginTransmissionAgents.c:315
void InjectAgentsWithoutPlayer(EntityAI target, int agents)
Definition PluginTransmissionAgents.c:287
float GetProtectionLevel(int type, int slot, Man player)
Definition PluginTransmissionAgents.c:368
float InjectAgentWithPlayerDose(EntityAI target, int agent, float protection, float dose_size, int inject_type)
will add agent to a given target
Definition PluginTransmissionAgents.c:331
const int AGT_UACTION_CONSUME
Definition constants.c:476
const int AGT_ITEM_TO_FLESH
Definition constants.c:483
const int AGT_UACTION_TOUCH
Definition constants.c:478
const int DEF_BIOLOGICAL
Definition constants.c:489
const int DEF_CHEMICAL
Definition constants.c:490
const int AGT_AIRBOURNE_BIOLOGICAL
Definition constants.c:480
const int AGT_TRANSFER_COPY
Definition constants.c:477
const int AGT_WATER_HOT_SPRING
Definition constants.c:487
const int AGT_WATER_POND
Definition constants.c:479
const int AGT_INV_OUT
Definition constants.c:475
const int AGT_UACTION_TO_PLAYER
Definition constants.c:481
const int AGT_AIRBOURNE_CHEMICAL
Definition constants.c:484
const int AGT_UACTION_TO_ITEM
Definition constants.c:482
const int AGT_SNOW
Definition constants.c:485
const int AGT_INV_IN
Definition constants.c:474

Перекрестные ссылки AGT_AIRBOURNE_BIOLOGICAL, AGT_AIRBOURNE_CHEMICAL, AGT_INV_IN, AGT_INV_OUT, AGT_ITEM_TO_FLESH, AGT_SNOW, AGT_TRANSFER_COPY, AGT_UACTION_CONSUME, AGT_UACTION_TO_ITEM, AGT_UACTION_TO_PLAYER, AGT_UACTION_TOUCH, AGT_WATER_HOT_SPRING, AGT_WATER_POND, DEF_BIOLOGICAL, DEF_CHEMICAL, GetGame(), GetProtectionLevel(), InjectAgentsWithoutPlayer(), InjectAgentsWithPlayer(), InjectAgentsWithPlayerCount(), InjectAgentWithPlayerDose() и Math::Max().

Используется в TransmitAgents().

◆ UnconStart()

void UnconStart ( PlayerBase player)
inlineprotected
300 {
301 m_PlayerPrefix = GetPlayerPrefix( player , player.GetIdentity() );
302
303 LogPrint( m_PlayerPrefix + " is unconscious" );
304 }

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ UnconStop()

void UnconStop ( PlayerBase player)
inlineprotected
307 {
308 if ( player.IsAlive() ) // Do not log uncon stop for dead players
309 {
310 m_PlayerPrefix = GetPlayerPrefix( player , player.GetIdentity() );
311
312 LogPrint( m_PlayerPrefix + " regained consciousness" );
313 }
314 }

Перекрестные ссылки GetPlayerPrefix() и LogPrint().

◆ UnlinkSceneObjects()

void UnlinkSceneObjects ( SceneObject scene_object1,
SceneObject scene_object2 )
inlineprivate
681 {
682 scene_object1.UnlinkSceneObject(scene_object2);
683 scene_object2.UnlinkSceneObject(scene_object1);
684 }

◆ Unsubscribe()

void Unsubscribe ( MessageReceiverBase receiver,
int index )
inlineprivate
121 {
123 int i = chan.Find(receiver);
124 if( i >= 0 )
125 {
126 chan.Remove(i);
127 }
128 }

◆ UnsubscribeAll()

void UnsubscribeAll ( MessageReceiverBase receiver)
inlineprivate
131 {
132 //GetGame().ProfilerStart("UnsubscribeAll");
133 for (int i = 0; i <= channelsUsed; i++)
134 {
136 int c = chan.Find(receiver);
137 if( c >= 0 )
138 {
139 chan.Remove(c);
140 }
141 }
142 //GetGame().ProfilerStop("UnsubscribeAll");
143 }

Перекрестные ссылки channelsUsed.

◆ Update()

void Update ( )
inlineprotected

!!!! Highly suspect

161 {
162 if ( !GetDayZGame().IsMultiplayer() || GetDayZGame().IsServer() )
163 {
164 for ( int i = 0; i < m_RegisteredPlayers.Count(); ++i )
165 {
167 if ( !player || !player.IsAlive() )
168 {
169 m_RegisteredPlayers.RemoveElement(i);
170 i--;
171 }
172 else
173 {
174 int bit_mask = m_RegisteredPlayers.Get( player ).m_Bitmask;
175
176 if ((PDS_SYSTEMS.MODS & bit_mask) != 0 )
177 {
179 if ( PDS_SYSTEMS.MODS_DETAILED & bit_mask )
181 }
182 if ((PDS_SYSTEMS.LEVELS & bit_mask) != 0 )
183 {
185 }
186
187 if ((PDS_SYSTEMS.STATS & bit_mask) != 0 )
188 {
190 }
191 if ((PDS_SYSTEMS.STOMACH & bit_mask) != 0 )
192 {
194 }
195 if ((PDS_SYSTEMS.AGENTS & bit_mask) != 0 )
196 {
198 }
199 if ((PDS_SYSTEMS.TEMPERATURE & bit_mask) )
200 {
202 }
203 if ((PDS_SYSTEMS.HEALTH & bit_mask) )
204 {
206 }
207 }
208 }
209 }
210 }
void SendRPCStomach(PlayerBase player)
Definition PluginDeveloperSync.c:977
void SendRPCStats(PlayerBase player)
Definition PluginDeveloperSync.c:434
void SendRPCLevels(PlayerBase player)
Definition PluginDeveloperSync.c:694
void SendRPCHealth(PlayerBase player)
Definition PluginDeveloperSync.c:541
void SendRPCMods(PlayerBase player)
Definition PluginDeveloperSync.c:738
void SendRPCAgents(PlayerBase player)
Definition PluginDeveloperSync.c:937
void SendRPCTemp(PlayerBase player)
Definition PluginDeveloperSync.c:908
void SendRPCModsDetail(PlayerBase player)
Definition PluginDeveloperSync.c:775

Перекрестные ссылки GetDayZGame(), SendRPCAgents(), SendRPCHealth(), SendRPCLevels(), SendRPCMods(), SendRPCModsDetail(), SendRPCStats(), SendRPCStomach() и SendRPCTemp().

◆ UpdateStatsLocal()

void UpdateStatsLocal ( )
inlineprotected
486 {
488
489 //clear values
490 m_PlayerStatsSynced.Clear();
491
492 //set values
493 for ( int i = 0; i < player.m_PlayerStats.GetPCO().Get().Count(); i++ )
494 {
495 string label = player.m_PlayerStats.GetPCO().Get().Get( i ).GetLabel();
496 float value = player.m_PlayerStats.GetPCO().Get().Get( i ).Get();
497 float value_norm = player.m_PlayerStats.GetPCO().Get().Get( i ).GetNormalized();
498 m_PlayerStatsSynced.Insert( new SyncedValue( label, value, false, value_norm ) );
499 }
500
501 m_PlayerStatsSynced.Insert(new SyncedValue( "(NaS)Immunity", player.GetImmunity() , false, 0));
502 m_PlayerStatsSynced.Insert(new SyncedValue( "(NaS) BrokenLegs", player.m_BrokenLegState, false, 0));
503 }

Перекрестные ссылки Count, Get(), GetDayZGame() и GetPlayer().

◆ UpdateStatWidget()

void UpdateStatWidget ( int rowIndex,
UTemperatureSourceDebug utsd )
inlineprotected
188 {
189 m_StatListWidgets[rowIndex].ClearItems();
190
191 m_HeaderWidget[rowIndex].SetText(utsd.GetHeader());
192
193 int numPairs = utsd.PairsCount();
194 for (int i = 0; i < numPairs; ++i)
195 {
196 m_StatListWidgets[rowIndex].AddItem(utsd.GetName(i), null, 0, i);
197 m_StatListWidgets[rowIndex].SetItem(i, utsd.GetValue(i), null, 1);
198 }
199
200 // manually add value for distance (client only)
201 m_StatListWidgets[rowIndex].AddItem("distance", null, 0, numPairs);
202 m_StatListWidgets[rowIndex].SetItem(numPairs, vector.Distance(m_Player.GetPosition(), utsd.GetValue(0).ToVector()).ToString(), null, 1);
203 }

Перекрестные ссылки vector::Distance(), m_Player и m_StatListWidgets.

Используется в UpdateStatWidgets().

◆ UpdateStatWidgets()

void UpdateStatWidgets ( )
inlineprotected
156 {
157 int i = 0;
159 for (; i < utsDebugCount && i < MAX_SIMULTANEOUS_UTS; ++i)
160 {
162 vector pos = utsd.GetValue(0).ToVector();
163 vector screen_pos_stats = GetGame().GetScreenPos(pos + "0 0 0");
164 vector screen_pos_damage = GetGame().GetScreenPos(pos + "0 2 0");
166
167 if (screen_pos_stats[2] > 0 && screen_pos_stats[0] > 0 && screen_pos_stats[1] > 0)
168 {
169 m_RootWidget[i].Show(true);
171 }
172 else
173 {
174 m_RootWidget[i].Show(false);
175 }
176 }
177
178 for (; i < MAX_SIMULTANEOUS_UTS; ++i)
179 {
180 if (m_RootWidget[i])
181 {
182 m_RootWidget[i].Show(false);
183 }
184 }
185 }
void UpdateStatWidget(int rowIndex, UTemperatureSourceDebug utsd)
Definition PluginUniversalTemperatureSourceClient.c:187

Перекрестные ссылки GetGame(), m_RootWidget, MAX_SIMULTANEOUS_UTS и UpdateStatWidget().

Используется в OnUpdate().

Поля

◆ channelList

◆ channelsUsed

int channelsUsed = 0
private

Используется в UnsubscribeAll().

◆ CLICK_TIME

const int CLICK_TIME = 200
protected

◆ DOUBLE_CLICK_TIME

const int DOUBLE_CLICK_TIME = 300
protected

◆ fadeInVolume

float fadeInVolume = 1.1
private

◆ fadeOutVolume

float fadeOutVolume = 0.9
private

◆ FOV

const float FOV = 0.5236
private

◆ HOLD_CLICK_TIME_MIN

const int HOLD_CLICK_TIME_MIN = 300
protected

◆ instance [1/2]

PluginKeyBinding instance
staticprivate

◆ instance [2/2]

PluginSceneManager instance
staticprivate

◆ INTERVAL

const int INTERVAL = 1
private

◆ LOOKUP_RADIUS

const float LOOKUP_RADIUS = 20
private

[s]

◆ m_AccuTime

float m_AccuTime
private

[m]

◆ m_ActionsFilter

int m_ActionsFilter
protected

◆ m_AgentList

ref map<int, ref AgentBase> m_AgentList = new map<int, ref AgentBase>()
staticprivate

Используется в GetAgentList().

◆ m_AgentsUpdateStatus

bool m_AgentsUpdateStatus
protected

◆ m_AttackDescriptors

◆ m_AttackDirCB

XComboBoxWidget m_AttackDirCB
private

◆ m_AttackTypeCB

XComboBoxWidget m_AttackTypeCB
private

◆ m_BleedMgr

BleedingSourcesManagerServer m_BleedMgr
private

◆ m_cam_pos

vector m_cam_pos
private

◆ m_camera_dir

vector m_camera_dir
private

◆ m_camera_orientation

vector m_camera_orientation
private

◆ m_cameraTrans

vector m_cameraTrans[4]
private

◆ m_CardFightButton

ButtonWidget m_CardFightButton
private

◆ m_CardFightFrame

Widget m_CardFightFrame
private

◆ m_CardMovementButton

ButtonWidget m_CardMovementButton
private

◆ m_CardMovementFrame

Widget m_CardMovementFrame
private

◆ m_CH_DoAttack

bool m_CH_DoAttack = false
private

◆ m_CH_DoHit

bool m_CH_DoHit = false
private

◆ m_CH_DoKnucleOut

bool m_CH_DoKnucleOut = false
private

◆ m_CH_DoTurn

bool m_CH_DoTurn = false
private

command handler values

◆ m_CH_DoVault

bool m_CH_DoVault = false
private

◆ m_CH_GoToCrawl

bool m_CH_GoToCrawl = false
private

◆ m_CH_StartDeath

bool m_CH_StartDeath = false
private

◆ m_Character

PlayerBase m_Character
private

◆ m_character_pos

vector m_character_pos
private

◆ m_ClassBrowserSelected

string m_ClassBrowserSelected
protected

◆ m_ClientList

ref set< PlayerBase > m_ClientList = new set<PlayerBase>
private

Используется в SendDebug().

◆ m_ControlledInfected

DayZInfected m_ControlledInfected
private

controlled instance

◆ m_CrawlingTypeCB

XComboBoxWidget m_CrawlingTypeCB
private

◆ m_CurrentMode

int m_CurrentMode = 0
private

◆ m_DeathTypeCB

XComboBoxWidget m_DeathTypeCB
private

◆ m_DebugShapes

ref array<Shape> m_DebugShapes = new array<Shape>()
private

◆ m_DebugType

eRemoteDebugType m_DebugType
private

◆ m_DecayTimer

ref Timer m_DecayTimer
private

◆ m_demoPos

vector m_demoPos
private

◆ m_demoRot

vector m_demoRot
private

◆ m_DetailedInfoRequested

int m_DetailedInfoRequested = 0
private

◆ m_DisplayName

string m_DisplayName
private

◆ m_Distance

float m_Distance
private

◆ m_DotIndex

int m_DotIndex
private

◆ m_EnvironmentDebugMessage

string m_EnvironmentDebugMessage
private

◆ m_FeaturesMask

int m_FeaturesMask
protected

◆ m_FileContent

ref TStringArray m_FileContent
private

◆ m_HasFocus

bool m_HasFocus = false
private

◆ m_HeaderWidget

TextWidget m_HeaderWidget[MAX_SIMULTANEOUS_UTS]
protected

◆ m_HealthObserverEntity

ref map<PlayerBase, EntityAI> m_HealthObserverEntity
protected

◆ m_HealthObserverMode

ref map<PlayerBase, bool> m_HealthObserverMode
protected

◆ m_HitBodyPartCB

XComboBoxWidget m_HitBodyPartCB
private

◆ m_HitDirEB

EditBoxWidget m_HitDirEB
private

fight card

◆ m_HitFilter

int m_HitFilter
protected

◆ m_HitMessage

string m_HitMessage
private

◆ m_HitTypeCB

XComboBoxWidget m_HitTypeCB
private

◆ m_Hud

Hud m_Hud
private

◆ m_Id

int m_Id
private

◆ m_Initialized

bool m_Initialized
private

◆ m_Instance

PluginCameraTools m_Instance
staticprotected

◆ m_IsActive

bool m_IsActive = false
private

Используется в IsActive() и IsActive().

◆ m_IsConstructed

bool m_IsConstructed = false
private

◆ m_IsDragging

bool m_IsDragging
protected

◆ m_IsOpen [1/2]

bool m_IsOpen
staticprotected

◆ m_IsOpen [2/2]

bool m_IsOpen
protected

◆ m_IsTargetChanged

bool m_IsTargetChanged
protected

Используется в GetIsTargetChanged().

◆ m_IsWinHolding

bool m_IsWinHolding
protected

◆ m_ItemInHands

string m_ItemInHands
private

◆ m_KeyBindings [1/2]

ref array<ref KeyBinding> m_KeyBindings
protected

◆ m_KeyBindings [2/2]

ref map<int, KeyBinding> m_KeyBindings
protected

◆ m_KnucleOutButton

ButtonWidget m_KnucleOutButton
private

◆ m_LevelsUpdateStatus

bool m_LevelsUpdateStatus
protected

◆ m_LineLimit

int m_LineLimit
private

◆ m_LockedObjects

ref array<Object> m_LockedObjects
private

◆ m_LockedObjectsDecay

ref array<float> m_LockedObjectsDecay
private

◆ m_MainWindow

ref Widget m_MainWindow
private

◆ m_MainWnd

Widget m_MainWnd
private

main controls

Используется в DestroyModuleWidgets() и DestroyModuleWidgets().

◆ m_Message

string m_Message
private

◆ m_MindStateCB

XComboBoxWidget m_MindStateCB
private

◆ m_ModsUpdateStatus

bool m_ModsUpdateStatus
protected

◆ m_ModuleConfigDebugProfile

PluginConfigDebugProfile m_ModuleConfigDebugProfile
protected

◆ m_ModuleConfigScene

PluginConfigScene m_ModuleConfigScene
protected

◆ m_ModuleDeveloper

PluginDeveloper m_ModuleDeveloper
private

◆ m_MouseBindings

ref array<ref MouseBinding> m_MouseBindings
protected

◆ m_MouseButtons

ref array<ref MouseButtonInfo> m_MouseButtons
protected

◆ m_MovementSpeedEB

EditBoxWidget m_MovementSpeedEB
private

◆ m_NotifiersIcons

ref multiMap<int, string> m_NotifiersIcons
private

◆ m_NotifiersIndexColor

ref multiMap<int, int> m_NotifiersIndexColor
private

◆ m_NotifiersLabel

ref multiMap<int, string> m_NotifiersLabel
private

◆ m_Pid

string m_Pid
private

◆ m_PlacementFilter

int m_PlacementFilter
protected

◆ m_PlantMaterials

ref map<string, ref PlantMaterialHealth> m_PlantMaterials
private

◆ m_Player

PlayerBase m_Player
private

◆ m_PlayerAgentsSynced

ref array<ref SyncedValueAgent> m_PlayerAgentsSynced
private

◆ m_PlayerArray

autoptr array<Man> m_PlayerArray
protected

Используется в PlayerList().

◆ m_PlayerDebugDamage

◆ m_PlayerDebugStats

◆ m_PlayerLevelsSynced

ref array<ref SyncedValueLevel> m_PlayerLevelsSynced
private

◆ m_PlayerListFilter

int m_PlayerListFilter
protected

◆ m_PlayerModsDetailedSynced

string m_PlayerModsDetailedSynced
private

◆ m_PlayerModsSynced

ref array<ref SyncedValueModifier> m_PlayerModsSynced
private

◆ m_PlayerName

string m_PlayerName
private

◆ m_PlayerPrefix

string m_PlayerPrefix
private

◆ m_PlayerPrefix2

string m_PlayerPrefix2
private

◆ m_PlayerStatsSynced

ref array<ref SyncedValue> m_PlayerStatsSynced
private

◆ m_PlayerStomachSynced

ref array<ref Param> m_PlayerStomachSynced
private

◆ m_PosArray

string m_PosArray[3]
private

◆ m_Position

vector m_Position
private

◆ m_pPlayer

PlayerBase m_pPlayer
protected

◆ m_PressedMouseID

int m_PressedMouseID
protected

◆ m_pUIHandler

ref PluginDayZInfectedDebugUIHandler m_pUIHandler
private

◆ m_ReadOnly

bool m_ReadOnly
private

◆ m_RegisteredPlayers

ref map<PlayerBase, ref RegisterPlayerData> m_RegisteredPlayers
private

◆ m_RootWidget

ref Widget m_RootWidget[MAX_SIMULTANEOUS_UTS]
protected

◆ m_Ruler

ItemBase m_Ruler
private

◆ m_RulerActivated

bool m_RulerActivated
private

◆ m_RulerLines

ref array<Shape> m_RulerLines
private

◆ m_RulerPoints

ref array<vector> m_RulerPoints
private

◆ m_RulerSpheres

ref array<Shape> m_RulerSpheres
private

◆ m_SceneData

ref SceneData m_SceneData
protected

◆ m_ScriptConsole

UIScriptedMenu m_ScriptConsole
protected

◆ m_SelectedObject

SceneObject m_SelectedObject
protected

◆ m_ShapesSceneObjects

ref array<Shape> m_ShapesSceneObjects
protected

◆ m_SimpleAgentList

ref map<int, string> m_SimpleAgentList = new map<int, string>
private

Используется в GetSimpleAgentList().

◆ m_soundBuilder

ref SoundObjectBuilder m_soundBuilder
private

◆ m_soundObject

ref SoundObject m_soundObject
private

◆ m_soundParams

ref SoundParams m_soundParams
private

◆ m_Source

PlayerBase m_Source
private

◆ m_SpawnEntityButton

ButtonWidget m_SpawnEntityButton
private

◆ m_StanceCB

XComboBoxWidget m_StanceCB
private

movement card

◆ m_StartAttackButton

ButtonWidget m_StartAttackButton
private

◆ m_StartCrawlingButton

ButtonWidget m_StartCrawlingButton
private

◆ m_StartDeathButton

ButtonWidget m_StartDeathButton
private

◆ m_StartHitButton

ButtonWidget m_StartHitButton
private

◆ m_StartTurnButton

ButtonWidget m_StartTurnButton
private

◆ m_StartVaultButton

ButtonWidget m_StartVaultButton
private

◆ m_StatEnergy

PlayerStat<float> m_StatEnergy
private

◆ m_StatListWidgets

TextListboxWidget m_StatListWidgets[MAX_SIMULTANEOUS_UTS]
protected

◆ m_StatsUpdateStatus

bool m_StatsUpdateStatus
protected

◆ m_StatusText

TextWidget m_StatusText
private

◆ m_StatWater

PlayerStat<float> m_StatWater
private

◆ m_StomachUpdateStatus

bool m_StomachUpdateStatus
protected

◆ m_TargetHealthSynced

ref array<ref SyncedValue> m_TargetHealthSynced
protected

Используется в GetHealthZonesSynched().

◆ m_TickTimer

ref Timer m_TickTimer
private

status refresh timer

◆ m_TimeLastClickPress

float m_TimeLastClickPress
protected

◆ m_TimeLastClickRelease

float m_TimeLastClickRelease
protected

◆ m_Timer

ref Timer m_Timer
protected

◆ m_TurnDirectionEB

EditBoxWidget m_TurnDirectionEB
private

◆ m_TurnTypeCB

XComboBoxWidget m_TurnTypeCB
private

◆ m_UpdateTimer

ref Timer m_UpdateTimer
private

◆ m_UTemperatureSourceDebugs

ref array< ref UTemperatureSourceDebug > m_UTemperatureSourceDebugs
protected

◆ m_UTSAverageTemperature

float m_UTSAverageTemperature
protected

◆ m_Variables

ref map<int, string> m_Variables
private

◆ m_VaultingCB

XComboBoxWidget m_VaultingCB
private

◆ m_Watching

bool m_Watching
private

◆ m_wave

AbstractWave m_wave
private

◆ MAX_SIMULTANEOUS_UTS

const int MAX_SIMULTANEOUS_UTS = 10
private

Используется в EnableWidgets(), InitWidgets() и UpdateStatWidgets().

◆ PLAYER

PlayerBase PLAYER
staticprivate

◆ SCENE_DEFAULT_NAME

string SCENE_DEFAULT_NAME = "default"
staticprivate

◆ SCENE_EDITOR_CMD_POPUP

const int SCENE_EDITOR_CMD_POPUP = 1
staticprivate

◆ SCENE_EDITOR_CMD_REFRESH

const int SCENE_EDITOR_CMD_REFRESH = 0
staticprivate

◆ SCENE_EDITOR_CMD_SAVE

const int SCENE_EDITOR_CMD_SAVE = 2
staticprivate

◆ SCENE_SUFIX

string SCENE_SUFIX = "scene"
staticprivate

◆ TICK_RATE

const float TICK_RATE = 10
private

Используется в Decay().

◆ TIME_TO_FORCED_UNLOCK

const float TIME_TO_FORCED_UNLOCK = 60
private

◆ TIMER_PLAYERLIST

const int TIMER_PLAYERLIST = GetPlayerListTimer()
protected

Объявления и описания членов классов находятся в файлах: