Dayz Build 1.29.163047, Scripts Rev. 123548
Dayz Code Explorer by Zeroy
Loading...
Searching...
No Matches
BleedingSourcesManagerBase Class Reference

Protected Member Functions

void BleedingSourcesManagerBase (PlayerBase player)
void ~BleedingSourcesManagerServer ()
void ActivateAllBS ()
void AddBleedingSource (int bit)
void AddBleedingSource (int bit)
void AddBleedingSource (int bit)
void AddBleedingSourceEx (int bit, eBleedingSourceType type=eBleedingSourceType.NORMAL, int context=0)
bool AttemptAddBleedingSource (int component)
bool AttemptAddBleedingSourceBySelection (string selection_name)
bool AttemptAddBleedingSourceDirectly (int bit, eBleedingSourceType type=eBleedingSourceType.NORMAL, int context=0)
bool CanAddBleedingSource (int bit)
void CleanDebug ()
void CleanVisualDebug ()
void DebugActivateBleedingSource (int source)
void DisplayDebug ()
void DisplayVisualDebug ()
int GetBitFromSelectionID (int id)
int GetBitFromSelectionName (string name)
int GetBleedingSourceActiveTime (int bit)
int GetBleedingSourceBitsByInvLocation (int inv_location)
int GetBleedingSourceCountRemote ()
BleedingSourceZone GetBleedingSourceMeta (int bit)
int GetBleedingSourcesCount ()
set< intGetBleedingSourcesLocations ()
eBleedingSourceType GetBleedingSourceType (int bit)
BleedingSourceZone GetBleedingSourceZone (int bit)
int GetFreeBleedingSourceBitsByInvLocation (int inv_location)
int GetMostSignificantBleedingSource ()
int GetRegisteredSourcesCount ()
string GetSelectionNameFromBit (int bit)
int GetStorageVersion ()
void Init ()
void Init ()
bool IsBleedingSourceActive (string name)
void OnBleedingBitsUpdate (int old_mask, int new_mask)
bool OnStoreLoad (ParamsReadContext ctx, int version)
void OnStoreSave (ParamsWriteContext ctx)
void OnTick (float delta_time)
void OnUpdate ()
void OnVariablesSynchronized (int current_bits)
void ProcessHit (float damage, EntityAI source, int component, string zone, string ammo, vector modelPos)
void RegisterBleedingZone (string name, int max_time, string bone="", vector orientation="0 0 0", vector offset="0 0 0", float flow_modifier=1, string particle_name="BleedingSourceEffect")
void RegisterBleedingZoneEx (string name, int max_time, string bone="", vector orientation="0 0 0", vector offset="0 0 0", float flow_modifier=1, string particle_name="BleedingSourceEffect", int inv_location=0)
void RegisterBleedingZoneEx (string name, int max_time, string bone="", vector orientation="0 0 0", vector offset="0 0 0", float flow_modifier=1, string particle_name="BleedingSourceEffect", int inv_location=0)
void Reload ()
void RemoveAllSources ()
void RemoveAnyBleedingSource ()
bool RemoveBleedingSource (int bit)
bool RemoveBleedingSource (int bit)
bool RemoveBleedingSource (int bit)
void RemoveMostSignificantBleedingSource ()
void RemoveMostSignificantBleedingSourceEx (ItemBase item)
void RequestDeletion (int bit)
void SetBleedingSourceActiveTime (int bit, int time)
void SetBleedingSourceType (int bit, eBleedingSourceType type)
void SetBloodLoss (bool status)
void SetDiag (bool value)
void SetItem (ItemBase item)

Protected Attributes

int m_Bit
int m_BitOffset = 0
bool m_ProcessSourcesRemoval = false
const int STORAGE_VERSION = 103

Private Attributes

ref map< int, stringm_BitToFireGeom = new map<int, string>
int m_BleedingBits
ref map< int, ref BleedingSourcem_BleedingSources = new map<int, ref BleedingSource>
ref map< int, intm_BleedingSourcesByLocation = new map<int, int>
ref map< string, ref BleedingSourceZonem_BleedingSourceZone = new map<string, ref BleedingSourceZone>
ref array< intm_DeleteList = new array<int>
bool m_DisableBloodLoss = false
bool m_EnableHitIndication = false
ItemBase m_Item
PlayerBase m_Player
Shape m_Point
bool m_ShowDiag
bool m_ShowingDiag
bool m_ShowingDiagDraw
float m_Tick
const float TICK_INTERVAL_SEC = 3

