103 return m_Player.GetBleedingBits() & bit;
137 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)
150 string bone_name = bone;
165 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")
247 if ((
m_Player.GetBleedingBits() & bit) == 0)
void BleedingSource(PlayerBase player, int bit, string bone, vector orientation, vector offset, int max_time, float flow_modifier, string particle_name)
class BoxCollidingParams component
ComponentInfo for BoxCollidingResult.
void SetBleedingSourceActiveTime(int bit, int time)
ref map< int, int > m_BleedingSourcesByLocation
int GetBleedingSourceBitsByInvLocation(int inv_location)
protected bool CanAddBleedingSource(int bit)
ref map< int, ref BleedingSource > m_BleedingSources
void BleedingSourcesManagerBase(PlayerBase player)
set< int > GetBleedingSourcesLocations()
protected bool RemoveBleedingSource(int bit)
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")
bool AttemptAddBleedingSourceDirectly(int bit, eBleedingSourceType type=eBleedingSourceType.NORMAL, int context=0)
protected int GetBitFromSelectionID(int id)
protected void AddBleedingSourceEx(int bit, eBleedingSourceType type=eBleedingSourceType.NORMAL, int context=0)
void SetBleedingSourceType(int bit, eBleedingSourceType type)
int GetFreeBleedingSourceBitsByInvLocation(int inv_location)
int GetBleedingSourcesCount()
ref map< int, string > m_BitToFireGeom
eBleedingSourceType GetBleedingSourceType(int bit)
protected BleedingSourceZone GetBleedingSourceMeta(int bit)
int GetBleedingSourceActiveTime(int bit)
protected int GetBitFromSelectionName(string name)
ref map< string, ref BleedingSourceZone > m_BleedingSourceZone
static ref set< int > m_BleedingSourcesLocationsList
int GetRegisteredSourcesCount()
protected void SetItem(ItemBase item)
static ref map< int, int > m_BleedingSourcesZonesMaskByLocation
bool AttemptAddBleedingSourceBySelection(string selection_name)
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 AddBleedingSource(int bit)
bool IsBleedingSourceActive(string name)
protected string GetSelectionNameFromBit(int bit)
bool AttemptAddBleedingSource(int component)
static ref TStringArray ARRAY_STRING
provides access to slot configuration
static const float BLEEDING_SOURCE_FLOW_MODIFIER_LOW
static const float BLEEDING_SOURCE_FLOW_MODIFIER_HIGH
static const float BLEEDING_SOURCE_FLOW_MODIFIER_MEDIUM
static const int BLEEDING_SOURCE_DURATION_NORMAL
void Error(string err)
Messagebox with error message.
proto int ToLower()
Changes string to lowercase. Returns length.