Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
DamageManagerComponent.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
13 {
14  //Enables damage handling. It will only be done if called from server.
15  proto external void EnableDamageHandling(bool enable);
16  //Returns true if this damage manager and its hitzones can take damage
17  proto external bool IsDamageHandlingEnabled();
18  proto external float GetMovementDamage();
19  proto external float GetAimingDamage();
20  proto external void SetMovementDamage(float damage);
21  proto external void SetAimingDamage(float damage);
22  //Get default hitzone's health [0...1]
23  proto external float GetHealthScaled();
24  //sets the health scaled to the default HitZone [0, ..., 1]
25  proto external bool SetHealthScaled(float health);
26  //Returns current amount of health on the default hitzone
27  proto external float GetHealth();
28  //Returns default hitzone's max health
29  proto external float GetMaxHealth();
30  // Returns default hitzone's DamageState
31  proto external EDamageState GetState();
32  //returns true if the default hitzone is in Destroyed damage state
33  proto external bool IsDestroyed();
34  //Sets the given entity as the last instigator of damage.
35  proto external void SetInstigatorEntity(IEntity instigator);
36  proto external void SetInstigator(notnull Instigator instigator);
37  //Returns last instigator
38  proto external notnull Instigator GetInstigator();
40  proto external int GetAttachedColliderIDs(out notnull array<int> outAttachedColliderIDs);
41  proto external void HandleDamage(notnull BaseDamageContext damageContext);
45  proto external bool IsDamagedOverTime(EDamageType dType);
49  proto external float GetDamageOverTime(EDamageType dType);
53  proto external void RemoveDamageOverTime(EDamageType dType);
54 
55  // callbacks
56 
63  event bool ShouldOverrideInstigator(notnull Instigator currentInstigator, notnull Instigator newInstigator) { return true; };
67  event GameMaterial OverrideHitMaterial(HitZone struckHitzone);
71  event protected void OnDamageOverTimeAdded(EDamageType dType, float dps, HitZone hz);
75  event protected void OnDamageOverTimeRemoved(EDamageType dType, HitZone hz);
79  event protected void OnDamageStateChanged(EDamageState state);
84  event protected void OnPostInit(IEntity owner);
89  event protected void OnInit(IEntity owner);
90  event protected void OnDelete(IEntity owner);
96  event protected void OnFrame(IEntity owner, float timeSlice);
98  event protected bool OnContact(IEntity owner, IEntity other, Contact contact);
104  event protected void OnDiag(IEntity owner, float timeSlice);
105  event protected void OnDamage(notnull BaseDamageContext damageContext);
113  event bool HijackDamageHandling(notnull BaseDamageContext damageContext) {return false;};
120  event bool ShouldCountAsHit(notnull BaseDamageContext damageContext) {return true;};
121 }
122 
BaseDamageContext
Definition: BaseDamageContext.c:12
HitZone
Definition: HitZone.c:12
EDamageState
EDamageState
Definition: EDamageState.c:12
Instigator
Definition: Instigator.c:6
HitZoneContainerComponent
Definition: HitZoneContainerComponent.c:12
EDamageType
EDamageType
Definition: EDamageType.c:12
DamageManagerComponent
Definition: DamageManagerComponent.c:12
GameMaterial
Definition: GameMaterial.c:12