Static Private Attributes

static ref set< intm_BleedingSourcesLocationsList = new set<int>
static ref map< int, intm_BleedingSourcesZonesMaskByLocation = new map<int, int>

Detailed Description

Definition at line 1 of file bleedingsourcesmanagerbase.c.

Constructor & Destructor Documentation

◆ BleedingSourcesManagerBase()

void BleedingSourcesManagerBase ( PlayerBase player)
inlineprotected

Definition at line 15 of file bleedingsourcesmanagerbase.c.

References Init(), and m_Player.

◆ ~BleedingSourcesManagerServer()

void ~BleedingSourcesManagerServer ( )
inlineprotected

Definition at line 298 of file bleedingsourcesmanagerserver.c.

References m_Player, and RemoveAllSources().

Member Function Documentation

◆ ActivateAllBS()

void ActivateAllBS ( )
inlineprotected

◆ AddBleedingSource() [1/3]

◆ AddBleedingSource() [2/3]

void AddBleedingSource ( int bit)
inlineprotected

Definition at line 71 of file bleedingsourcesmanagerremote.c.

References g_Game, m_BleedingSources, and m_Player.

◆ AddBleedingSource() [3/3]

void AddBleedingSource ( int bit)
inlineprotected

Definition at line 31 of file bleedingsourcesmanagerserver.c.

References m_Player.

◆ AddBleedingSourceEx()

void AddBleedingSourceEx ( int bit,
eBleedingSourceType type = eBleedingSourceType.NORMAL,
int context = 0 )
inlineprotected

◆ AttemptAddBleedingSource()

bool AttemptAddBleedingSource ( int component)
inlineprotected

◆ AttemptAddBleedingSourceBySelection()

bool AttemptAddBleedingSourceBySelection ( string selection_name)
inlineprotected

◆ AttemptAddBleedingSourceDirectly()

bool AttemptAddBleedingSourceDirectly ( int bit,
eBleedingSourceType type = eBleedingSourceType.NORMAL,
int context = 0 )
inlineprotected

Definition at line 230 of file bleedingsourcesmanagerbase.c.

References AddBleedingSourceEx(), and CanAddBleedingSource().

◆ CanAddBleedingSource()

◆ CleanDebug()

void CleanDebug ( )
inlineprotected

◆ CleanVisualDebug()

void CleanVisualDebug ( )
inlineprotected

Definition at line 244 of file bleedingsourcesmanagerremote.c.

References m_BleedingSources, and m_ShowingDiagDraw.

Referenced by OnUpdate().

◆ DebugActivateBleedingSource()

void DebugActivateBleedingSource ( int source)
inlineprotected

◆ DisplayDebug()

◆ DisplayVisualDebug()

void DisplayVisualDebug ( )
inlineprotected

Definition at line 214 of file bleedingsourcesmanagerremote.c.

References m_BleedingSources, and m_ShowingDiagDraw.

Referenced by OnUpdate().

◆ GetBitFromSelectionID()

int GetBitFromSelectionID ( int id)
inlineprotected

◆ GetBitFromSelectionName()

int GetBitFromSelectionName ( string name)
inlineprotected

◆ GetBleedingSourceActiveTime()

int GetBleedingSourceActiveTime ( int bit)
inlineprotected

Definition at line 274 of file bleedingsourcesmanagerbase.c.

References m_BleedingSources.

Referenced by OnStoreSave().

◆ GetBleedingSourceBitsByInvLocation()

int GetBleedingSourceBitsByInvLocation ( int inv_location)
inlineprotected

◆ GetBleedingSourceCountRemote()

int GetBleedingSourceCountRemote ( )
inlineprotected

Definition at line 118 of file bleedingsourcesmanagerremote.c.

References BIT_INT_SIZE, m_BleedingBits, and Math::Pow().

◆ GetBleedingSourceMeta()

◆ GetBleedingSourcesCount()

int GetBleedingSourcesCount ( )
inlineprotected

Definition at line 321 of file bleedingsourcesmanagerbase.c.

References m_BleedingSources.

◆ GetBleedingSourcesLocations()

set< int > GetBleedingSourcesLocations ( )
inlineprotected

Definition at line 70 of file bleedingsourcesmanagerbase.c.

References m_BleedingSourcesLocationsList.

◆ GetBleedingSourceType()

eBleedingSourceType GetBleedingSourceType ( int bit)
inlineprotected

Definition at line 299 of file bleedingsourcesmanagerbase.c.

