class TransferValuesSource
TransferValues › Managed
All members, including inherited
Constructors 1
void TransferValues(PlayerBase player)Referenced by PlayerBase.Init()
Constants 5
const int TYPE_HEALTH = 1const int TYPE_BLOOD = 2const float VALUE_CHECK_INTERVAL = 5Referenced by OnScheduledTick()
const float SENSITIVTY_PERCENTAGE = 1how much the value needs to change up/down from previous update to trigger a new update(in percent)
const int BLOOD_THRESHOLD_LOW = 3000Members 9
PlayerBase m_PlayerReferenced by CheckBlood(), CheckHealth(), Init()
Show 3 more
, SendInitValues(), SendValue(), and TransferValues()float m_TimeSinceLastTick = VALUE_CHECK_INTERVAL + 1Referenced by OnScheduledTick()
float m_LastHealthUpdatefloat m_LastBloodUpdatefloat m_HealthMaxValuefloat m_BloodMaxValuefloat m_BloodClientfloat m_HealthClientprotected bool m_InitialSyncSentMethods 12
void Init()References Object.GetMaxHealth(), m_BloodClient, m_BloodMaxValue
Show 5 more
, m_HealthClient, m_HealthMaxValue, m_LastBloodUpdate, m_LastHealthUpdate, and m_PlayerReferenced by TransferValues()
void OnScheduledTick(float deltatime)References CheckValues(), DiagMenu.GetBool(), CGame.IsClient()
Show 5 more
, SendInitValues(), ShowDebugValues(), m_InitialSyncSent, m_TimeSinceLastTick, and VALUE_CHECK_INTERVALReferenced by PlayerBase.OnScheduledTick()
float GetHealth()References m_HealthClient
void CheckHealth()References Math.AbsFloat(), Object.GetHealth(), SendValue()
Show 5 more
, m_HealthMaxValue, m_LastHealthUpdate, m_Player, SENSITIVTY_PERCENTAGE, and TYPE_HEALTHReferenced by CheckValues()
void CheckBlood()References Math.AbsFloat(), Math.Clamp(), Object.GetHealth()
Show 8 more
, Math.InverseLerp(), SendValue(), BLOOD_THRESHOLD_LOW, m_BloodMaxValue, m_LastBloodUpdate, m_Player, SENSITIVTY_PERCENTAGE, and TYPE_BLOODReferenced by CheckValues()
void SendInitValues()Sends values on object creation
References Math.Clamp(), Object.GetHealth(), Math.InverseLerp()
Show 10 more
, SendValue(), BLOOD_THRESHOLD_LOW, m_BloodMaxValue, m_HealthMaxValue, m_InitialSyncSent, m_LastBloodUpdate, m_LastHealthUpdate, m_Player, TYPE_BLOOD, and TYPE_HEALTHReferenced by OnScheduledTick()
References Man.GetIdentity(), CGame.RPCSingleParam(), m_Player
Show 1 more
, CachedObjectsParams.PARAM2_INT_FLOATReferenced by OnRPC()
void OnRPC(ParamsReadContext ctx)Referenced by PlayerBase.OnRPC()
void ShowDebugValues(bool show)References DbgUI.Begin(), DbgUI.BeginCleanupScope(), DbgUI.End()
Show 6 more
, DbgUI.EndCleanupScope(), DbgUI.Text(), float.ToString(), float.ToString(), m_BloodClient, and m_HealthClientReferenced by OnScheduledTick()