Arma Reforger Script API
|
Public Member Functions | |
proto external float | GetBaseDamageMultiplier () |
proto external bool | HasColliderNodes () |
proto external int | GetColliderDescriptorIndex (int colliderID) |
proto external float | GetDamageMultiplier (EDamageType dmgType) |
proto external float | GetDamageReduction () |
proto external float | GetDamageThreshold () |
proto external int | GetAllColliderNames (out notnull array< string > colliderNames) |
proto external void | SetDamageOverTime (EDamageType dmgType, float dps) |
Sets damage over time for this particular hitzone. | |
proto external float | GetDamageOverTime (EDamageType dmgType) |
proto external int | GetNumColliderDescriptors () |
proto external HitZoneContainerComponent | GetHitZoneContainer () |
proto external void | SetHealth (float health) |
proto external void | SetHealthScaled (float health) |
proto external void | SetMaxHealth (float maxHealth, ESetMaxHealthFlags flag=ESetMaxHealthFlags.NONE) |
proto external float | GetHealth () |
proto external float | GetHealthScaled () |
proto external float | GetDamageStateThreshold (EDamageState damageState) |
proto external float | GetMaxHealth () |
proto external string | GetName () |
proto external EDamageState | GetDamageState () |
proto external float | GetCriticalDamageThreshold () |
proto external EDamageState | GetPreviousDamageState () |
proto external void | HandleDamage (float damage, int damageType, IEntity instigator) |
proto external bool | IsProxy () |
proto external int | GetColliderIDs (out notnull array< int > outIDs) |
Returns all collider IDs attached to this hitzone. | |
proto bool | TryGetColliderDescription (IEntity owner, int descIndex, out vector transformLS[4], out int boneIndex, out int nodeID) |
proto bool | TryGetColliderDescriptionFromName (IEntity owner, string colliderName, out vector transformLS[4], out int boneIndex, out int nodeID) |
void | OnInit (IEntity pOwnerEntity, GenericComponent pManagerComponent) |
Call OnInit method from script. | |
void | OnDamage (notnull BaseDamageContext damageContext) |
Called when the damage has been dealt by the server, doesn't get called for DOT. | |
float | ComputeEffectiveDamage (notnull BaseDamageContext damageContext, bool isDOT) |
Calculates the amount of damage a hitzone will receive. | |
Protected Member Functions | |
void | OnHealthSet () |
Called when damage changes. | |
void | OnMaxHealthChanged () |
Called when max damage changes. | |
void | OnDamageStateChanged (EDamageState newState, EDamageState previousDamageState, bool isJIP) |
Called when damage state changes. | |
float HitZone.ComputeEffectiveDamage | ( | notnull BaseDamageContext | damageContext, |
bool | isDOT | ||
) |
Calculates the amount of damage a hitzone will receive.
BaseDamageConext | DamageContext for this computation |
bool | isDOT true if this computation is fot DOT |
Implemented in SCR_CharacterHitZone, SCR_FlammableHitZone, and SCR_HitZone.
proto external int HitZone.GetAllColliderNames | ( | out notnull array< string > | colliderNames | ) |
colliderNames | array which is filled with collider names of this hitzone |
proto external float HitZone.GetBaseDamageMultiplier | ( | ) |
proto external int HitZone.GetColliderDescriptorIndex | ( | int | colliderID | ) |
proto external int HitZone.GetColliderIDs | ( | out notnull array< int > | outIDs | ) |
Returns all collider IDs attached to this hitzone.
proto external float HitZone.GetCriticalDamageThreshold | ( | ) |
proto external float HitZone.GetDamageMultiplier | ( | EDamageType | dmgType | ) |
proto external float HitZone.GetDamageOverTime | ( | EDamageType | dmgType | ) |
proto external float HitZone.GetDamageReduction | ( | ) |
proto external EDamageState HitZone.GetDamageState | ( | ) |
proto external float HitZone.GetDamageStateThreshold | ( | EDamageState | damageState | ) |
proto external float HitZone.GetDamageThreshold | ( | ) |
proto external float HitZone.GetHealth | ( | ) |
proto external float HitZone.GetHealthScaled | ( | ) |
proto external HitZoneContainerComponent HitZone.GetHitZoneContainer | ( | ) |
proto external float HitZone.GetMaxHealth | ( | ) |
proto external string HitZone.GetName | ( | ) |
proto external int HitZone.GetNumColliderDescriptors | ( | ) |
proto external EDamageState HitZone.GetPreviousDamageState | ( | ) |
proto external void HitZone.HandleDamage | ( | float | damage, |
int | damageType, | ||
IEntity | instigator | ||
) |
proto external bool HitZone.HasColliderNodes | ( | ) |
proto external bool HitZone.IsProxy | ( | ) |
void HitZone.OnDamage | ( | notnull BaseDamageContext | damageContext | ) |
Called when the damage has been dealt by the server, doesn't get called for DOT.
Implemented in SCR_CharacterHitZone, SCR_CharacterResilienceHitZone, and SCR_EngineHitZone.
|
protected |
Called when damage state changes.
Implemented in SCR_BatteryHitZone, SCR_CharacterHitZone, SCR_CharacterResilienceHitZone, SCR_CharacterBloodHitZone, SCR_CharacterHeadHitZone, SCR_DestructibleHitzone, SCR_EngineHitZone, SCR_FlammableHitZone, SCR_FuelHitZone, SCR_GearboxHitZone, SCR_HitZone, SCR_LightHitZone, SCR_RotorHitZone, and SCR_WheelHitZone.
|
protected |
Called when damage changes.
Implemented in SCR_RegeneratingHitZone, and SCR_HitZone.
void HitZone.OnInit | ( | IEntity | pOwnerEntity, |
GenericComponent | pManagerComponent | ||
) |
Call OnInit method from script.
Implemented in SCR_BatteryHitZone, SCR_CharacterResilienceHitZone, SCR_CharacterBloodHitZone, SCR_CharacterHeadHitZone, SCR_DestructibleHitzone, SCR_EngineHitZone, SCR_FlammableHitZone, SCR_FuelHitZone, SCR_GearboxHitZone, SCR_RotorHitZone, and SCR_WheelHitZone.
|
protected |
Called when max damage changes.
Implemented in SCR_FlammableHitZone.
proto external void HitZone.SetDamageOverTime | ( | EDamageType | dmgType, |
float | dps | ||
) |
Sets damage over time for this particular hitzone.
And invoke particular event on DamageManagerComponent. It has no effect if there is already a DOT of same type and DPS. Cannot be called on proxy.
dmgType | Type of damage |
dps | Damage per second applied to this HitZone |
proto external void HitZone.SetHealth | ( | float | health | ) |
proto external void HitZone.SetHealthScaled | ( | float | health | ) |
proto external void HitZone.SetMaxHealth | ( | float | maxHealth, |
ESetMaxHealthFlags | flag = ESetMaxHealthFlags.NONE |
||
) |
proto bool HitZone.TryGetColliderDescription | ( | IEntity | owner, |
int | descIndex, | ||
out vector | transformLS[4], | ||
out int | boneIndex, | ||
out int | nodeID | ||
) |
proto bool HitZone.TryGetColliderDescriptionFromName | ( | IEntity | owner, |
string | colliderName, | ||
out vector | transformLS[4], | ||
out int | boneIndex, | ||
out int | nodeID | ||
) |