References m_BleedingSources.

Referenced by OnStoreSave().

◆ GetBleedingSourceZone()

BleedingSourceZone GetBleedingSourceZone ( int bit)
inlineprotected

◆ GetFreeBleedingSourceBitsByInvLocation()

int GetFreeBleedingSourceBitsByInvLocation ( int inv_location)
inlineprotected

◆ GetMostSignificantBleedingSource()

int GetMostSignificantBleedingSource ( )
inlineprotected

◆ GetRegisteredSourcesCount()

int GetRegisteredSourcesCount ( )
inlineprotected

Definition at line 132 of file bleedingsourcesmanagerbase.c.

References m_BitOffset.

◆ GetSelectionNameFromBit()

string GetSelectionNameFromBit ( int bit)
inlineprotected

◆ GetStorageVersion()

int GetStorageVersion ( )
inlineprotected

Definition at line 17 of file bleedingsourcesmanagerserver.c.

References STORAGE_VERSION.

◆ Init() [1/2]

◆ Init() [2/2]

void Init ( )
inlineprotected

Definition at line 11 of file bleedingsourcesmanagerremote.c.

References g_Game.

◆ IsBleedingSourceActive()

bool IsBleedingSourceActive ( string name)
inlineprotected

Definition at line 98 of file bleedingsourcesmanagerbase.c.

References GetBitFromSelectionName(), m_Player, and name.

◆ OnBleedingBitsUpdate()

void OnBleedingBitsUpdate ( int old_mask,
int new_mask )
inlineprotected

Definition at line 92 of file bleedingsourcesmanagerremote.c.

References AddBleedingSource(), and RemoveBleedingSource().

Referenced by OnVariablesSynchronized().

◆ OnStoreLoad()

◆ OnStoreSave()

void OnStoreSave ( ParamsWriteContext ctx)
inlineprotected

◆ OnTick()

◆ OnUpdate()

void OnUpdate ( )
inlineprotected

◆ OnVariablesSynchronized()

void OnVariablesSynchronized ( int current_bits)
inlineprotected

Definition at line 34 of file bleedingsourcesmanagerremote.c.

References m_BleedingBits, m_Player, and OnBleedingBitsUpdate().

◆ ProcessHit()

◆ RegisterBleedingZone()

void RegisterBleedingZone ( string name,
int max_time,
string bone = "",
vector orientation = "0 0 0",
vector offset = "0 0 0",
float flow_modifier = 1,
string particle_name = "BleedingSourceEffect" )
inlineprotected

Definition at line 165 of file bleedingsourcesmanagerbase.c.

References name, and RegisterBleedingZoneEx().

◆ RegisterBleedingZoneEx() [1/2]

void RegisterBleedingZoneEx ( string name,
int max_time,
string bone = "",
vector orientation = "0 0 0",
vector offset = "0 0 0",
float flow_modifier = 1,
string particle_name = "BleedingSourceEffect",
int inv_location = 0 )
inlineprotected

◆ RegisterBleedingZoneEx() [2/2]

void RegisterBleedingZoneEx ( string name,
int max_time,
string bone = "",
vector orientation = "0 0 0",
vector offset = "0 0 0",
float flow_modifier = 1,
string particle_name = "BleedingSourceEffect",
int inv_location = 0 )
inlineprotected

◆ Reload()

void Reload ( )
inlineprotected

◆ RemoveAllSources()

void RemoveAllSources ( )
inlineprotected

◆ RemoveAnyBleedingSource()

void RemoveAnyBleedingSource ( )
inlineprotected

Definition at line 76 of file bleedingsourcesmanagerserver.c.

References m_Player, and RemoveBleedingSource().

◆ RemoveBleedingSource() [1/3]

◆ RemoveBleedingSource() [2/3]

bool RemoveBleedingSource ( int bit)
inlineprotected

Definition at line 81 of file bleedingsourcesmanagerremote.c.

References g_Game, m_Item, and m_Player.

◆ RemoveBleedingSource() [3/3]

◆ RemoveMostSignificantBleedingSource()

void RemoveMostSignificantBleedingSource ( )
inlineprotected

◆ RemoveMostSignificantBleedingSourceEx()

void RemoveMostSignificantBleedingSourceEx ( ItemBase item)
inlineprotected

◆ RequestDeletion()

void RequestDeletion ( int bit)
inlineprotected

Definition at line 22 of file bleedingsourcesmanagerserver.c.

References m_DeleteList, and m_ProcessSourcesRemoval.

