PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
BleedingSourcesManagerBase Class Reference

Private Member Functions

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

Private Attributes

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

Static Private Attributes

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

Constructor & Destructor Documentation

◆ BleedingSourcesManagerBase()

void BleedingSourcesManagerBase ( PlayerBase  player)
inlineprivate

References Init(), and m_Player.

◆ ~BleedingSourcesManagerServer()

void ~BleedingSourcesManagerServer ( )
inlineprivate

References m_Player, and RemoveAllSources().

Member Function Documentation

◆ ActivateAllBS()

void ActivateAllBS ( )
inlineprivate

◆ AddBleedingSource() [1/3]

◆ AddBleedingSource() [2/3]

override protected void AddBleedingSource ( int  bit)
inlineprivate

◆ AddBleedingSource() [3/3]

override protected void AddBleedingSource ( int  bit)
inlineprivate

References m_Player.

◆ AddBleedingSourceEx()

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

◆ AttemptAddBleedingSource()

bool AttemptAddBleedingSource ( int  component)
inlineprivate

◆ AttemptAddBleedingSourceBySelection()

bool AttemptAddBleedingSourceBySelection ( string  selection_name)
inlineprivate

◆ AttemptAddBleedingSourceDirectly()

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

◆ CanAddBleedingSource()

◆ CleanDebug()

void CleanDebug ( )
inlineprivate

◆ CleanVisualDebug()

void CleanVisualDebug ( )
inlineprivate

Referenced by OnUpdate().

◆ DebugActivateBleedingSource()

void DebugActivateBleedingSource ( int  source)
inlineprivate

◆ DisplayDebug()

◆ DisplayVisualDebug()

void DisplayVisualDebug ( )
inlineprivate

Referenced by OnUpdate().

◆ GetBitFromSelectionID()

protected int GetBitFromSelectionID ( int  id)
inlineprivate

◆ GetBitFromSelectionName()

protected int GetBitFromSelectionName ( string  name)
inlineprivate

◆ GetBleedingSourceActiveTime()

int GetBleedingSourceActiveTime ( int  bit)
inlineprivate

References m_BleedingSources.

Referenced by OnStoreSave().

◆ GetBleedingSourceBitsByInvLocation()

int GetBleedingSourceBitsByInvLocation ( int  inv_location)
inlineprivate

◆ GetBleedingSourceCountRemote()

int GetBleedingSourceCountRemote ( )
inlineprivate

References BIT_INT_SIZE, and Math::Pow().

◆ GetBleedingSourceMeta()

◆ GetBleedingSourcesCount()

int GetBleedingSourcesCount ( )
inlineprivate

References m_BleedingSources.

◆ GetBleedingSourcesLocations()

set< int > GetBleedingSourcesLocations ( )
inlineprivate

◆ GetBleedingSourceType()

eBleedingSourceType GetBleedingSourceType ( int  bit)
inlineprivate

References m_BleedingSources.

Referenced by OnStoreSave().

◆ GetBleedingSourceZone()

protected BleedingSourceZone GetBleedingSourceZone ( int  bit)
inlineprivate

◆ GetFreeBleedingSourceBitsByInvLocation()

int GetFreeBleedingSourceBitsByInvLocation ( int  inv_location)
inlineprivate

◆ GetMostSignificantBleedingSource()

int GetMostSignificantBleedingSource ( )
inlineprivate

◆ GetRegisteredSourcesCount()

int GetRegisteredSourcesCount ( )
inlineprivate

References m_BitOffset.

◆ GetSelectionNameFromBit()

protected string GetSelectionNameFromBit ( int  bit)
inlineprivate

◆ GetStorageVersion()

int GetStorageVersion ( )
inlineprivate

References STORAGE_VERSION.

◆ Init() [1/2]

◆ Init() [2/2]

◆ IsBleedingSourceActive()

bool IsBleedingSourceActive ( string  name)
inlineprivate

◆ OnBleedingBitsUpdate()

void OnBleedingBitsUpdate ( int  old_mask,
int  new_mask 
)
inlineprivate

◆ OnStoreLoad()

◆ OnStoreSave()

◆ OnTick()

◆ OnUpdate()

void OnUpdate ( )
inlineprivate

◆ OnVariablesSynchronized()

void OnVariablesSynchronized ( int  current_bits)
inlineprivate

References m_Player, and OnBleedingBitsUpdate().

◆ ProcessHit()

◆ RegisterBleedingZone()

protected 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" 
)
inlineprivate

References name, and RegisterBleedingZoneEx().

◆ RegisterBleedingZoneEx() [1/2]

protected 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 
)
inlineprivate

◆ RegisterBleedingZoneEx() [2/2]

override protected 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 
)
inlineprivate

◆ Reload()

void Reload ( )
inlineprivate

◆ RemoveAllSources()

void RemoveAllSources ( )
inlineprivate

◆ RemoveAnyBleedingSource()

void RemoveAnyBleedingSource ( )
inlineprivate

References m_Player, and RemoveBleedingSource().

◆ RemoveBleedingSource() [1/3]

◆ RemoveBleedingSource() [2/3]

override protected bool RemoveBleedingSource ( int  bit)
inlineprivate

References GetGame(), m_Item, and m_Player.

◆ RemoveBleedingSource() [3/3]

◆ RemoveMostSignificantBleedingSource()

void RemoveMostSignificantBleedingSource ( )
inlineprivate

◆ RemoveMostSignificantBleedingSourceEx()

void RemoveMostSignificantBleedingSourceEx ( ItemBase  item)
inlineprivate

◆ RequestDeletion()

void RequestDeletion ( int  bit)
inlineprivate

◆ SetBleedingSourceActiveTime()

void SetBleedingSourceActiveTime ( int  bit,
int  time 
)
inlineprivate

References m_BleedingSources.

Referenced by OnStoreLoad().

◆ SetBleedingSourceType()

void SetBleedingSourceType ( int  bit,
eBleedingSourceType  type 
)
inlineprivate

References m_BleedingSources.

Referenced by OnStoreLoad().

◆ SetBloodLoss()

void SetBloodLoss ( bool  status)
inlineprivate

◆ SetDiag()

void SetDiag ( bool  value)
inlineprivate

◆ SetItem()

protected void SetItem ( ItemBase  item)
inlineprivate

References m_Item.

Referenced by RemoveMostSignificantBleedingSourceEx().

Field Documentation

◆ m_Bit

protected int m_Bit
private

Referenced by RegisterBleedingZoneEx().

◆ m_BitOffset

int m_BitOffset = 0
private

◆ m_BitToFireGeom

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

◆ 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

◆ m_DisableBloodLoss

bool m_DisableBloodLoss = false
private

◆ m_EnableHitIndication

bool m_EnableHitIndication = false
private

◆ m_Item

ItemBase m_Item
private

Referenced by SetItem().

◆ m_Player

◆ m_Point

Shape m_Point
private

◆ m_ProcessSourcesRemoval

protected bool m_ProcessSourcesRemoval = false
private

◆ m_ShowDiag

bool m_ShowDiag
private

◆ m_ShowingDiag

bool m_ShowingDiag
private

◆ m_ShowingDiagDraw

bool m_ShowingDiagDraw
private

◆ m_Tick

float m_Tick
private

◆ STORAGE_VERSION

const int STORAGE_VERSION = 103
private

Referenced by GetStorageVersion().

◆ TICK_INTERVAL_SEC

const float TICK_INTERVAL_SEC = 3
private

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