14 IEntity owner = editableEntity.GetOwner();
18 ChimeraCharacter character = ChimeraCharacter.Cast(owner);
23 if (!characterDamageManager)
26 if (characterDamageManager.GetState() ==
EDamageState.DESTROYED)
32 override void UpdateInterlinkedVariables(
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
bool isInit =
false)
41 bool isOverridden = var && var.GetBool();
48 override void WriteVariable(Managed item,
SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager,
int playerID)
57 IEntity owner = editableEntity.GetOwner();
61 ChimeraCharacter character = ChimeraCharacter.Cast(owner);
66 if (!characterDamageManager || characterDamageManager.GetState() ==
EDamageState.DESTROYED)
69 bool value = var.GetBool();
73 SCR_GameModeHealthSettings gameModeHealthSettings = SCR_GameModeHealthSettings.Cast(
GetGame().
GetGameMode().FindComponent(SCR_GameModeHealthSettings));
74 if (!gameModeHealthSettings)
77 characterDamageManager.SetDOTScale(gameModeHealthSettings.GetBleedingScale(),
false);
78 characterDamageManager.SetRegenScale(gameModeHealthSettings.GetRegenScale(),
false);
79 characterDamageManager.SetPermitUnconsciousness(gameModeHealthSettings.IsUnconsciousnessPermitted(),
true);
82 characterDamageManager.SetOverrideCharacterMedical(value);