Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_RemoveBleedCharacterContextAction.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
2
[
BaseContainerProps
(),
SCR_BaseContainerCustomTitleUIInfo
(
"m_Info"
)]
3
class
SCR_RemoveBleedCharacterContextAction
:
SCR_SelectedEntitiesContextAction
4
{
5
override
bool
CanBeShown(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
6
{
7
return
selectedEntity.GetEntityType() ==
EEditableEntityType
.CHARACTER;
8
}
9
10
override
bool
CanBePerformed(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition,
int
flags)
11
{
12
SCR_CharacterDamageManagerComponent
characterDamageManager =
SCR_CharacterDamageManagerComponent
.Cast(selectedEntity.GetOwner().FindComponent(
SCR_CharacterDamageManagerComponent
));
13
if
(!characterDamageManager)
14
return
false
;
15
16
if
(characterDamageManager.GetState() ==
EDamageState
.DESTROYED || !characterDamageManager.IsDamagedOverTime(
EDamageType
.BLEEDING))
17
return
false
;
18
19
return
true
;
20
}
21
22
override
void
Perform(
SCR_EditableEntityComponent
selectedEntity, vector cursorWorldPosition)
23
{
24
SCR_CharacterDamageManagerComponent
characterDamageManager =
SCR_CharacterDamageManagerComponent
.Cast(selectedEntity.GetOwner().FindComponent(
SCR_CharacterDamageManagerComponent
));
25
if
(!characterDamageManager)
26
return
;
27
28
characterDamageManager.RemoveAllBleedings();
29
}
30
};
EDamageState
EDamageState
Definition:
EDamageState.c:12
SCR_CharacterDamageManagerComponent
Definition:
SCR_CharacterDamageManagerComponent.c:18
EEditableEntityType
EEditableEntityType
Defines type of SCR_EditableEntityComponent. Assigned automatically based on IEntity inheritance.
Definition:
EEditableEntityType.c:5
SCR_EditableEntityComponent
Definition:
SCR_EditableEntityComponent.c:13
SCR_SelectedEntitiesContextAction
Definition:
SCR_SelectedEntitiesContextAction.c:10
EDamageType
EDamageType
Definition:
EDamageType.c:12
SCR_BaseContainerCustomTitleUIInfo
void SCR_BaseContainerCustomTitleUIInfo(string propertyName, string format="%1")
Definition:
Attributes.c:788
SCR_RemoveBleedCharacterContextAction
Definition:
SCR_RemoveBleedCharacterContextAction.c:3
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition:
SCR_AIGoalReaction.c:468
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
Editor
Containers
Actions
SCR_RemoveBleedCharacterContextAction.c
Generated by
1.8.17