◆ SetBleedingSourceActiveTime()

void SetBleedingSourceActiveTime ( int bit,
int time )
inlineprotected

Definition at line 284 of file bleedingsourcesmanagerbase.c.

References m_BleedingSources.

Referenced by OnStoreLoad().

◆ SetBleedingSourceType()

void SetBleedingSourceType ( int bit,
eBleedingSourceType type )
inlineprotected

Definition at line 292 of file bleedingsourcesmanagerbase.c.

References m_BleedingSources.

Referenced by OnStoreLoad().

◆ SetBloodLoss()

void SetBloodLoss ( bool status)
inlineprotected

Definition at line 228 of file bleedingsourcesmanagerserver.c.

References m_DisableBloodLoss.

◆ SetDiag()

void SetDiag ( bool value)
inlineprotected

Definition at line 136 of file bleedingsourcesmanagerremote.c.

References m_ShowDiag.

◆ SetItem()

void SetItem ( ItemBase item)
inlineprotected

Definition at line 64 of file bleedingsourcesmanagerbase.c.

References m_Item.

Referenced by RemoveMostSignificantBleedingSourceEx().

Field Documentation

◆ m_Bit

int m_Bit
protected

Definition at line 12 of file bleedingsourcesmanagerbase.c.

Referenced by RegisterBleedingZoneEx().

◆ m_BitOffset

int m_BitOffset = 0
protected

◆ m_BitToFireGeom

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

Definition at line 11 of file bleedingsourcesmanagerbase.c.

Referenced by GetSelectionNameFromBit(), and RegisterBleedingZoneEx().

◆ m_BleedingBits

int m_BleedingBits
private

◆ m_BleedingSources

◆ m_BleedingSourcesByLocation

ref map<int, int> m_BleedingSourcesByLocation = new map<int, int>
private

◆ m_BleedingSourcesLocationsList

ref set<int> m_BleedingSourcesLocationsList = new set<int>
staticprivate

◆ m_BleedingSourcesZonesMaskByLocation

ref map<int, int> m_BleedingSourcesZonesMaskByLocation = new map<int, int>
staticprivate

◆ m_BleedingSourceZone

◆ m_DeleteList

ref array<int> m_DeleteList = new array<int>
private

Definition at line 6 of file bleedingsourcesmanagerserver.c.

Referenced by OnTick(), and RequestDeletion().

◆ m_DisableBloodLoss

bool m_DisableBloodLoss = false
private

Definition at line 5 of file bleedingsourcesmanagerserver.c.

Referenced by OnTick(), and SetBloodLoss().

◆ m_EnableHitIndication

bool m_EnableHitIndication = false
private

Definition at line 9 of file bleedingsourcesmanagerremote.c.

◆ m_Item

ItemBase m_Item
private

Definition at line 8 of file bleedingsourcesmanagerbase.c.

Referenced by RemoveBleedingSource(), and SetItem().

◆ m_Player

◆ m_Point

Shape m_Point
private

Definition at line 8 of file bleedingsourcesmanagerremote.c.

◆ m_ProcessSourcesRemoval

bool m_ProcessSourcesRemoval = false
protected

Definition at line 8 of file bleedingsourcesmanagerserver.c.

Referenced by OnTick(), and RequestDeletion().

◆ m_ShowDiag

bool m_ShowDiag
private

Definition at line 5 of file bleedingsourcesmanagerremote.c.

Referenced by OnUpdate(), and SetDiag().

◆ m_ShowingDiag

bool m_ShowingDiag
private

Definition at line 6 of file bleedingsourcesmanagerremote.c.

Referenced by CleanDebug(), DisplayDebug(), and OnUpdate().

◆ m_ShowingDiagDraw

bool m_ShowingDiagDraw
private

Definition at line 7 of file bleedingsourcesmanagerremote.c.

Referenced by CleanVisualDebug(), DisplayVisualDebug(), and OnUpdate().

◆ m_Tick

float m_Tick
private

Definition at line 4 of file bleedingsourcesmanagerserver.c.

Referenced by OnTick().

◆ STORAGE_VERSION

const int STORAGE_VERSION = 103
protected

Definition at line 10 of file bleedingsourcesmanagerserver.c.

Referenced by GetStorageVersion().

◆ TICK_INTERVAL_SEC

const float TICK_INTERVAL_SEC = 3
private

Definition at line 3 of file bleedingsourcesmanagerserver.c.

Referenced by OnTick().


The documentation for this class was generated from the following files: